ebay_create_shipment_from_shipping_quote
Create an eBay shipment and shipping label by purchasing a selected rate from an existing shipping quote, charging the seller's billing agreement and returning tracking and label URL.
Instructions
Purchase postage: create a shipment and its shipping label from one rate of a shipping quote (Logistics API createFromShippingQuote). This charges the seller's billing agreement the rate's base cost plus any additionalOptions (eBay error 90030 means no billing agreement is set up). Pass shipmentRequest with shippingQuoteId and rateId from ebay_create_shipping_quote, optionally additionalOptions, labelSize, labelCustomMessage, and returnTo. Returns the shipment with shipmentId, tracking number, totalShippingCost, and labelDownloadUrl; get the PDF with ebay_download_shipping_label_file. Logistics API is limited release (eBay-approved developers only, USPS rates and labels only) and needs the https://api.ebay.com/oauth/api_scope/sell.logistics scope, which is not requested by default: eligible keysets add it to EBAY_OAUTH_SCOPES and re-consent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| marketplaceId | No | X-EBAY-C-MARKETPLACE-ID for the request, e.g. EBAY_US; defaults to the configured EBAY_MARKETPLACE_ID | |
| shipmentRequest | Yes | Generated CreateShipmentFromQuoteRequest body: the quote and rate to purchase |