Herald
OpenapiBilling

Get_purchase_history

GET
/api/user/bill/purchase/history

Authorization

bearer_auth
headerAuthorizationBearer <token>

Query Parameters

page?|
Formatint64
Range0 <= value
page_size?|
Formatint64
Range0 <= value
payment_provider?string|null
start_date?string|null
end_date?string|null

Response Body

Purchase history retrieved

application/json
  1. response
items*array<>
total*integer
Formatint64
Example Request
curl -X GET 'https://example.com/api/user/bill/purchase/history'
Example Response
{
  "items": [
    {
      "amount": 0,
      "attemptId": "ff88f33b-bb8d-4c28-947a-07ff3d628b10",
      "completedAt": "string",
      "createdAt": "string",
      "currency": "string",
      "paymentProvider": "string",
      "points": 0,
      "productName": "string",
      "status": "string",
      "targetMappingId": "07ad7809-8dcd-4639-8951-8197c6d26450",
      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
    }
  ],
  "total": 0
}