API Responses
PayPal API calls return HTTP status codes. Some API calls also return JSON response bodies that include information about the resource.
All responses from FlexShopper share keys:
Key | Description |
data | The full data from a successful request |
error.statusCode | HTTP status code. Returned in |
error.code | Error identifier; only present if the request was an error. |
error.message | Full error message; only present if the request was an error. |
HTTP status codes
Each REST API request returns a success or error HTTP status code.
Success
All successful request response contains a data
object with the full data response.
In the responses, FlexShopper returns these HTTP status codes for successful requests:
Status code | Description |
| The request succeeded |
Error
In the responses for failed requests, FlexShopper returns HTTP 4XX
or 5XX
status codes.
For all errors FlexShopper returns an error response body that includes additional error details in this format.
In the responses, FlexShopper returns these HTTP status codes for failed requests:
Status code | Cause |
| The server could not understand the request. Indicates one of these conditions:
|
| The request requires authentication and the caller did not provide valid credentials. |
| The server did not find anything that matches the request URI. Either the URI is incorrect or the resource is not available. |
| A system or application error occurred. Although the client appears to provide a correct request, something unexpected occurred on the server. |
| The server cannot handle the request for a service due to temporary maintenance. |
In addition to common HTTP status codes that the REST APIs return, the API identify logic errors using a unique code click here to learn more
Last updated