Technical guides

Error codes

API errors return structured error codes with specific messages. Use these codes to diagnose issues and implement appropriate error handling.


Use case

Translate API errors into clear UI messages and reliable alerts.


System errors

CodeMeaning
SYS0001Invalid Token

Account errors

CodeMeaning
ACC0001Request must contain at least one label
ACC0002No content found
ACC0003Invalid items in label update: {0}
ACC0004No invoice found
ACC0005Invoice number is mandatory

Order errors

CodeMeaning
ORD0001dateFrom must be prior or equal to dateTo
ORD0002Sales orders creation disabled
ORD0003Doorstep Delivery access not granted
ORD0004Error during cart creation
ORD0005Delivery address is not valid
ORD0006ReturnAddressID is not valid
ORD0007Document language must be en or fr
ORD0008Product identifier cannot be resolved
ORD0009Product defined multiple times
ORD0010Not enough inventory available
ORD0011No content found
ORD0012Product not allowed for doorstep delivery
ORD0013Request must contain items
ORD0014Doorstep delivery payment preferences not set
ORD0015Call customer service to order product
ORD0016Items with missing quantities: {0}
ORD0017Order number is mandatory for tracking
ORD0018No tracking number found or not available yet
ORD0019Authorized dealers only for product {0}
ORD0020PO box addresses are not supported

Payment errors

CodeMeaning
PMT0001Transaction declined – try a different card
PMT0002Billing address verification failed
PMT0003Transaction declined – try a different card
PMT0004Invalid expiration date
PMT0005Withdrawal limit reached
PMT0006Insufficient funds
PMT0007Invalid security code
PMT0008Invalid account number
PMT0009Error – contact customer service
PMT0010Transaction declined – contact card provider
PMT0011Request declined – try again

Catalog errors

CodeMeaning
CAT0001Invalid product status
CAT0002No content found

Example: error mapping

const errorMap = {
  SYS0001: 'Your API key is invalid or expired.',
  ORD0010: 'Inventory is short—reduce quantity or try later.',
}

function toUserMessage(code) {
  return errorMap[code] ?? 'Something went wrong.'
}
Previous
Testing