Amazon Selling Partner API (SP-API)-中文
工具首页问答社区广告API开发者申请AI智能助手官方文档TokenApi Reference
工具首页问答社区广告API开发者申请AI智能助手官方文档TokenApi Reference
  1. Direct Fulfillment Shipping 2021-12-28
  • Orders
    • getOrders
      GET
    • getOrder
      GET
    • getOrderBuyerInfo
      GET
    • getOrderAddress
      GET
    • getOrderItems
      GET
    • getOrderItemsBuyerInfo
      GET
    • updateShipmentStatus
      POST
    • getOrderRegulatedInfo
      GET
    • updateVerificationStatus
      PATCH
    • confirmShipment
      POST
  • Reports 2021-06-30
    • getReports
      GET
    • createReport
      POST
    • cancelReport
      DELETE
    • getReport
      GET
    • getReportSchedules
      GET
    • createReportSchedule
      POST
    • cancelReportSchedule
      DELETE
    • getReportSchedule
      GET
    • getReportDocument
      GET
  • Feeds 2021-06-30
    • getFeeds
    • createFeed
    • cancelFeed
    • getFeed
    • createFeedDocument
    • getFeedDocument
  • Sellers
    • getMarketplaceParticipations
  • Pricing 2022-05-01
    • getFeaturedOfferExpectedPriceBatch
    • getCompetitiveSummary
  • Notifications
    • getSubscription
    • createSubscription
    • getSubscriptionById
    • deleteSubscriptionById
    • getDestinations
    • createDestination
    • getDestination
    • deleteDestination
  • A+ Content Management
    • searchContentDocuments
    • createContentDocument
    • getContentDocument
    • updateContentDocument
    • listContentDocumentAsinRelations
    • postContentDocumentAsinRelations
    • validateContentDocumentAsinRelations
    • searchContentPublishRecords
    • postContentDocumentApprovalSubmission
    • postContentDocumentSuspendSubmission
  • Application Management
    • rotateApplicationClientSecret
  • The AWD
    • getInboundShipment
    • listInboundShipments
    • listInventory
  • Catalog Items V0
    • listCatalogItems
    • getCatalogItem
    • listCatalogCategories
  • Catalog Items 2020-12-01
    • searchCatalogItems
    • getCatalogItem
  • Catalog Items 2022-04-01
    • searchCatalogItems
    • getCatalogItem
  • Data Kiosk
    • getQueries
    • createQuery
    • cancelQuery
    • getQuery
    • getDocument
  • Product Type Definitions
    • searchDefinitionsProductTypes
    • getDefinitionsProductType
  • Automotive.
    • getVehicles
  • Easy Ship
    • listHandoverSlots
    • getScheduledPackage
    • createScheduledPackage
    • updateScheduledPackages
    • createScheduledPackageBulk
  • FBA Inbound Eligibilty
    • getItemEligibilityPreview
  • FBA Inventory
    • getInventorySummaries
    • createInventoryItem
    • deleteInventoryItem
    • addInventory
  • Finances
    • listFinancialEventGroups
    • listFinancialEventsByGroupId
    • listFinancialEventsByOrderId
    • listFinancialEvents
  • Finances 2024-06-19
    • listTransactions
  • Fulfillment Inbound V0
    • createInboundShipmentPlan
    • createInboundShipment
    • updateInboundShipment
    • getPreorderInfo
    • confirmPreorder
    • getPrepInstructions
    • getTransportDetails
    • putTransportDetails
    • voidTransport
    • estimateTransport
    • confirmTransport
    • getLabels
    • getBillOfLading
    • getShipments
    • getShipmentItemsByShipmentId
    • getShipmentItems
  • Listings Items 2021-08-01
    • deleteListingsItem
    • getListingsItem
    • patchListingsItem
    • putListingsItem
    • searchListingsItems
  • Listings Restrictions
    • getListingsRestrictions
  • Merchant Fulfillment
    • getEligibleShipmentServices
    • getShipment
    • cancelShipment
    • createShipment
    • getAdditionalSellerInputs
  • Messaging
    • getMessagingActionsForOrder
    • confirmCustomizationDetails
    • createConfirmDeliveryDetails
    • createLegalDisclosure
    • createNegativeFeedbackRemoval
    • createConfirmOrderDetails
    • createConfirmServiceDetails
    • CreateAmazonMotors
    • CreateWarranty
    • GetAttributes
    • createDigitalAccessKey
    • createUnexpectedProblem
    • sendInvoice
  • Product Fees
    • getMyFeesEstimateForSKU
    • getMyFeesEstimateForASIN
    • getMyFeesEstimates
  • Pricing V0
    • getPricing
    • getCompetitivePricing
    • getListingOffers
    • getItemOffers
    • getItemOffersBatch
    • getListingOffersBatch
  • Replenishment
    • getSellingPartnerMetrics
    • listOfferMetrics
    • listOffers
  • Sales
    • getOrderMetrics
  • Services
    • getServiceJobByServiceJobId
    • cancelServiceJobByServiceJobId
    • completeServiceJobByServiceJobId
    • getServiceJobs
    • addAppointmentForServiceJobByServiceJobId
    • rescheduleAppointmentForServiceJobByServiceJobId
    • assignAppointmentResources
    • setAppointmentFulfillmentData
    • getRangeSlotCapacity
    • getFixedSlotCapacity
    • updateSchedule
    • createReservation
    • updateReservation
    • cancelReservation
    • getAppointmmentSlotsByJobId
    • getAppointmentSlots
    • createServiceDocumentUploadDestination
  • Shipment Invoicing
    • getShipmentDetails
    • submitInvoice
    • getInvoiceStatus
  • Shipping
    • createShipment
    • getShipment
    • cancelShipment
    • purchaseLabels
    • retrieveShippingLabel
    • purchaseShipment
    • getRates
    • getAccount
    • getTrackingInformation
  • Amazon Shipping API V2
    • getRates
    • directPurchaseShipment
    • purchaseShipment
    • oneClickShipment
    • getTracking
    • getShipmentDocuments
    • cancelShipment
    • getAdditionalInputs
    • getCarrierAccountFormInputs
    • getCarrierAccounts
    • linkCarrierAccount
    • unlinkCarrierAccount
    • generateCollectionForm
    • getCollectionFormHistory
    • getUnmanifestedShipments
    • getCollectionForm
    • getAccessPoints
  • Solicitations
    • getSolicitationActionsForOrder
    • createProductReviewAndSellerFeedbackSolicitation
  • Supply Sources
    • getSupplySources
    • createSupplySource
    • getSupplySource
    • updateSupplySource
    • archiveSupplySource
    • updateSupplySourceStatus
  • Transfers. transfers_2024-06-01
    • initiatePayout
    • getPaymentMethods
  • Tokens
    • createRestrictedDataToken
  • Uploads
    • createUploadDestinationForResource
  • Invoices.
    • getInvoicesAttributes
    • getInvoicesDocument
    • createInvoicesExport
    • getInvoicesExports
    • getInvoicesExport
    • getInvoices
    • getInvoice
  • FBA inbound operations. 2024-03-20
    • listInboundPlans
    • createInboundPlan
    • getInboundPlan
    • listInboundPlanBoxes
    • cancelInboundPlan
    • listInboundPlanItems
    • updateInboundPlanName
    • listPackingGroupBoxes
    • listPackingGroupItems
    • setPackingInformation
    • listPackingOptions
    • generatePackingOptions
    • confirmPackingOption
    • listInboundPlanPallets
    • listPlacementOptions
    • generatePlacementOptions
    • confirmPlacementOption
    • getShipment
    • listShipmentBoxes
    • listShipmentContentUpdatePreviews
    • generateShipmentContentUpdatePreviews
    • getShipmentContentUpdatePreview
    • confirmShipmentContentUpdatePreview
    • getDeliveryChallanDocument
    • listDeliveryWindowOptions
    • generateDeliveryWindowOptions
    • confirmDeliveryWindowOptions
    • listShipmentItems
    • updateShipmentName
    • listShipmentPallets
    • cancelSelfShipAppointment
    • getSelfShipAppointmentSlots
    • generateSelfShipAppointmentSlots
    • scheduleSelfShipAppointment
    • updateShipmentSourceAddress
    • updateShipmentTrackingDetails
    • listTransportationOptions
    • generateTransportationOptions
    • confirmTransportationOptions
    • listItemComplianceDetails
    • updateItemComplianceDetails
    • createMarketplaceItemLabels
    • getInboundOperationStatus
  • Fulfillment Outbound
    • getFulfillmentPreview
    • deliveryOffers
    • listAllFulfillmentOrders
    • createFulfillmentOrder
    • getPackageTrackingDetails
    • listReturnReasonCodes
    • createFulfillmentReturn
    • getFulfillmentOrder
    • updateFulfillmentOrder
    • cancelFulfillmentOrder
    • submitFulfillmentOrderStatusUpdate
    • getFeatures
    • getFeatureInventory
    • getFeatureSKU
  • Feeds 2020-09-04
    • getFeeds
    • createFeed
    • getFeed
    • cancelFeed
    • createFeedDocument
    • getFeedDocument
  • Reports 2020-09-04
    • getReports
    • createReport
    • getReport
    • cancelReport
    • getReportSchedules
    • createReportSchedule
    • getReportSchedule
    • cancelReportSchedule
    • getReportDocument
  • Listings Items 2020-09-01
    • deleteListingsItem
    • patchListingsItem
    • putListingsItem
  • Application integrations.
    • createNotification
    • deleteNotifications
    • recordActionFeedback
  • Direct Fulfillment Inventory Updates
    • submitInventoryUpdate
  • Direct Fulfillment Orders V1
    • getOrders
    • getOrder
    • submitAcknowledgement
  • Direct Fulfillment Orders 2021-12-28
    • getOrders
    • getOrder
    • submitAcknowledgement
  • Direct Fulfillment Payments
    • submitInvoice
  • Vendor Direct Fulfillment Sandbox Test Data
    • generateOrderScenarios
    • getOrderScenarios
  • Direct Fulfillment Shipping V1
    • getShippingLabels
    • submitShippingLabelRequest
    • getShippingLabel
    • submitShipmentConfirmations
    • submitShipmentStatusUpdates
    • getCustomerInvoices
    • getCustomerInvoice
    • getPackingSlips
    • getPackingSlip
  • Direct Fulfillment Shipping 2021-12-28
    • getShippingLabels
      GET
    • submitShippingLabelRequest
      POST
    • getShippingLabel
      GET
    • createShippingLabels
      POST
    • submitShipmentConfirmations
      POST
    • submitShipmentStatusUpdates
      POST
    • getCustomerInvoices
      GET
    • getCustomerInvoice
      GET
    • getPackingSlips
      GET
    • getPackingSlip
      GET
  • Direct Fulfillment Transaction Status V1
    • getTransactionStatus
  • Direct Fulfillment Transaction Status 2021-12-28
    • getTransactionStatus
  • Retail Procurement Payments
    • submitInvoices
  • Retail Procurement Orders
    • getPurchaseOrders
    • getPurchaseOrder
    • submitAcknowledgement
    • getPurchaseOrdersStatus
  • Retail Procurement Shipments
    • SubmitShipmentConfirmations
    • SubmitShipments
    • GetShipmentDetails
  • Retail Procurement Transaction Status
    • getTransaction
  1. Direct Fulfillment Shipping 2021-12-28

