Skip to main content
The PayPal Invoicing API returns specific error codes and messages to help you troubleshoot integration issues.

Error response format

All Invoicing API errors follow this structure:

API errors

PayPal returns HTTP 4XX status codes if something passes in the request has an error. 5XX status codes appear when something is wrong on our end with a server or service. For more information, see Handling API responses when integrating with PayPal APIs.

Authorization errors

HTTP codeIssueMessageCommon causeAffected fields
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissionsInvalid access token or account permissions
  • invoiceId
  • templateId
403PERMISSION_DENIEDThe requested invoice and template are not associated with the requested userAccessing resources that don’t belong to your account
  • invoiceId
  • templateId

Request validation errors

IssueDescriptionAffected fields
INVALID_STRING_LENGTHCurrency code must be 3 characters
  • /detail/currency_code
  • /amount/currency_code
INVALID_STRING_MAX_LENGTHField exceeds maximum character limit
  • /detail/note
  • /items/0/name
  • /detail/invoice_number
INVALID_PARAMETER_SYNTAXInvalid format of the dates, phone numbers, or country codes
  • /detail/invoice_date
  • /detail/payment_term/due_date
MISSING_REQUIRED_PARAMETERRequired field is missing
  • /method
  • /amount/value

Business logic errors

Field validation limits