Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | customer_portal:integration:iwashcloudbookingsapi [2025/07/14 15:59] (current) – [Body] calluma | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======iWash Cloud Online Bookings API====== | ||
+ | |||
+ | This is a SERVER Side API. Who is supporting your website at the moment? | ||
+ | If you do not have the ability to make server side API, we can provide this as a CLIENT side script to be copied onto your page. | ||
+ | |||
+ | This is a JSON API. | ||
+ | * URL = / | ||
+ | * LIVE = http:// | ||
+ | |||
+ | ===== Headers ===== | ||
+ | <code html> | ||
+ | Accept: application/ | ||
+ | Content-Type: | ||
+ | Authorization: | ||
+ | </ | ||
+ | |||
+ | {user}: | ||
+ | ===== Body ===== | ||
+ | <code AppleScript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Regos ==== | ||
+ | need to be stripped of all spaces and symbols and will be converted to upper case. | ||
+ | |||
+ | ==== Dates ==== | ||
+ | need to be in unambiguous format of DD-MON-YYYY HH:MM | ||
+ | |||
+ | ==== Tags ==== | ||
+ | |||
+ | Use Booking Tags, this can be used in reports to work out where booking might be generated from. | ||
+ | If you want to add extra tags like a campaign that generated them, comma separate the tags words. | ||
+ | |||
+ | <code AppleScript> | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ==== Notes ==== | ||
+ | |||
+ | The Booking Notes field is text but can also be used to store custom fields that you can read back and use in the API. Insert text or send JSON and it will be stored in the Notes field | ||
+ | |||
+ | As Text | ||
+ | |||
+ | <code AppleScript> | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | As JSON | ||
+ | |||
+ | <code AppleScript> | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ==== Site ==== | ||
+ | |||
+ | The API has some smarts and the BookingSite can be sent as either a string which matches the name of the store in the Sites Tabe, or you can send an integer which matches the record in the Sites Table. The API will take any string and try to match it to the a Site Name. | ||
+ | |||
+ | <code AppleScript> | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | <code AppleScript> | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Return ===== | ||
+ | You get back extra fields such as BookingKey and CreatedDteTme. | ||
+ | <code AppleScript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Read ===== | ||
+ | Reading an existing Booking, you only need to supply part of the data such as the Booking Key. | ||
+ | <code AppleScript> | ||
+ | {" | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | If the customer has come to the store then it will return extra data such as the orderkey and orderdtetme | ||
+ | <code AppleScript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Cancel ===== | ||
+ | Cancel an existing Booking, you only need to supply part of the data such as the Booking Key and the CancelDteTme. | ||
+ | <code AppleScript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||