Shipping APIs
/Customs Product APIs
//
Add Customs Product
This operation creates a customs product and returns its identifier. Use this identifier in shipment APIs to prefill customs item fields (HS tariff code, origin country, unit price, weight, quantity).
Note: Support for this capability in the Rate Shipment and Create Shipment APIs is under active development. It is targeted for upcoming release.
Security
bearerAuth
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/customsproduct
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/customsproduct
- Sandbox Server for Canadahttps://api-ppd.shipping360.pitneybowes.com/ca/shipping/api/v1/customsproduct
- Production Server for Canadahttps://api.shipping360.pitneybowes.com/ca/shipping/api/v1/customsproduct
curl -i -X POST \
https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/customsproduct \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"description": "This is description of the product",
"originCountryCode": "US",
"hsTariffCode": "hsc01",
"quantity": 1,
"unitPrice": 10,
"itemId": "item1",
"url": "abc",
"productDimensions": {
"length": 10,
"height": 10,
"width": 10,
"dimUnit": "IN"
},
"weightUnit": "OZ",
"weight": 10
}'Customs Product identifier successfully created.
The generated customs product identifier that can be used as customs items for international shipments. The items/properties defined here can only be used in the customsItems array.
Example:"cp00000922010"
Response
{ "customsProductId": "cp00000922010" }