GET
/
v1
/
payments
/
{payment_id}
curl --request GET \
  --url https://api.stan-app.fr/v1/payments/{payment_id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order_id": "<string>",
  "amount": 123,
  "payment_status": "payment_prepared",
  "merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_refundable": true,
  "refunded_amount": 123,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

payment_id
string
required

UID of the payment

Response

200 - application/json
id
string
order_id
string
amount
integer

Amount in cents

payment_status
enum<string>

Status of the payment

Available options:
payment_prepared,
payment_holding,
payment_pending,
payment_failure,
payment_success,
payment_cancelled,
payment_partial_refunded,
payment_refunded,
payment_expired
merchant_id
string

UUID of the merchant who created the payment

customer_id
string

UUID of the customer

is_refundable
boolean

Weither the payment is refundable or not

refunded_amount
integer

Refunded amount for this payment in cents

created_at
string