Skip to main content

Errors

Access Token Error Codes

400 Bad Request

ErrorError Description
invalid_grantgrant_type is invalid. Accepted values: refresh_token, client_credentials, authorization_code
invalid_grantInvalid refresh_token
invalid_requestInvalid client_id
invalid_requestMissing fields in POST body client_id, client_secret, grant_type and scope required.
invalid_requestOAuth 2.0 Parameter: <parameter name> missing
invalid_requestPOST body is empty.
invalid_requestUnsupported Media Type for POST body. Must be json.
invalid_scopescope is invalid. Accepted values: business_connect

Service Account, only

401 Unauthorized

ErrorError Description
invalid_clientInvalid client_id or client_secret
invalid_grantInvalid refresh_token

404 Not Found

ErrorError Description
404 Not Foundinvalid_request

500 Internal Server Error

ErrorError Description
internal_server_errorAN_UNKNOWN_ERROR_OCCURRED
internal_server_errorserver error

Authorization Code Error Codes

ErrorError Description
unsupported_response_typeresponse_type must be code
invalid_requestcode_challenge_method must be S256
invalid_requestclient_id does not match a registered OAuth app
invalid_requestbad request
invalid_requestredirect_uri must not be empty string
invalid_requestredirect_uri is not valid
invalid_requestlocalhost is not allowed for redirect_uri. Use the IP literal (127.0.0.1) instead
invalid_requestredirect_uri does not match one of the registered redirect_uri on OAuth app
invalid_requestscope must not be empty string
invalid_scopescope is not valid
invalid_requestclient_id must not be empty string
server_errorserver error
ParameterDescription
errorError code
error_descriptionError description
Path Template
POST {url}?{parameters}
Path Example
POST {url}?error=unsupported_response_type&error_description=response_type+must+be+code&state=xyzABC123
note

A whitespace character is encoded as + in an error description

Troubleshooting

Error DescriptionCause
Invalid refresh_tokenUser revoked partner's access to their Apple Business account
Expired authorization code passed in token request