Purchase a shipping label for a previously-quoted rate

Purchases the shipping label for the rate selected from a prior getRates response. Returns the shipment record with label document references.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
requestTokenstringRequired
requestToken returned by the prior getRates response.
rateIdstringRequired
The chosen rateId from the getRates response.
requestedDocumentSpecificationobjectRequired
requestedValueAddedServiceslist of objectsOptional
additionalInputsmap from strings to anyOptional

Carrier/service-specific inputs validated against the schema returned by getAdditionalInputs.

Response

Shipment purchased successfully
payloadobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error