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

Response

OK

currentPagenumber

Page currently displayed.

lastPagenumber

Number of pages available.

perPagenumber

Number of items per page displayed in the response.

totalnumber

Total operations retrieved.

fromnumber

Number of first operation retrieved.

tonumber

Number of last operation retrieved.

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.