Skip to main content

Errors

Listopays uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Listopays’s servers (these are rare).

Some 4xx errors that could be handled programmatically (e.g., a card is declined) include an error code that briefly explains the error reported.

Customer email errors​

Requests to create a customer (or a payment with a new customer) can fail with 422 when the provided customer email is not a real end-customer address:

{
"success": false,
"message": "Customer email is not valid: <reason>"
}
ReasonMeaning
malformedThe email is not a valid address
merchant domainThe email is on the merchant's own website domain
placeholder domainPlaceholder/test domains (example.com, mailinator.com, …)
generated addressSynthetic local part (user-123@, noreply@, order-77@, …)

A customer email domain can also be restricted after moderation review:

{
"success": false,
"message": "Customer email is not allowed: domain 'example-shop.xyz' is blocked"
}

See Customer Email Requirements for details.