createShippingLabels

北美(North America)
https://sellingpartnerapi-na.amazon.com
北美(North America)
https://sellingpartnerapi-na.amazon.com
POST
https://sellingpartnerapi-na.amazon.com
/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber}
Direct Fulfillment Shipping 2021-12-28
创建采购订单的运输标签并返回标签。
使用计划:
速率(每秒请求)峰值
1010
x-amzn-RateLimit-Limit 响应头返回适用于请求操作的使用计划速率限制(如果可用)。上表显示了此操作的默认速率和峰值值。业务需求更高的销售合作伙伴可能会看到高于此处显示的速率和峰值值。有关更多信息,请参见 销售合作伙伴 API 中的使用计划和速率限制。

请求参数

Path 参数
purchaseOrderNumber
string 
必需
您要退回运输标签的采购订单号码。它应该与订单中收到的采购订单号码相同。
正则匹配:
^[a-zA-Z0-9]+$
Body 参数application/json
创建发货标签操作的请求主体。
sellingParty
object (PartyIdentification) 
必需
一方的姓名、地址和税务详情。
partyId
string 
必需
为该方分配的识别标识。
address
object (Address) 
聚会地址。
可选
taxRegistrationDetails
array[object (TaxRegistrationDetails) {4}] 
可选
实体的税务登记信息。
shipFromParty
object (PartyIdentification) 
必需
一方的姓名、地址和税务详情。
containers
array[object (Container) {12}] 
可选
此次发货中的包裹清单。
containerType
enum<string> 
容器的类型。
必需
枚举值:
CartonPallet
containerIdentifier
string 
容器标识符。
必需
trackingNumber
string 
追踪号码。
可选
manifestId
string 
清单标识符。
可选
manifestDate
string 
清单的日期。
可选
shipMethod
string 
可选
发货方式。调用submitShipmentConfirmations操作时,此属性为必需,其他情况下为可选。
scacCode
string 
可选
仅对北美进口商要求提供SCAC代码。
carrier
string 
可选
仅限EU VOC供应商需要承运人。
containerSequenceNumber
integer 
可选
仅在多箱运输中必须提交的一个整数,某个物品可能会分成几个包裹。
dimensions
object (Dimensions) 
可选
容器的物理尺寸测量。
weight
object (Weight) 
重量。
必需
packedItems
array[object (PackedItem) {5}] 
打包物品清单。
必需
示例
{
    "sellingParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "shipFromParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "containers": [
        {
            "containerType": "Carton",
            "containerIdentifier": "string",
            "trackingNumber": "string",
            "manifestId": "string",
            "manifestDate": "string",
            "shipMethod": "string",
            "scacCode": "string",
            "carrier": "string",
            "containerSequenceNumber": 0,
            "dimensions": {
                "length": "string",
                "width": "string",
                "height": "string",
                "unitOfMeasure": "IN"
            },
            "weight": {
                "unitOfMeasure": "KG",
                "value": "string"
            },
            "packedItems": [
                {
                    "itemSequenceNumber": 0,
                    "buyerProductIdentifier": "string",
                    "pieceNumber": 0,
                    "vendorProductIdentifier": "string",
                    "packedQuantity": {
                        "amount": 0,
                        "unitOfMeasure": "string"
                    }
                }
            ]
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sellingpartnerapi-na.amazon.com/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sellingParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "shipFromParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "containers": [
        {
            "containerType": "Carton",
            "containerIdentifier": "string",
            "trackingNumber": "string",
            "manifestId": "string",
            "manifestDate": "string",
            "shipMethod": "string",
            "scacCode": "string",
            "carrier": "string",
            "containerSequenceNumber": 0,
            "dimensions": {
                "length": "string",
                "width": "string",
                "height": "string",
                "unitOfMeasure": "IN"
            },
            "weight": {
                "unitOfMeasure": "KG",
                "value": "string"
            },
            "packedItems": [
                {
                    "itemSequenceNumber": 0,
                    "buyerProductIdentifier": "string",
                    "pieceNumber": 0,
                    "vendorProductIdentifier": "string",
                    "packedQuantity": {
                        "amount": 0,
                        "unitOfMeasure": "string"
                    }
                }
            ]
        }
    ]
}'

返回响应

🟢200成功
application/json
成功。
Headers
x-amzn-RateLimit-Limit
string 
可选
您对此操作的速率限制(每秒请求数量)。
x-amzn-RequestId
string 
可选
唯一请求参考标识符。
Body
订单的运输标签信息。包括采购订单号、销售方、发货方、标签格式和包装详情。
purchaseOrderNumber
string 
必需
此字段将包含该订单的采购订单号。
正则匹配:
^[a-zA-Z0-9]+$
sellingParty
object (PartyIdentification) 
必需
一方的姓名、地址和税务详情。
partyId
string 
必需
为该方分配的识别标识。
address
object (Address) 
聚会地址。
可选
taxRegistrationDetails
array[object (TaxRegistrationDetails) {4}] 
可选
实体的税务登记信息。
shipFromParty
object (PartyIdentification) 
必需
一方的姓名、地址和税务详情。
labelFormat
enum<string> 
标签的格式。
必需
枚举值:
PNGZPL
labelData
array[object (LabelData) {5}] 
必需
提供此货物中包裹的详细信息。
packageIdentifier
string 
可选
包裹的标识符。第一个包裹将是001,第二个是002,以此类推。此编号用于从托盘层面引用该包裹。
trackingNumber
string 
可选
运输承运人提供的包裹追踪标识符。
shipMethod
string 
可选
用于发货订单的运输方式。亚马逊定义了运输方式代码,指示运输承运人和发货服务级别。运输方式代码对大小写和格式敏感。运输确认中应返回相同的运输方式代码。请注意,运输方式代码是特定于供应商的,并将在实施期间提供给每个供应商。
shipMethodName
string 
可选
内部参考的运输方式名称。
content
string 
必需
此字段将包含货运标签内容的Base64编码字符串。
示例
{
    "purchaseOrderNumber": "string",
    "sellingParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "shipFromParty": {
        "partyId": "string",
        "address": {
            "name": "string",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "city": "string",
            "county": "string",
            "district": "string",
            "stateOrRegion": "string",
            "postalCode": "string",
            "countryCode": "string",
            "phone": "string"
        },
        "taxRegistrationDetails": [
            {
                "taxRegistrationType": "VAT",
                "taxRegistrationNumber": "string",
                "taxRegistrationAddress": {
                    "name": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "addressLine3": "string",
                    "city": "string",
                    "county": "string",
                    "district": "string",
                    "stateOrRegion": "string",
                    "postalCode": "string",
                    "countryCode": "string",
                    "phone": "string"
                },
                "taxRegistrationMessages": "string"
            }
        ]
    },
    "labelFormat": "PNG",
    "labelData": [
        {
            "packageIdentifier": "string",
            "trackingNumber": "string",
            "shipMethod": "string",
            "shipMethodName": "string",
            "content": "string"
        }
    ]
}
🟠400请求有误
🟠403禁止访问
🟠404记录不存在
🟠409409
🟠413413
🟠415415
🟠429429
🔴500服务器错误
🔴503服务器故障

技术咨询扫码联系作者

SP-API技术咨询,开发者申请,Amazon ERP源码

扫码加入交流群
上一页
getShippingLabel
下一页
submitShipmentConfirmations
Built with