Purchases / Payins
Get purchase
You can either use this endpoint or the /operations with the ‘type’ parameter as ‘purchase’ in the endpoint to get the list of all purchases.
getpurchases
Request
- Base URLhttps://payments.air-pay.io
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"currentPage": 1,
"lastPage": 1,
"perPage": 10,
"total": 1,
"from": 1,
"to": 1,
"data": [
{
"id": "f782702e-e4fe-46b7-8ef1-de8b70a50587",
"partner_id": "2c3e7d5e-0cfb-411f-9e34-78ba4d3b8ce7",
"status": "created",
"amount": "15.00",
"description": "Test purchase",
"confirmation_uri": "https://your.site/confirm",
"cancel_uri": "https://your.site/cancel",
"code": "ExternalIdentifier01",
"created_at": "2023-06-08T15:30:58.887Z",
"updated_at": "2023-06-08T15:30:58.887Z",
"operation_type": "purchase",
"callback_uri": "https://your.site/callback"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.