Shipping APIs
/Ship Via Code APIs
//
Update Ship Via Code
This operation Updates the configuration for the specified ship via code.
The ship via code itself cannot be changed. If provided in the body, it will be ignored.
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/{code}
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/shipviacode/{code}
- Sandbox Server for Canadahttps://api-ppd.shipping360.pitneybowes.com/ca/shipping/api/v1/shipviacode/{code}
- Production Server for Canadahttps://api.shipping360.pitneybowes.com/ca/shipping/api/v1/shipviacode/{code}
curl -i -X PUT \
'https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/shipviacode/{code}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"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": "myups-test2" }