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.
Defaults (i.e., default values) have been created successfully.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "name": "FedEx-Defaults",
- "defaultID": "0d4f3c51-059b-4c28-a83b-a8defa2962cc",
- "sendingOptions": {
- "carrier": "FedEx",
- "service": "2DA",
- "carrierAccounts": {
- "USPS": "JYKEb4VQvoVx!",
- "FEDEX": "WRF4VFUUJDx!"
}, - "labelSize": "DOC_4X6",
- "labelType": "SHIPPING_LABEL",
- "labelFormat": "PDF",
- "fromAddress": {
- "name": "Sender Name",
- "addressLine1": "3010 Summer Street",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "company": "PB",
- "email": "testuser@gmail.com",
- "phone": "416 123-4567",
- "cityTown": "OTTAWA",
- "stateProvince": "ON",
- "postalCode": "K1A0B2",
- "inductionPostalCode": "06905",
- "countryCode": "CA",
- "residential": true
}, - "parcel": {
- "length": 2,
- "width": 1,
- "height": 1,
- "dimUnit": "IN",
- "weightUnit": "OZ",
- "weight": 2,
- "packageValue": 2
}
}
}
{- "id": "66b1b6d6a2c763f9d0bd5396",
- "defaultId": "1c7937cf-fc56-4fc6-95bf-0465ae9acd4f"
}