A booking request is slightly different when using manual or automated payment.
Automated payment must be used when booking a product without any negotiated rate, or when a supplier has explicitly chosen to use automated payments with a negotiated rate.
For more details see:
In any case the "agentPaymentType" field in the product entity would be set to "PAYOUTS".
Manual payment booking request
For manual payments (payment taken by the agent, not processed through Rezdy), you must send a "payments" field with details of the payment, for the booking to be marked as fully paid:
"label": "Payment processed by RezdyDemoAgent"
Automated payments booking request
Automated payments must be processed by Stripe on the Rezdy's account, thus we need a credit card token issued by Stripe to process the customer payment, e.g.:
Note: You must generate the token using a PCI-compliant solution provided by Stripe, like Stripe.js or Stripe Elements. You cannot generate the token with server-to-server Stripe API.
Any payment passed in the "payments" field in this case, are considered as payments processed by the agent. E.g. agent discounts given to a customer, and only reduce the agent's commission. This can result in an error "The selling price is too low to cover agent commission.", if the amount after discount/external payment is lower than the supplier's net price + automatic payment booking fee.
For details about the agent discount see:
To see the full sample booking requests see: