Errors
Understand partner API error responses
Errors return an HTTP status code and a JSON body. The body gives more detail about what went wrong.
{
"error": "Bad request",
"message": "No organisation with shortcode example-school"
}Status codes
| Status | Error | When | Endpoint |
|---|---|---|---|
400 Bad Request | Line-item amounts don't add up to amount. | Embedded checkout session | |
400 Bad Request | More than 10 line items are supplied. | Embedded checkout session | |
400 Bad Request | A payout_route_id is unknown. | Embedded checkout session | |
400 Bad Request | line_items is empty, lists a line item more than once, or a refund amount is below 1. | Refunds | |
400 Bad Request | The Idempotency-Key header is missing. | Refunds | |
400 Bad Request | The refund reason is over 60 characters. | Refunds | |
400 Bad Request | The statement format isn't pdf. | Payouts | |
400 Bad Request | An organisation application has fees below your agreed minimums, or fees for a payment method that isn't enabled. | Organisation applications | |
401 Unauthorized | The JWT is missing, invalid or expired. | All | |
403 Permission Denied | The organisation hasn't completed onboarding with this partner, or has revoked its access. | All | |
403 Permission Denied | Organisation applications aren't enabled for your partner account. | Organisation applications | |
404 Not Found | The order, line item or payout doesn't exist for this organisation. | Refunds, Payouts | |
404 Not Found | The organisation application doesn't exist or belongs to another partner. | Organisation applications | |
409 Conflict | An open organisation application already exists for this registration. | Organisation applications | |
400 Bad Request | ORDER_ | The order isn't completed or partially_refunded, or has no successful payment or line items to refund. | Refunds |
400 Bad Request | TRANSACTION_ | The order wasn't paid by GBP card payment. | Refunds |
400 Bad Request | REFUND_ | The refund is more than what's left to refund, or everything has already been refunded. | Refunds |
422 Unprocessable Entity | IDEMPOTENCY_ | The Idempotency-Key was already used for a different request. | Refunds |
422 Unprocessable Entity | refund_ | The payment isn't a GBP card payment. | Refunds |