Stan Pay Endpoints
Create a new customer
POST
/
v1
/
customers
Copy
curl --request POST \
--url https://api.stan-app.fr/v1/customers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"address": {
"firstname": "<string>",
"lastname": "<string>",
"street_address": "<string>",
"street_address_line2": "<string>",
"locality": "<string>",
"zip_code": "<string>",
"country": "<string>",
"region": "<string>"
},
"phone_number": "<string>"
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"address": {
"firstname": "<string>",
"lastname": "<string>",
"street_address": "<string>",
"street_address_line2": "<string>",
"locality": "<string>",
"zip_code": "<string>",
"country": "<string>",
"region": "<string>"
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Response
200
application/json
Successful operation
The response is of type object
.
Copy
curl --request POST \
--url https://api.stan-app.fr/v1/customers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"address": {
"firstname": "<string>",
"lastname": "<string>",
"street_address": "<string>",
"street_address_line2": "<string>",
"locality": "<string>",
"zip_code": "<string>",
"country": "<string>",
"region": "<string>"
},
"phone_number": "<string>"
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"address": {
"firstname": "<string>",
"lastname": "<string>",
"street_address": "<string>",
"street_address_line2": "<string>",
"locality": "<string>",
"zip_code": "<string>",
"country": "<string>",
"region": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.