Amazon SP API
  1. Authorization
Amazon SP API
  • Overview
  • Authorization Workflow
  • Permissions
  • Sandbox
  • API Models
  • Available API Models
  • Request Apidog Access
  • OPENAPI SPECIFICATION
  • Research Docs
    • Amazon Seller Order Fulfillment Workflow
  • Amazon Warehousing and Distribution
    • getInboundShipment
      GET
    • listInboundShipments
      GET
    • listInventory
      GET
  • Authorization
    • Authorization
      POST
  • Catalog Items
    • searchCatalogItems
      GET
    • getCatalogItem
      GET
  • Catalog [Deprecated]
    • listCatalogItems
      GET
    • getCatalogItem
      GET
    • listCatalogCategories
      GET
  • Definitions
    • searchDefinitionsProductTypes
      GET
    • getDefinitionsProductType
      GET
  • Easy Ship
    • listHandoverSlots
      POST
    • getScheduledPackage
      GET
    • createScheduledPackage
      POST
    • updateScheduledPackages
      PATCH
    • createScheduledPackageBulk
      POST
  • FBAInbound
    • 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
    • listPrepDetails
    • setPrepDetails
    • getInboundOperationStatus
    • getItemEligibilityPreview
  • FBAInventory
    • getInventorySummaries
    • createInventoryItem
    • deleteInventoryItem
    • addInventory
  • FBAOutbound
    • getFulfillmentPreview
    • deliveryOffers
    • listAllFulfillmentOrders
    • createFulfillmentOrder
    • getPackageTrackingDetails
    • listReturnReasonCodes
    • createFulfillmentReturn
    • getFulfillmentOrder
    • updateFulfillmentOrder
    • cancelFulfillmentOrder
    • submitFulfillmentOrderStatusUpdate
    • getFeatures
    • getFeatureInventory
    • getFeatureSKU
  • Feeds
    • getFeeds
    • createFeed
    • cancelFeed
    • getFeed
    • createFeedDocument
    • getFeedDocument
  • Fees
    • getMyFeesEstimateForSKU
    • getMyFeesEstimateForASIN
    • getMyFeesEstimates
  • Finance
    • listTransactions
    • listFinancialEventGroups
    • listFinancialEventsByGroupId
    • listFinancialEventsByOrderId
    • listFinancialEvents
  • Invoices [Brazil]
    • getInvoicesAttributes
    • getInvoicesDocument
    • createInvoicesExport
    • getInvoicesExports
    • getInvoicesExport
    • getInvoices
    • getInvoice
  • Listings Items
    • getListingsRestrictions
    • deleteListingsItem
    • getListingsItem
    • patchListingsItem
    • putListingsItem
  • Merchant Fulfillment
    • getEligibleShipmentServices
    • getShipment
    • cancelShipment
    • createShipment
    • getAdditionalSellerInputs
  • Orders
    • getOrders
    • getOrder
    • getOrderBuyerInfo
    • getOrderAddress
    • getOrderItems
    • getOrderItemsBuyerInfo
    • updateShipmentStatus
    • getOrderRegulatedInfo
    • updateVerificationStatus
    • confirmShipment
  • ProductPricing
    • deprecated
      • getPricing
      • getCompetitivePricing
      • getListingOffers
      • getItemOffers
      • getItemOffersBatch
      • getListingOffersBatch
    • getFeaturedOfferExpectedPriceBatch
    • getCompetitiveSummary
  • Reports
    • getReports
    • createReport
    • cancelReport
    • getReport
    • getReportSchedules
    • createReportSchedule
    • cancelReportSchedule
    • getReportSchedule
    • getReportDocument
  • Sales
    • getOrderMetrics
  • Sellers
    • getMarketplaceParticipations
    • getAccount
  • Service
    • getServiceJobByServiceJobId
    • cancelServiceJobByServiceJobId
    • completeServiceJobByServiceJobId
    • getServiceJobs
    • addAppointmentForServiceJobByServiceJobId
    • rescheduleAppointmentForServiceJobByServiceJobId
    • assignAppointmentResources
    • setAppointmentFulfillmentData
    • getRangeSlotCapacity
    • getFixedSlotCapacity
    • updateSchedule
    • createReservation
    • updateReservation
    • cancelReservation
    • getAppointmmentSlotsByJobId
    • getAppointmentSlots
    • createServiceDocumentUploadDestination
  • ShipmentInvoice[Brazil]
    • getShipmentDetails
    • submitInvoice
    • getInvoiceStatus
  • Shipping
    • getRates
    • createShipment
    • directPurchaseShipment
    • getShipment
    • purchaseShipment
    • cancelShipment
    • oneClickShipment
    • purchaseLabels
    • getTracking
    • retrieveShippingLabel
    • getShipmentDocuments
    • purchaseShipment
    • cancelShipment
    • getRates
    • getAdditionalInputs
    • getAccount
    • getCarrierAccountFormInputs
    • getTrackingInformation
    • getCarrierAccounts
    • linkCarrierAccount
    • unlinkCarrierAccount
    • generateCollectionForm
    • getCollectionFormHistory
    • getUnmanifestedShipments
    • getCollectionForm
    • getAccessPoints
  • Supply Sources
    • getSupplySources
    • createSupplySource
    • getSupplySource
    • updateSupplySource
    • archiveSupplySource
    • updateSupplySourceStatus
  • Tokens
    • createRestrictedDataToken
  • Uploads
    • createUploadDestinationForResource
  • Notifications
    • getSubscription
    • createSubscription
    • getSubscriptionById
    • deleteSubscriptionById
    • getDestinations
    • createDestination
    • getDestination
    • deleteDestination
  1. Authorization

