Error response format
All Invoicing API errors follow this structure:API errors
PayPal returns HTTP4XX 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 code | Issue | Message | Common cause | Affected fields |
|---|---|---|---|---|
403 | NOT_AUTHORIZED | Authorization failed due to insufficient permissions | Invalid access token or account permissions |
|
403 | PERMISSION_DENIED | The requested invoice and template are not associated with the requested user | Accessing resources that don’t belong to your account |
|
Request validation errors
| Issue | Description | Affected fields |
|---|---|---|
INVALID_STRING_LENGTH | Currency code must be 3 characters |
|
INVALID_STRING_MAX_LENGTH | Field exceeds maximum character limit |
|
INVALID_PARAMETER_SYNTAX | Invalid format of the dates, phone numbers, or country codes |
|
MISSING_REQUIRED_PARAMETER | Required field is missing |
|