Create an in-person Location
curl --request POST \
--url https://api.simplepay.mx/v1/in-person/locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"display_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "MX",
"line2": "<string>"
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
display_name: '<string>',
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: 'MX',
line2: '<string>'
}
})
};
fetch('https://api.simplepay.mx/v1/in-person/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/in-person/locations"
payload = {
"display_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "MX",
"line2": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create an in-person Location
POST
/
v1
/
in-person
/
locations
Create an in-person Location
curl --request POST \
--url https://api.simplepay.mx/v1/in-person/locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"display_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "MX",
"line2": "<string>"
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
display_name: '<string>',
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: 'MX',
line2: '<string>'
}
})
};
fetch('https://api.simplepay.mx/v1/in-person/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/in-person/locations"
payload = {
"display_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "MX",
"line2": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Required string length:
8 - 255Body
application/json
Required string length:
1 - 120Hide child attributes
Hide child attributes
Required string length:
1 - 200Required string length:
1 - 100Required string length:
1 - 100Required string length:
1 - 12Available options:
MX Maximum string length:
200Response
201
Created SimplePay Location.
Last modified on September 1, 2026