Authorization

Tested
POST
{{auth_url}}/auth/o2/token
Authorization
Last modified:2025-04-16 12:08:58
Maintainer:Sarath S
Generates access and refresh tokens to use with the Amazon SP API.

Request

Body Params application/json
grant_type
string 
required
The type of grant being used, e.g., 'refresh_token'.
refresh_token
string 
required
The refresh token issued by Amazon SP API.
client_id
string 
required
The client ID associated with your SP API application.
client_secret
string 
required
The client secret for your SP API application.
Example
{
  "grant_type": "refresh_token",
  "refresh_token": "{{refresh_token}}",
  "client_id": "{{client_id}}",
  "client_secret": "{{client_secret}}",
  "scope":"sellingpartnerapi::reports"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.amazon.com/auth/o2/token' \
--header 'Content-Type: application/json' \
--data-raw '{
  "grant_type": "refresh_token",
  "refresh_token": "",
  "client_id": "amzn1.application-oa2-client.533f4c6416a8474f93bff7ee7252bb76",
  "client_secret": "amzn1.oa2-cs.v1.9a12388c25ce08847f03f7346becb92976707f5ab2a7ec981b3af5ccd28b82cb",
  "scope":"sellingpartnerapi::reports"
}'

Responses

🟢200Success
application/json
Successfully generated access token.
Body
access_token
string 
required
The access token for API requests.
refresh_token
string 
required
The refresh token for obtaining new access tokens.
token_type
string 
required
The type of token issued, e.g., 'bearer'.
expires_in
integer 
required
Time in seconds until the access token expires.
Examples
{
    "access_token": "Atza|IwEBIMGQoe2HHUETvR2qDQwr62XFGz70wpApgpsPKDjAbh_xLM4GY3Ge-clLM0zDLa9usdXD2CgsWQasFzRis9dnGHMgE0XQA56UiNJ_jonpSxPo0oAookUYbkWKt43M8LNF-HggV09yRYURLlewyB93KcCsmw7xaqqE_5NN3aGLWXwlghl-7twRLxlodGrAvJVlcdJDVQYeCSVJiqIgVMl49b5K3evtuSPxc2a_ue4i1sZvXNByz89AGvLHnX_MspkXFUMIWLJcbVxNAHbfw6vk3wru8GH4joyO9oKvm3yoUc4529AYLatvzWqhWGn4ARC0qqjlrSPlryyqSPpphUMHug0e",
    "refresh_token": "Atzr|IwEBINWWe9asFu6sqP84GMQzNq7dAKbCH_RrL5Sl-5XY1nhMVRbvGX3x_c6xWjAWAzOMkaimM5xV6uhJY2LMesd7Vw-8ekLlf8RQzMqTjYqZos1ASROOQ8MD40nyoXopbmV8J2NjdqkATIHfE3CHjXY4etpWbvvGXmiO2tJGAKaoUfcCiYng-e3zJvJS6ZCjwDntaK6q7KuquvkEICzGFhKHMp1f4r1Cftg-WAZkMAt39lHytmlAlKrWFK1EYSKkfu6_njNUOFqUq7QxKDNKhfsEP07HkcNQ0cn8RO6WnjIy7ApxSH33JD_AE9ckt-aSXXgEJPg",
    "token_type": "bearer",
    "expires_in": 3600
}
🟠400Bad Request
Previous
listInventory
Next
Catalog Items
Built with