Skip to content

Instantly share code, notes, and snippets.

@paulofph
Last active May 25, 2019 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulofph/11549a017b8f9a092b2e9cd00ab752a4 to your computer and use it in GitHub Desktop.
Save paulofph/11549a017b8f9a092b2e9cd00ab752a4 to your computer and use it in GitHub Desktop.
//Payload
{
"~:transition": "transition/request",
"~:processAlias": "preauth-unit-time-custom-price/release-1",
"~:params": {
"~:listingId": "~u5cdffc1b-2601-4c74-b3ca-ea57cc849801",
"~:bookingStart": "~t2019-06-09T08:00:00.000Z",
"~:bookingEnd": "~t2019-06-09T11:30:00.000Z",
"~:lineItems": [
{
"~:code": "line-item/adults",
"~:unitPrice": {
"~#mn": [
8000,
"EUR"
]
},
"~:quantity": 3
},
{
"~:code": "line-item/children",
"~:unitPrice": {
"~#mn": [
5000,
"EUR"
]
},
"~:quantity": 3
}
],
"~:cardToken": "CheckoutPage_speculative_card_token"
}
}
// Response
{
"~:errors": [
{
"~:id": "~uadefc263-1170-4ac5-a70a-e278fdfce610",
"~:status": 409,
"~:code": "~:transaction-booking-time-not-available",
"~:title": "The requested booking time is not available."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment