Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"orderId": 123,
"status": "pending",
"next": "redirect",
"gateway": "<string>",
"paymentUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credits": 123,
"creditsFormatted": "<string>",
"bonus": 123,
"notice": "<string>"
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "..."
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "..."
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "..."
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "..."
}
}Store
Checkout
Pays the cart. With useBalance (or on credit-only stores) credits are used first; if they cover the total the order completes immediately (next: success). Otherwise an order waits for paymentGateway (credits used are taken when the payment arrives). When the order is paid with credits (next is success) the response also carries credits / creditsFormatted (the new balance): update your credit state with them.
POST
/
cart
/
checkout
Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"orderId": 123,
"status": "pending",
"next": "redirect",
"gateway": "<string>",
"paymentUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credits": 123,
"creditsFormatted": "<string>",
"bonus": 123,
"notice": "<string>"
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "..."
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "..."
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "..."
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "..."
}
}Authorizations
Body
application/json
