- Auth Token
- Api Reference
- A+ Content Management
- searchContentDocumentsGET
- createContentDocumentPOST
- getContentDocumentGET
- updateContentDocumentPOST
- listContentDocumentAsinRelationsGET
- postContentDocumentAsinRelationsPOST
- validateContentDocumentAsinRelationsPOST
- searchContentPublishRecordsGET
- postContentDocumentApprovalSubmissionPOST
- postContentDocumentSuspendSubmissionPOST
- Application Management
- The AWD
- Catalog Items V0
- Catalog Items 2020-12-01
- Catalog Items 2022-04-01
- Data Kiosk
- Product Type Definitions
- Easy Ship
- FBA Inbound Eligibilty
- FBA Inventory
- Finances
- Fulfillment Inbound V0
- createInboundShipmentPlanPOST
- createInboundShipmentPOST
- updateInboundShipmentPUT
- getPreorderInfoGET
- confirmPreorderPUT
- getPrepInstructionsGET
- getTransportDetailsGET
- putTransportDetailsPUT
- voidTransportPOST
- estimateTransportPOST
- confirmTransportPOST
- getLabelsGET
- getBillOfLadingGET
- getShipmentsGET
- getShipmentItemsByShipmentIdGET
- getShipmentItemsGET
- Listings Restrictions
- Merchant Fulfillment
- Messaging
- getMessagingActionsForOrderGET
- confirmCustomizationDetailsPOST
- createConfirmDeliveryDetailsPOST
- createLegalDisclosurePOST
- createNegativeFeedbackRemovalPOST
- createConfirmOrderDetailsPOST
- createConfirmServiceDetailsPOST
- CreateAmazonMotorsPOST
- CreateWarrantyPOST
- GetAttributesGET
- createDigitalAccessKeyPOST
- createUnexpectedProblemPOST
- sendInvoicePOST
- Notifications
- Orders
- Product Fees
- Pricing V0
- Pricing 2022-05-01
- Replenishment
- Sales
- Sellers
- Services
- getServiceJobByServiceJobIdGET
- cancelServiceJobByServiceJobIdPUT
- completeServiceJobByServiceJobIdPUT
- getServiceJobsGET
- addAppointmentForServiceJobByServiceJobIdPOST
- rescheduleAppointmentForServiceJobByServiceJobIdPOST
- assignAppointmentResourcesPUT
- setAppointmentFulfillmentDataPUT
- getRangeSlotCapacityPOST
- getFixedSlotCapacityPOST
- updateSchedulePUT
- createReservationPOST
- updateReservationPUT
- cancelReservationDELETE
- getAppointmmentSlotsByJobIdGET
- getAppointmentSlotsGET
- createServiceDocumentUploadDestinationPOST
- Shipment Invoicing
- Shipping
- Amazon Shipping API V2
- getRatesPOST
- directPurchaseShipmentPOST
- purchaseShipmentPOST
- oneClickShipmentPOST
- getTrackingGET
- getShipmentDocumentsGET
- cancelShipmentPUT
- getAdditionalInputsGET
- getCarrierAccountFormInputsGET
- getCarrierAccountsPUT
- linkCarrierAccountPUT
- unlinkCarrierAccountPUT
- generateCollectionFormPOST
- getCollectionFormHistoryPUT
- getUnmanifestedShipmentsPUT
- getCollectionFormGET
- getAccessPointsGET
- Solicitations
- Supply Sources
- Tokens
- Uploads
- FBA inbound operations. 2024-03-20
- listInboundPlansGET
- createInboundPlanPOST
- getInboundPlanGET
- listInboundPlanBoxesGET
- cancelInboundPlanPUT
- listInboundPlanItemsGET
- updateInboundPlanNamePUT
- listPackingGroupBoxesGET
- listPackingGroupItemsGET
- setPackingInformationPOST
- listPackingOptionsGET
- generatePackingOptionsPOST
- confirmPackingOptionPOST
- listInboundPlanPalletsGET
- listPlacementOptionsGET
- generatePlacementOptionsPOST
- confirmPlacementOptionPOST
- getShipmentGET
- listShipmentBoxesGET
- listShipmentContentUpdatePreviewsGET
- generateShipmentContentUpdatePreviewsPOST
- getShipmentContentUpdatePreviewGET
- confirmShipmentContentUpdatePreviewPOST
- getDeliveryChallanDocumentGET
- listDeliveryWindowOptionsGET
- generateDeliveryWindowOptionsPOST
- confirmDeliveryWindowOptionsPOST
- listShipmentItemsGET
- updateShipmentNamePUT
- listShipmentPalletsGET
- cancelSelfShipAppointmentPUT
- getSelfShipAppointmentSlotsGET
- generateSelfShipAppointmentSlotsPOST
- scheduleSelfShipAppointmentPOST
- updateShipmentSourceAddressPUT
- updateShipmentTrackingDetailsPUT
- listTransportationOptionsGET
- generateTransportationOptionsPOST
- confirmTransportationOptionsPOST
- listItemComplianceDetailsGET
- updateItemComplianceDetailsPUT
- createMarketplaceItemLabelsPOST
- getInboundOperationStatusGET
- Fulfillment Outbound
- getFulfillmentPreviewPOST
- deliveryOffersPOST
- listAllFulfillmentOrdersGET
- createFulfillmentOrderPOST
- getPackageTrackingDetailsGET
- listReturnReasonCodesGET
- createFulfillmentReturnPUT
- getFulfillmentOrderGET
- updateFulfillmentOrderPUT
- cancelFulfillmentOrderPUT
- submitFulfillmentOrderStatusUpdatePUT
- getFeaturesGET
- getFeatureInventoryGET
- getFeatureSKUGET
- Reports 2020-09-04
- Reports 2021-06-30
- Feeds 2020-09-04
- Feeds 2021-06-30
- Listings Items 2020-09-01
- Listings Items 2021-08-01
- Direct Fulfillment Inventory Updates
- Direct Fulfillment Orders V1
- Direct Fulfillment Orders 2021-12-28
- Direct Fulfillment Payments
- Vendor Direct Fulfillment Sandbox Test Data
- Direct Fulfillment Shipping V1
- Direct Fulfillment Shipping 2021-12-28
- Direct Fulfillment Transaction Status V1
- Direct Fulfillment Transaction Status 2021-12-28
- Retail Procurement Payments
- Retail Procurement Orders
- Retail Procurement Shipments
- Retail Procurement Transaction Status
获取Token
北美(North America)
北美(North America)
POST
https://sellingpartnerapi-na.amazon.com/auth/o2/token
欢迎来到SP-API中文接口文档工作台。作者:微信号 sfgoods#
文档最新更新时间:2025年3月16日#
这里包含了所有的SP-API的接口,便于您快速调试和调研数据。有疑问可以联系作者:微信号 sfgoods#
提示
如果需要调用其他Order Listing FBA Report Feed 等等接口,请移步
Api Reference
(默认按照字母排序)使用之前必须先切换环境
和设置环境变量
#
调用Api Reference,只需要设置
access_token
调用Token接口需要设置:
client_id
和 client_secert
注意:请先切换[环境变量]为Token接口 。 代理开发者,请使用Token代理接口
state 步骤 2 中的状态值。
selling_partner_id 授权您的应用程序的销售伙伴的标识符。
mws_auth_token (仅限卖家申请)在为 Amazon Marketplace Web Service 调用创建查询字符串时指定的值。
spapi_oauth_code 用于生成 LWA 刷新令牌的 Login with Amazon (LWA) 授权代码
请求参数
Body 参数application/json
grant_type
string
授权类型
code
string
授权code
client_id
string
开发者ID
client_secret
string
开发者密钥
示例
{
"grant_type": "authorization_code",
"code": "ANDRasffGNatieRieOYBG",
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}"
}
示例代码
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/auth/o2/token?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"grant_type":"authorization_code",
"code":"ANDRasffGNatieRieOYBG",
"client_id":"{{client_id}}",
"client_secret":"{{client_secret}}"
}'
返回响应
🟢200成功
application/json
Body
access_token
string
必需
token_type
string
必需
expires_in
integer
必需
refresh_token
string
必需
示例
{
"access_token": "Atza|IQEBLjAsAexampleHpi0U-Dme37rR6CuUpSR",
"token_type": "bearer",
"expires_in": 3600,
"refresh_token": "Atzr|IQEBLzAtAhexamplewVz2Nn6f2y-tpJX2DeX"
}

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


修改于 5 天前