Skip to content

Update Defaults

Request

This operation updates the values set for Defaults.

Security
bearerAuth
Path
defaultIDstringrequired

This is unique identifier assigned to Defaults while its creation using CreateDefaults API.

Bodyapplication/jsonrequired
namestring

Name of the Default.

Example:"FedEx-Defaults"
defaultIDstring

A unique identifier to be assigned to the Default.

Example:"0d4f3c51-059b-4c28-a83b-a8defa2962cc"
sendingOptionsobject(sendingOptions)

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

curl -i -X PUT \
  'https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/defaults/{defaultID}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "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": "1600 Amphitheatre Parkway",
        "addressLine2": "near abc street",
        "addressLine3": "near xyz street",
        "company": "PB",
        "email": "testuser@gmail.com",
        "phone": "6502530000",
        "cityTown": "Mountain View",
        "stateProvince": "CA",
        "postalCode": "94043",
        "inductionPostalCode": "06905",
        "countryCode": "US",
        "residential": true
      }
    }
  }'

Responses

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

Response
No content