Esenda

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

StatusErrorWhenEndpoint
400 Bad RequestLine-item amounts don't add up to amount.Embedded checkout session
400 Bad RequestMore than 10 line items are supplied.Embedded checkout session
400 Bad RequestA payout_route_id is unknown.Embedded checkout session
400 Bad Requestline_items is empty, lists a line item more than once, or a refund amount is below 1.Refunds
400 Bad RequestThe Idempotency-Key header is missing.Refunds
400 Bad RequestThe refund reason is over 60 characters.Refunds
400 Bad RequestThe statement format isn't pdf.Payouts
400 Bad RequestAn organisation application has fees below your agreed minimums, or fees for a payment method that isn't enabled.Organisation applications
401 UnauthorizedThe JWT is missing, invalid or expired.All
403 Permission DeniedThe organisation hasn't completed onboarding with this partner, or has revoked its access.All
403 Permission DeniedOrganisation applications aren't enabled for your partner account.Organisation applications
404 Not FoundThe order, line item or payout doesn't exist for this organisation.Refunds, Payouts
404 Not FoundThe organisation application doesn't exist or belongs to another partner.Organisation applications
409 ConflictAn open organisation application already exists for this registration.Organisation applications
400 Bad RequestORDER_NOT_ELIGIBLE_FOR_REFUNDThe order isn't completed or partially_refunded, or has no successful payment or line items to refund.Refunds
400 Bad RequestTRANSACTION_NOT_ELIGIBLE_FOR_REFUNDThe order wasn't paid by GBP card payment.Refunds
400 Bad RequestREFUND_AMOUNT_NOT_AVAILABLEThe refund is more than what's left to refund, or everything has already been refunded.Refunds
422 Unprocessable EntityIDEMPOTENCY_KEY_ALREADY_USEDThe Idempotency-Key was already used for a different request.Refunds
422 Unprocessable Entityrefund_not_supported_for_payment_methodThe payment isn't a GBP card payment.Refunds

On this page