Errors

All errors follow a consistent format.

Error Response Format
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Amount must be a valid number with up to 2 decimal places"
  }
}

Error Codes

HTTPCodeDescription
400VALIDATION_ERRORInvalid request parameters
401AUTH_ERRORMissing, invalid, or frozen API key
404NOT_FOUNDResource not found (or belongs to another team)
409CONFLICTDuplicate resource
429RATE_LIMITEDToo many requests — wait and retry
500INTERNAL_ERRORServer error — contact administrator
502MERCHANT_ERRORPayment provider is temporarily unavailable
Never rely on error messages for logic — they may change. Use the code field instead.