It contains information about a label or a document, e.g., a shipping label, a customs form, manifest report etc., that pertains to a shipment or manifest.
The X-PB-LocationId header identifies the enterprise, developer, or partner location under which a shipment is processed and billed. If the header is not provided, the system defaults to the enterprise-level location that was created during developer account onboarding. This default location is automatically used for shipment processing and billing.
Requirement Rules
- The
X-PB-LocationIdheader is optional when the shipment origin country code matches the enterprise's default address country code. - The
X-PB-LocationIdheader is required when the shipment origin country code differs from the enterprise's default address country code. - If the header is required but not provided, the API will return a validation error "invalid origin countryCode".
Name of the Printer connected (directly or via network) to a Computer. Max length = 30
Content/Identifier of document e.g., DOCUMENT_REFERECE_ID. Actual document name e.g., abc.pdf. [IN] i.e base64 string, URL, file path
Data Type of the document e.g., DOCUMENT_REFERENCE. [IN/OUT]
The format of the document file the print takes.
The name of the Document Form.
- Contains key value map for passing references. Max references allowed is 6.
- References are tags or information that is printed on Shipping Label based on the customer's requirement.
- Reference Fields can have values/indication like department name, invoice no., package description, purchase order no., carrier note, cost account no., transportation no., or PO No., etc.
- Each of the reference field can have only one indication/value.
- https://api-dev.sendpro360.pitneycloud.com/shippinghttps://api-dev.sendpro360.pitneycloud.com/shipping/api/v1/document/print
- https://api-qa.sendpro360.pitneycloud.com/shippinghttps://api-qa.sendpro360.pitneycloud.com/shipping/api/v1/document/print
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/document/print
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/document/print
- Sandbox Server for Canadahttps://api-ppd.shipping360.pitneybowes.com/ca/shipping/api/v1/document/print
- Production Server for Canadahttps://api.shipping360.pitneybowes.com/ca/shipping/api/v1/document/print
- Admin Sandbox Server for global regionhttps://admin-ppd.spo.pitneybowes.com/shipping/api/v1/document/print
- Admin Production Server for global regionhttps://admin-global.shipping360.pitneybowes.com/shipping/api/v1/document/print
- Client Sandbox Server for global regionhttps://app-global-ppd.spo.pitneybowes.com/shipping/api/v1/document/print
- Client Production Server for global regionhttps://app-global.shipping360.pitneybowes.com/shipping/api/v1/document/print
curl -i -X POST \
https://api-dev.sendpro360.pitneycloud.com/shipping/api/v1/document/print \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-PB-Developer-Partner-Id: string' \
-H 'X-PB-LocationId: string' \
-H 'X-PB-TransactionId: string' \
-d '{
"printerAliasName": "Pitney Bowes Printer",
"data": "<<base64string>>",
"dataType": "BASE64",
"documentType": "ZPL2",
"formName": "ENV10",
"orientation": "PORTRAIT",
"reference": {
"reference1": "123456",
"reference2": "SendTech",
"reference3": "65439",
"reference4": "FedEx First Overnight"
}
}'{ "jobId": "accc" }