POST /api/public/v1/customers/createAtBooking
Changed onCreates the customer a host is about to pick for a booking, answering with an existing customer that already holds the number. A bookingId names the stored booking the guest is added to: one of this organization the caller may update in its current status, whatever the location's Bookings switch, plan or standing. Otherwise locationId names the location a new booking is taken at, which must take it as bookings.create does: refused with FORBIDDEN as bookingsDisabled, billingReadOnly, subscriptionEnded, featureRestrictedByPlan or featureNotEntitled. Naming neither, the business as a whole is judged: refused with FORBIDDEN as billingReadOnly, subscriptionEnded, featureRestrictedByPlan or featureNotEntitled. Refused with NOT_FOUND for a booking or location this organization does not hold, with CONFLICT as transitionNotAllowed for a closed booking, and with UNPROCESSABLE_CONTENT for a number that cannot be read as one. Customers are still created through customers.create. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the required property
loyaltyStatusto the response with the status
- info
- info
added the new optional request property
bookingId - info
added the new optional request property
locationId
- info