Skip to main content

API Reference

Basic API Structure

URL

Note

A Path can have multiple parameters.

Methods

MethodDescription
GETRetrieve information about the REST API resource.
POSTCreate a REST API resource.
PUTUpdate a REST API resource.
DELETEDelete a REST API resource or related component.

Headers

Headers contain additional information about the request or response, such as the content type, authentication, and other metadata. The Following headers and combinations of key & value pairs are in the API call.

KeyvalueDescription
Content-Typeapplication/jsonDPS API supports the MIME media type for JSON text is application/json. The default encoding is UTF-8.
X-API-KEYYour authorization keyRequired for authenticating all API calls.
ShipperHashYour Shipper CodeYou will get your shipper ID code once you create a shipper.

Payload

Payload refers to the data being transmitted in an HTTP request or response, which carries the requested information or the response data.

Response

API response is the data returned by a server to a client in response to an API request, typically including a status code, headers, and a payload containing the requested information.

Errors

Errors are abnormal conditions or exceptional situations that occur during the execution of an API request, indicating that the desired outcome was not achieved, and typically returning a non-200 status code along with a descriptive error message.

Response Codes

HTTP CodeMeaning
200OK : Indicates that the request was successful and the requested information is included in the response payload.
201Created : Indicates that a new resource was successfully created as a result of the request, and the newly created resource is included in the response payload.
400Bad Request : Indicates that the request from the client was malformed or invalid.
401Unauthorized : Indicates that the client is not authorized to access the requested resource.
402Upstream Processor Error : Errors caused by 3rd party service.
403Forbidden : Indicates that the client is authenticated but lacks the necessary permissions to access the requested resource.
404Not Found : Indicates that the requested resource could not be found on the server.
500Internal Server Error : Indicates that an unexpected error occurred on the server while processing the request.
502Bad Gateway : Indicates that the server received an invalid response from an upstream server while processing the request.
503Service Unavailable: Indicates that the server is temporarily unable to handle the request due to maintenance or overload.
504Gateway Timeout: Indicates that the server did not receive a timely response from an upstream server while processing the request.