Create a Terminal connection token
curl --request POST \
--url https://api.simplepay.mx/v1/terminal/connection_tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.simplepay.mx/v1/terminal/connection_tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/terminal/connection_tokens"
payload = { "location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)POST
/
v1
/
terminal
/
connection_tokens
Create a Terminal connection token
curl --request POST \
--url https://api.simplepay.mx/v1/terminal/connection_tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.simplepay.mx/v1/terminal/connection_tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/terminal/connection_tokens"
payload = { "location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Última modificación el 1 de septiembre de 2026