import type { CancelShipmentResponse, DirectPurchaseRequest, DirectPurchaseResponse, GenerateCollectionFormRequest, GenerateCollectionFormResponse, GetAccessPointsResponse, GetAdditionalInputsResponse, GetCarrierAccountFormInputsResponse, GetCarrierAccountsRequest, GetCarrierAccountsResponse, GetCollectionFormHistoryRequest, GetCollectionFormHistoryResponse, GetCollectionFormResponse, GetRatesRequest, GetRatesResponse, GetShipmentDocumentsResponse, GetTrackingResponse, GetUnmanifestedShipmentsRequest, GetUnmanifestedShipmentsResponse, LinkCarrierAccountRequest, LinkCarrierAccountResponse, OneClickShipmentRequest, OneClickShipmentResponse, PurchaseShipmentRequest, PurchaseShipmentResponse, UnlinkCarrierAccountRequest, UnlinkCarrierAccountResponse } from "./data-contracts"; import type { HttpClient, RequestParams } from "../../http-client"; export declare class Shipping { private http; constructor(http: HttpClient); /** * @description Returns the available shipping service offerings. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetRates * @request POST:/shipping/v2/shipments/rates */ getRates: (body: GetRatesRequest, params?: RequestParams) => Promise; /** * @description Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name DirectPurchaseShipment * @request POST:/shipping/v2/shipments/directPurchase */ directPurchaseShipment: (body: DirectPurchaseRequest, params?: RequestParams) => Promise; /** * @description Purchases a shipping service and returns purchase related details and documents. Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to "TOKEN_EXPIRED". If you receive this error response, you must get the rates for the shipment again. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name PurchaseShipment * @request POST:/shipping/v2/shipments */ purchaseShipment: (body: PurchaseShipmentRequest, params?: RequestParams) => Promise; /** * @description Purchases a shipping service identifier and returns purchase-related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name OneClickShipment * @request POST:/shipping/v2/oneClickShipment */ oneClickShipment: (body: OneClickShipmentRequest, params?: RequestParams) => Promise; /** * @description Returns tracking information for a purchased shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetTracking * @request GET:/shipping/v2/tracking */ getTracking: (query: { /** A carrier-generated tracking identifier originally returned by the purchaseShipment operation. */ trackingId: string; /** A carrier identifier originally returned by the getRates operation for the selected rate. */ carrierId: string; }, params?: RequestParams) => Promise; /** * @description Returns the shipping documents associated with a package in a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetShipmentDocuments * @request GET:/shipping/v2/shipments/{shipmentId}/documents */ getShipmentDocuments: (shipmentId: string, query: { /** The package client reference identifier originally provided in the request body parameter for the getRates operation. */ packageClientReferenceId: string; /** The file format of the document. Must be one of the supported formats returned by the getRates operation. */ format?: string; /** The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. */ dpi?: number; }, params?: RequestParams) => Promise; /** * @description Cancels a purchased shipment. Returns an empty object if the shipment is successfully cancelled. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name CancelShipment * @request PUT:/shipping/v2/shipments/{shipmentId}/cancel */ cancelShipment: (shipmentId: string, params?: RequestParams) => Promise; /** * @description Returns the JSON schema to use for providing additional inputs when needed to purchase a shipping offering. Call the getAdditionalInputs operation when the response to a previous call to the getRates operation indicates that additional inputs are required for the rate (shipping offering) that you want to purchase. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetAdditionalInputs * @request GET:/shipping/v2/shipments/additionalInputs/schema */ getAdditionalInputs: (query: { /** The request token returned in the response to the getRates operation. */ requestToken: string; /** The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. */ rateId: string; }, params?: RequestParams) => Promise; /** * @description This API will return a list of input schema required to register a shipper account with the carrier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetCarrierAccountFormInputs * @request GET:/shipping/v2/carrierAccountFormInputs */ getCarrierAccountFormInputs: (params?: RequestParams) => Promise; /** * @description This API will return Get all carrier accounts for a merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetCarrierAccounts * @request PUT:/shipping/v2/carrierAccounts */ getCarrierAccounts: (body: GetCarrierAccountsRequest, params?: RequestParams) => Promise; /** * @description This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name LinkCarrierAccount * @request PUT:/shipping/v2/carrierAccounts/{carrierId} */ linkCarrierAccount: (carrierId: string, body: LinkCarrierAccountRequest, params?: RequestParams) => Promise; /** * @description This API Unlink the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name UnlinkCarrierAccount * @request PUT:/shipping/v2/carrierAccounts/{carrierId}/unlink */ unlinkCarrierAccount: (carrierId: string, body: UnlinkCarrierAccountRequest, params?: RequestParams) => Promise; /** * @description This API Call to generate the collection form. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GenerateCollectionForm * @request POST:/shipping/v2/collectionForms */ generateCollectionForm: (body: GenerateCollectionFormRequest, params?: RequestParams) => Promise; /** * @description This API Call to get the history of the previously generated collection forms. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetCollectionFormHistory * @request PUT:/shipping/v2/collectionForms/history */ getCollectionFormHistory: (body: GetCollectionFormHistoryRequest, params?: RequestParams) => Promise; /** * @description This API Get all unmanifested carriers with shipment locations. Any locations which has unmanifested shipments with an eligible carrier for manifesting shall be returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetUnmanifestedShipments * @request PUT:/shipping/v2/unmanifestedShipments */ getUnmanifestedShipments: (body: GetUnmanifestedShipmentsRequest, params?: RequestParams) => Promise; /** * @description This API reprint a collection form. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetCollectionForm * @request GET:/shipping/v2/collectionForms/{collectionFormId} */ getCollectionForm: (collectionFormId: string, params?: RequestParams) => Promise; /** * @description Returns a list of access points in proximity of input postal code. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). * * @tags shipping * @name GetAccessPoints * @request GET:/shipping/v2/accessPoints */ getAccessPoints: (query: { /** @example "HELIX" */ accessPointTypes: ("HELIX" | "CAMPUS_LOCKER" | "OMNI_LOCKER" | "ODIN_LOCKER" | "DOBBY_LOCKER" | "CORE_LOCKER" | "3P" | "CAMPUS_ROOM")[]; /** @example "US" */ countryCode: string; /** @example "EX332JL" */ postalCode: string; }, params?: RequestParams) => Promise; }