Sell Order
This POST
endpoint is responsible for making a sell order and returns the checkout url and access token.
The sell order POST
api takes your publicKey
as a required parameter and a body request containing properties like the customer's email, phone number, customer deposit and receipt methods etc.
A boolean property called deferPaymentMethod
is added to the request body which can be set to true to delay providing your users' payment methods to initiate any of the order endpoints. It can also be set to false if you intend to provide the details and require a confirmation of the request immediately.
When deferPaymentMethod
is set to true, a call to Initiate Order Created With Deferred Payment Method should be made to complete the order initiation.
See the example below;
Initiates a sell order
POST
https://checkout-api-sandbox.xendbridge.com/api/ThirdPartyUI/Sell/Initiate
Headers
Request Body
If deferPaymentMethod
is set to true, you can provide the minimum payload below which starts the order initiation process and returns the checkoutUrl .
Last updated