Exchange merchant authorization code

Exchanges the single-use code from the merchant onboarding magic link for a Cognito JWT issued by the merchant user pool. The resulting access_token must be supplied as a Bearer token when calling GET /merchant-accounts/onboarding.

The code is invalidated immediately after use.

Merchant onboarding flow

  1. Admin calls POST /merchant-accounts → Adyen provisions account → magic link email sent.
  2. Merchant clicks link containing the code.
  3. Merchant POST /merchant-accounts/session/token with the code → receives JWT.
  4. Merchant GET /merchant-accounts/onboarding?debtorCode=... with JWT → receives KYC URL.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 43 and 43

Single-use token previously issued by the generate endpoint.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json