Multipiece Rates

The operation is used for rateshop and to get specific rate based on serviceId for Multipiece.

SecuritybearerAuth
Request
query Parameters
includeDeliveryCommitment
string
Default: true

When set to true (default), the response includes delivery commitment information. Set to false to exclude delivery commitment details from the response.

header Parameters
X-PB-Developer-Partner-Id
string

This is the Developer Partner ID. When the developer is the only partner, this field is not required.

X-PB-LocationId
string

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-LocationId header is optional when the shipment origin country code matches the enterprise's default address country code.
  • The X-PB-LocationId header 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".
Request Body schema: application/json
One of:
object

Details of the sender's address.

Array of objects

Details of each parcel within the multi-piece shipment.

carrierAccounts
Array of strings

A list of identifiers for the carrier accounts used for shipping.

object

Details of the recipient's address.

Responses
200

The Multipiece Rates created successfully.

400

Invalid request.

401

The request could not be authorized.

500

The request could not be completed due to an internal error.

post/api/v1/multipiece/rates
Request samples
application/json
{
  • "fromAddress": {
    },
  • "multiPieceParcels": [
    ],
  • "carrierAccounts": [
    ],
  • "toAddress": {
    }
}
Response samples
application/json
{
  • "fromAddress": {
    },
  • "toAddress": {
    },
  • "serviceId": "NDA",
  • "rates": [
    ],
  • "errors": [
    ]
}