Ana içeriğe geç

Amazon SP-API authorization callback (public)

GET 

/api/amazon/oauth/callback

Where Amazon returns the browser after the seller's consent (doc 72 §3.3; must be the application's registered OAuth Redirect URI). Trust is the single-use state parked by startAmazonAuthorization or continueAmazonAppstoreAuthorization. The code (valid five minutes) is exchanged for the seller's refresh token, the token proven on getMarketplaceParticipations, and the channel created — or, for a seller this workspace already holds, RE-AUTHORIZED in place (the yearly renewal). Always redirects to the panel's channel settings with amazon=connected&channel=<id> or amazon_error=<missing_params|expired|seller_taken|plan|not_configured|exchange>.

Request​

Responses​

Back to the panel.