Create Defaults

While creating shipment, a few columns/ fields information are used mandatorily, and if the value for those columns are used repetitively, then it is always better to save last used values. And hence, this API has been introduced. Using this API, default values can be set up for frequently used columns/fields information like carrier, its linked services, and special services. Setting up the defaults will save both time and efforts.

SecuritybearerAuth
Request
Request Body schema: application/json
name
string

Name of the Default.

defaultID
string

A unique identifier to be assigned to the Default.

object (sendingOptions)

Sending Options will include carrier and its account details, sender details, and parcel details.

Responses
200

Defaults (i.e., default values) have been created successfully.

400

Invalid request.

401

The request could not be authorized.

500

The request could not be completed due to an internal error.

post/api/v1/defaults
Request samples
application/json
{
  • "name": "FedEx-Defaults",
  • "defaultID": "0d4f3c51-059b-4c28-a83b-a8defa2962cc",
  • "sendingOptions": {
    }
}
Response samples
application/json
{
  • "id": "66b1b6d6a2c763f9d0bd5396",
  • "defaultId": "1c7937cf-fc56-4fc6-95bf-0465ae9acd4f"
}