POST
/
v1
/
payments
curl --request POST \
  --url https://api.stan-app.fr/v1/payments \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "order_id": "<string>",
  "amount": 123,
  "subtotal_amount": 123,
  "shipping_amount": 123,
  "discount_amount": 123,
  "tax_amount": 123,
  "return_url": "<string>",
  "cancel_url": "<string>",
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "state": "<string>"
}'
{
  "payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "state": "<string>",
  "redirect_url": "<string>"
}

Authorizations

Authorization
string
header
required

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.