The request schema for the purchaseShipment operation.

PurchaseShipmentRequest

interface PurchaseShipmentRequest {
    additionalInputs?: {
        [key: string]: object;
    };
    rateId: string;
    requestedDocumentSpecification: RequestedDocumentSpecification;
    requestedValueAddedServices?: RequestedValueAddedService[];
    requestToken: string;
}

Properties

additionalInputs?: {
    [key: string]: object;
}

The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation. Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation.

PurchaseShipmentRequest

rateId: string

An identifier for the rate (shipment offering) provided by a shipping service provider.

PurchaseShipmentRequest

requestedDocumentSpecification: RequestedDocumentSpecification

PurchaseShipmentRequest

requestedValueAddedServices?: RequestedValueAddedService[]

The value-added services to be added to a shipping service purchase.

PurchaseShipmentRequest

requestToken: string

A unique token generated to identify a getRates operation.

PurchaseShipmentRequest