1. Retrieve Token

In this API Call VTEX will expect a token to be created.

REQUEST HEADERS


Header Value
Accept application/json
Content-Typen application/json

REQUEST BODY

applicationId string Always will have the [vtex] value
returnUrl string Return URL. VTEX Url Web site. You will redirect the user after he completes the login/logon in your payment provider web site. The Url will contain a query string parameter called authorizationCode that will be passed empty and that you MUST fill before return the user

RESPONSE BODY


token string Payment Provider Token. Used to identify the context after you receive the redirected user to your site

REQUEST EXAMPLES AND THEIR RESPONSES


curl --location --request POST '{{providerBaseUrl}}/authorization/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "applicationId": "vtex",
    "returnUrl":"https://storevtex.vtexpayments.com/?authorizationCode="
}'
{
  "applicationId": "vtex",
  "token": "358a5bea-07d0-4122-888a-54ab70b5f02f"
}
Language
Authentication
URL
Click Try It! to start a request and see the response here!