If it helps, here are the returns from this backend function when I pass in a member with an unlimited pricing plan. I’m sure there’s a clue in there somewhere about what I’m doing wrong. The booking I create looks ok to me. The checkout is marked with completed:false, and the order is marked with status:“INITIALIZED”. This seems to tell me that the payment wasn’t correctly processed. Somehow I’m not linking the checkout/order to the payment method (a pricing plan subscription or an offline payment).
The return from createBooking():
{
"booking": {
"bookedEntity": {
"slot": {
"sessionId": "193ZPR9ppP9emJUCLevcLf6orynNEIDt5nc0520xjGQILnPPaF5s62yK3BWz7ExgIRM1UqYb3zip0gGSkrD3kXi5LrKQsRw2o5APKDooD6BekAYrTbVf1DT1fC12cL2IWq7ygiKkY1CtVj29TbGO5OybjHVDGqveEPoMi7DSceY8AQSYSCzxu3ZAN8YcM2EtObGk2AyqKByV8Oieayft4f4ayPELMBd36yTdsSL55TnbJ4a3HzJuRhTwbIdJSfH1YK5xOEcIH7Do9nxNB9oJGUbHrx1p1QUmDZ9pP8VuzLCRhJPCNWe9lqybMsR2IEna9z2VvMf3eu83vZ",
"serviceId": "fd83b06d-4e24-4fe1-b9f9-c748e8342263",
"scheduleId": "d5c2a078-d203-46d6-b5e5-746478322d34",
"eventId": "12GF1tmaZUyN8YmV62fC0nXBb6DrXKQZDh4m6cs6zRCrmCMo1ynh3uRUolAwKcEpgFGofHliVJGNNcaRCUTVPUmpN2vSSDBPqwraARO4CLT5nu1PoNW9U3c",
"startDate": "2024-04-28T00:30:00.000-06:00",
"endDate": "2024-04-28T01:30:00.000-06:00",
"timezone": "America/Denver",
"resource": {
"name": "TBD",
"email": "tbd@someemail.org",
"scheduleId": "0a0e05f9-94f1-46fb-9ede-1ed6644f2b6c",
"explicitlyRequested": true,
"_id": "2a09d034-a277-4759-8687-0aeacdcec41b"
},
"location": {
"name": "Boulder Reservoir",
"formattedAddress": "5275 Reservoir Rd, Boulder, CO 80301, USA",
"locationType": "OWNER_BUSINESS",
"_id": "0c2ee823-a332-4938-9951-6c83346af1c1"
},
"additionalResources": []
},
"title": "BAM City Open Water Swim",
"tags": [
"GROUP"
]
},
"contactDetails": {
"contactId": "cd65fab7-7215-48b6-ae1b-2b13842d2cae",
"firstName": "Ows1 Owstest",
"email": "ows1@someemail.com"
},
"additionalFields": [],
"numberOfParticipants": 1,
"status": "CONFIRMED",
"paymentStatus": "PAID",
"selectedPaymentOption": "MEMBERSHIP",
"participantNotification": {
"notifyParticipants": false
},
"sendSmsReminder": false,
"revision": "2",
"createdBy": {
"identityType": "UNKNOWN",
"memberId": "7246f60f-c346-4f37-9355-9dc16bffd24c"
},
"startDate": "2024-04-28T06:30:00.000Z",
"endDate": "2024-04-28T07:30:00.000Z",
"flowControlSettings": {
"ignoreBookingWindow": true,
"skipAvailabilityValidation": true,
"skipBusinessConfirmation": false,
"skipSelectedPaymentOptionValidation": false,
"withRefund": false
},
"totalParticipants": 1,
"v2Availability": false,
"_id": "2f74eb83-655b-4d1b-8ed9-a54f9c3b7fe8",
"_createdDate": "2024-04-27T18:44:10.496Z",
"_updatedDate": "2024-04-27T18:44:10.879Z"
}
}
The return from createOrDeclineBooking():
{
"booking": {
"bookedEntity": {
"slot": {
"sessionId": "193ZPR9ppP9emJUCLevcLf6orynNEIDt5nc0520xjGQILnPPaF5s62yK3BWz7ExgIRM1UqYb3zip0gGSkrD3kXi5LrKQsRw2o5APKDooD6BekAYrTbVf1DT1fC12cL2IWq7ygiKkY1CtVj29TbGO5OybjHVDGqveEPoMi7DSceY8AQSYSCzxu3ZAN8YcM2EtObGk2AyqKByV8Oieayft4f4ayPELMBd36yTdsSL55TnbJ4a3HzJuRhTwbIdJSfH1YK5xOEcIH7Do9nxNB9oJGUbHrx1p1QUmDZ9pP8VuzLCRhJPCNWe9lqybMsR2IEna9z2VvMf3eu83vZ",
"serviceId": "fd83b06d-4e24-4fe1-b9f9-c748e8342263",
"scheduleId": "d5c2a078-d203-46d6-b5e5-746478322d34",
"eventId": "12GF1tmaZUyN8YmV62fC0nXBb6DrXKQZDh4m6cs6zRCrmCMo1ynh3uRUolAwKcEpgFGofHliVJGNNcaRCUTVPUmpN2vSSDBPqwraARO4CLT5nu1PoNW9U3c",
"startDate": "2024-04-28T00:30:00.000-06:00",
"endDate": "2024-04-28T01:30:00.000-06:00",
"timezone": "America/Denver",
"resource": {
"name": "TBD",
"email": "tbd@someemail.org",
"scheduleId": "0a0e05f9-94f1-46fb-9ede-1ed6644f2b6c",
"explicitlyRequested": true,
"_id": "2a09d034-a277-4759-8687-0aeacdcec41b"
},
"location": {
"name": "Boulder Reservoir",
"formattedAddress": "5275 Reservoir Rd, Boulder, CO 80301, USA",
"locationType": "OWNER_BUSINESS",
"_id": "0c2ee823-a332-4938-9951-6c83346af1c1"
},
"additionalResources": []
},
"title": "BAM City Open Water Swim",
"tags": [
"GROUP"
]
},
"contactDetails": {
"contactId": "cd65fab7-7215-48b6-ae1b-2b13842d2cae",
"firstName": "Ows1 Owstest",
"email": "ows1@someemail.com"
},
"additionalFields": [],
"numberOfParticipants": 1,
"status": "CONFIRMED",
"paymentStatus": "PAID",
"selectedPaymentOption": "MEMBERSHIP",
"participantNotification": {
"notifyParticipants": false
},
"sendSmsReminder": false,
"revision": "2",
"createdBy": {
"identityType": "UNKNOWN",
"memberId": "7246f60f-c346-4f37-9355-9dc16bffd24c"
},
"startDate": "Sun Apr 28 2024 00:30:00 GMT-0600 (Mountain Daylight Time)",
"endDate": "Sun Apr 28 2024 01:30:00 GMT-0600 (Mountain Daylight Time)",
"flowControlSettings": {
"ignoreBookingWindow": true,
"skipAvailabilityValidation": true,
"skipBusinessConfirmation": false,
"skipSelectedPaymentOptionValidation": false,
"withRefund": false
},
"totalParticipants": 1,
"v2Availability": false,
"_id": "2f74eb83-655b-4d1b-8ed9-a54f9c3b7fe8",
"_createdDate": "Sat Apr 27 2024 12:44:10 GMT-0600 (Mountain Daylight Time)",
"_updatedDate": "Sat Apr 27 2024 12:44:10 GMT-0600 (Mountain Daylight Time)"
}
}
The return from createCheckout():
{
"lineItems": [
{
"quantity": 1,
"catalogReference": {
"catalogItemId": "2f74eb83-655b-4d1b-8ed9-a54f9c3b7fe8",
"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97"
},
"productName": {
"original": "BAM City Open Water Swim",
"translated": "BAM City Open Water Swim"
},
"price": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"lineItemPrice": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"fullPrice": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"priceBeforeDiscounts": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"totalPriceAfterTax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"totalPriceBeforeTax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"taxDetails": {
"taxableAmount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"taxRate": "0",
"totalTax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"rateBreakdown": [],
"isItemTaxable": false,
"isTaxIncluded": false,
"taxBreakdown": []
},
"discount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"descriptionLines": [],
"media": "wix:image://v1/156f8a_af84e195b3e64afe804393f3619de193~mv2.png/156f8a_af84e195b3e64afe804393f3619de193~mv2.png#originWidth=4032&originHeight=3024",
"availability": {
"status": "AVAILABLE",
"quantityAvailable": 1
},
"couponScopes": [
{
"namespace": "bookings"
},
{
"namespace": "bookings",
"group": {
"name": "service",
"entityId": "fd83b06d-4e24-4fe1-b9f9-c748e8342263"
}
}
],
"itemType": {
"preset": "SERVICE"
},
"paymentOption": "MEMBERSHIP",
"serviceProperties": {
"scheduledDate": "2024-04-28T06:30:00.000Z",
"numberOfParticipants": 1
},
"rootCatalogItemId": "fd83b06d-4e24-4fe1-b9f9-c748e8342263",
"customLineItem": false,
"_id": "00000000-0000-0000-0000-000000000001"
}
],
"billingInfo": {
"contactDetails": {
"firstName": "Ows1",
"lastName": "Owstest"
}
},
"shippingInfo": {
"carrierServiceOptions": []
},
"buyerInfo": {
"contactId": "cd65fab7-7215-48b6-ae1b-2b13842d2cae",
"email": "ows1@someemail.com"
},
"conversionCurrency": "USD",
"priceSummary": {
"subtotal": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"shipping": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"tax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"discount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"total": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"additionalFees": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
}
},
"calculationErrors": {
"orderValidationErrors": []
},
"appliedDiscounts": [],
"customFields": [],
"weightUnit": "LB",
"taxSummary": {
"taxableAmount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"totalTax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"manualTaxRate": "0",
"aggregatedTaxBreakdown": []
},
"currency": "USD",
"channelType": "WEB",
"siteLanguage": "en",
"buyerLanguage": "en",
"completed": false,
"taxIncludedInPrice": false,
"createdBy": {
"appId": "151e476a-715e-ec33-db9a-a7ff4d51f70a"
},
"payNow": {
"subtotal": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"shipping": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"tax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"discount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"total": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"additionalFees": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
}
},
"payLater": {
"subtotal": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"shipping": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"tax": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"discount": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"total": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"additionalFees": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
}
},
"membershipOptions": {
"eligibleMemberships": [],
"invalidMemberships": [],
"selectedMemberships": {
"memberships": []
}
},
"additionalFees": [],
"payNowTotalAfterGiftCard": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"ecomId": "711a1843-1652-48cd-ac31-eb6839b7f463",
"violations": [],
"totalAfterGiftCard": {
"amount": "0",
"convertedAmount": "0",
"formattedAmount": "$0.00",
"formattedConvertedAmount": "$0.00"
},
"purchaseFlowId": "a19c8566-8e2b-4e29-95f8-613da9bf747d",
"_id": "94daa618-c711-45dd-8182-61bc24c417dc",
"_createdDate": "2024-04-27T18:44:11.722Z",
"_updatedDate": "2024-04-27T18:44:11.722Z"
}
The return from createOrder():
{
"number": "0",
"lineItems": [
{
"productName": {
"original": "BAM City Open Water Swim",
"translated": "BAM City Open Water Swim"
},
"catalogReference": {
"catalogItemId": "2f74eb83-655b-4d1b-8ed9-a54f9c3b7fe8",
"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97"
},
"quantity": 1,
"descriptionLines": [],
"itemType": {
"preset": "SERVICE"
},
"price": {
"amount": "0",
"formattedAmount": "$0.00"
},
"totalPriceBeforeTax": {
"amount": "0",
"formattedAmount": "$0.00"
},
"totalPriceAfterTax": {
"amount": "0",
"formattedAmount": "$0.00"
},
"paymentOption": "MEMBERSHIP",
"taxDetails": {
"taxableAmount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"taxRate": "0",
"totalTax": {
"amount": "0",
"formattedAmount": "$0.00"
}
},
"taxInfo": {
"taxAmount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"taxableAmount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"taxRate": "0",
"taxIncludedInPrice": false,
"taxBreakdown": []
},
"subscriptionInfo": {
"cycleNumber": 0,
"subscriptionOptionTitle": "",
"_id": "2dbf7562-bb1e-4112-8dee-d03d6c33ec09"
},
"locations": [],
"lineItemPrice": {
"amount": "0",
"formattedAmount": "$0.00"
},
"_id": "00000000-0000-0000-0000-000000000001"
}
],
"buyerInfo": {
"contactId": "cd65fab7-7215-48b6-ae1b-2b13842d2cae",
"email": "ows1@someemail.com",
"memberId": "cd65fab7-7215-48b6-ae1b-2b13842d2cae"
},
"paymentStatus": "PAID",
"fulfillmentStatus": "FULFILLED",
"buyerLanguage": "en",
"weightUnit": "LB",
"currency": "USD",
"taxIncludedInPrices": false,
"priceSummary": {
"subtotal": {
"amount": "0",
"formattedAmount": "$0.00"
},
"shipping": {
"amount": "0",
"formattedAmount": "$0.00"
},
"tax": {
"amount": "0",
"formattedAmount": "$0.00"
},
"discount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"totalPrice": {
"amount": "0",
"formattedAmount": "$0.00"
},
"total": {
"amount": "0",
"formattedAmount": "$0.00"
},
"totalWithGiftCard": {
"amount": "0",
"formattedAmount": "$0.00"
},
"totalWithoutGiftCard": {
"amount": "0",
"formattedAmount": "$0.00"
}
},
"status": "INITIALIZED",
"archived": false,
"appliedDiscounts": [],
"activities": [
{
"type": "ORDER_PLACED",
"_id": "86289ec1-57e1-4dee-983e-9b999db8940a",
"_createdDate": "2024-04-27T18:44:12.003Z"
}
],
"attributionSource": "UNSPECIFIED",
"channelInfo": {
"type": "UNSPECIFIED"
},
"checkoutId": "94daa618-c711-45dd-8182-61bc24c417dc",
"customFields": [],
"isInternalOrderCreate": false,
"balanceSummary": {
"balance": {
"amount": "0",
"formattedAmount": "$0.00"
},
"paid": {
"amount": "0.00",
"formattedAmount": "$0.00"
},
"refunded": {
"amount": "0.00",
"formattedAmount": "$0.00"
}
},
"additionalFees": [],
"_id": "b8d8cfc8-b9a3-492f-acd7-b101396cd7e7",
"_createdDate": "2024-04-27T18:44:12.004Z",
"_updatedDate": "2024-04-27T18:44:12.004Z"
}