On this page
No Headings
Oauth 2.0 authentication
Client CredentialsToken URLhttps://api-m.sandbox.paypal.com/v1/oauth2/tokenInheaderScopes
https://uri.paypal.com/services/invoicing/invoices/readThe fields to return in the response. Value is all or none. To return only the template name, ID, and default attributes, specify none.
"all"^([Aa][Ll][Ll]|[Nn][Oo][Nn][Ee])$1 <= length <= 2147483647The page number to be retrieved, for the list of templates. So, a combination of page=1 and page_size=20 returns the first 20 templates. A combination of page=2 and page_size=20 returns the next 20 templates.
11 <= value <= 1000The maximum number of templates to return in the response.
201 <= value <= 100Holds authorization information for external API calls.
^.*$1 <= length <= 16000application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api-m.sandbox.paypal.com/v2/invoicing/templates" \ -H "Authorization: Bearer A21AAGHr9qtiRRXH4oYcQokQgV99rGqEIfgrr8xHCclP0OzmD9KVgg5ppIIg1jzJgQkV4wd02svIvBJyg6cLFJjFow_SjBhxQ"{
"addresses": [],
"emails": "string",
"phones": [],
"templates": [],
"links": []
}{
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
"debug_id": "249cd3ba562bc",
"details": [
{
"field": "page_size",
"value": "1000",
"location": "query",
"issue": "INVALID_INTEGER_MAX_VALUE",
"description": "The integer value of a field is too large."
}
],
"links": [
{
"href": "https://api-m.paypal.com/v2/invoicing/templates?page_size=1000",
"rel": "self",
"method": "POST"
}
]
}{
"name": "AUTHENTICATION_FAILURE",
"debug_id": "b1d1f06c7246c",
"message": "Authentication failed due to missing Authorization header, or invalid authentication credentials."
}{
"name": "NOT_AUTHORIZED",
"debug_id": "b1d1f06c7246c",
"message": "Authorization failed due to insufficient permissions."
}{
"name": "INTERNAL_SERVER_ERROR",
"debug_id": "b1d1f06c7246c",
"message": "An internal server error has occurred."
}{
"name": "INTERNAL_SERVER_ERROR",
"debug_id": "b1d1f06c7246c",
"message": "An internal server error has occurred."
}