Stan Pay Endpoints
Create a checkout
POST
/
v1
/
checkouts
curl --request POST \
--url https://api.stan-app.fr/v1/checkouts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"return_url": "<string>",
"total_amount": 123,
"session_id": "<string>",
"order_id": "<string>",
"subtotal_amount": 123,
"discount_amount": 123,
"tax_rate": 123,
"tax_cost": 123,
"discount_code": "<string>",
"line_items": [
{
"product_id": "<string>",
"quantity": 123,
"unit_price": 123,
"discount_amount": 123,
"description": "<string>",
"sku": "<string>",
"image_url": "<string>",
"product_url": "<string>"
}
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_amount": 123,
"total_amount_before_discount": 123,
"subtotal_amount": 123,
"discount_amount": 123,
"tax_rate": 123,
"discount_code": "<string>",
"is_testmode": true,
"line_items": [
{
"product_id": "<string>",
"quantity": 123,
"unit_price": 123,
"discount_amount": 123,
"description": "<string>",
"sku": "<string>",
"image_url": "<string>",
"product_url": "<string>"
}
],
"merchant": {
"name": "<string>",
"website": "<string>",
"privacy_policy_url": "<string>",
"general_terms_url": "<string>",
"logo_url": "<string>"
},
"session_id": "<string>",
"order_id": "<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
.
curl --request POST \
--url https://api.stan-app.fr/v1/checkouts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"return_url": "<string>",
"total_amount": 123,
"session_id": "<string>",
"order_id": "<string>",
"subtotal_amount": 123,
"discount_amount": 123,
"tax_rate": 123,
"tax_cost": 123,
"discount_code": "<string>",
"line_items": [
{
"product_id": "<string>",
"quantity": 123,
"unit_price": 123,
"discount_amount": 123,
"description": "<string>",
"sku": "<string>",
"image_url": "<string>",
"product_url": "<string>"
}
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_amount": 123,
"total_amount_before_discount": 123,
"subtotal_amount": 123,
"discount_amount": 123,
"tax_rate": 123,
"discount_code": "<string>",
"is_testmode": true,
"line_items": [
{
"product_id": "<string>",
"quantity": 123,
"unit_price": 123,
"discount_amount": 123,
"description": "<string>",
"sku": "<string>",
"image_url": "<string>",
"product_url": "<string>"
}
],
"merchant": {
"name": "<string>",
"website": "<string>",
"privacy_policy_url": "<string>",
"general_terms_url": "<string>",
"logo_url": "<string>"
},
"session_id": "<string>",
"order_id": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.