Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions merchant-api/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To obtain a token, you must send a POST request to the token URL with your clien
```bash curl
CLIENT_ID="YOUR_CLIENT_ID"
CLIENT_SECRET="YOUR_CLIENT_SECRET"
AUTH_URL="https://auth.supertab.co/oauth2/token"
AUTH_URL="https://merchant-auth.supertab.co/oauth2/token"

# Encode the credentials in base64
BASIC_AUTH=$(echo -n "$CLIENT_ID:$CLIENT_SECRET" | base64)
Expand All @@ -47,7 +47,7 @@ const clientSecret = 'YOUR_CLIENT_SECRET';
const basicAuth = Buffer.from(`${clientId}:${clientSecret}`).toString('base64');

async function getToken() {
const res = await fetch('https://auth.supertab.co/oauth2/token', {
const res = await fetch('https://merchant-auth.supertab.co/oauth2/token', {
method: 'POST',
headers: {
'Authorization': `Basic ${basicAuth}`,
Expand All @@ -71,7 +71,7 @@ import requests
from requests.auth import HTTPBasicAuth

response = requests.post(
'https://auth.supertab.co/oauth2/token',
'https://merchant-auth.supertab.co/oauth2/token',
data={
'grant_type': 'client_credentials',
'scope': 'mapi:read mapi:write'
Expand Down