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.