Shipping APIs
/Ship Via Code APIs
//
Create Ship Via Code
Create a ship via code that represents a specific combination of carrier, carrier account, parcel type, service, and special services.
This ship via code can then be used in the Create Shipment API, so users don't need to manually re-enter these parameters each time.
Once generated, the code can be reused across multiple shipments to reduce effort in shipping requests.
Security
bearerAuth
Unique identifier of the carrier account under which shipments will be processed.
Example:"xxxxxxxxxxx"
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/shipviacode
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/shipviacode
- Sandbox Server for Canadahttps://api-ppd.shipping360.pitneybowes.com/ca/shipping/api/v1/shipviacode
- Production Server for Canadahttps://api.shipping360.pitneybowes.com/ca/shipping/api/v1/shipviacode
curl -i -X POST \
https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/shipviacode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"code": "FEDEX-custom-code1",
"carrier": "FEDEX",
"carrierAccountId": "xxxxxxxxxxx",
"parcelType": "PKG",
"parcelName": "Package",
"serviceId": "GRD",
"serviceName": "Ground",
"specialServices": [
{
"specialServiceId": "INS",
"inputParameters": [
{
"name": "INPUT_VALUE",
"value": "101"
}
],
"fee": 0
}
]
}'Response
{ "code": "FEDEX-custom-code1" }