Перейти к основному содержанию
GET
/
v1
/
billing
/
invoices
cURL
curl --request GET \
  --url https://api.example.com/v1/billing/invoices/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "tenant": 123,
      "card": 123,
      "currency": "KZT",
      "status": "waiting",
      "total": "<string>",
      "captured_amount": "<string>",
      "refund_amount": "<string>",
      "captured_at": "2023-11-07T05:31:56Z",
      "start_at": "2023-11-07T05:31:56Z",
      "end_at": "2023-11-07T05:31:56Z",
      "items": [
        {
          "id": 123,
          "integration": {
            "id": 123,
            "code": "<string>",
            "name": "<string>",
            "slug": "<string>",
            "comment": "<string>",
            "slogan": "<string>",
            "type": "integration",
            "detail": "<string>",
            "icon": "<string>",
            "image": "<string>",
            "image_alt": "<string>",
            "disabled": true,
            "extra": null,
            "demo_enabled": true,
            "demo_duration": "<string>",
            "tags": [
              "free"
            ],
            "modules": [
              "finance"
            ],
            "visable": true
          },
          "variant": {
            "id": 123,
            "name": "<string>",
            "code": "<string>",
            "limits": [
              "<string>"
            ]
          },
          "invoice": 123,
          "type": "integration",
          "start_at": "2023-11-07T05:31:56Z",
          "end_at": "2023-11-07T05:31:56Z",
          "count": 16383,
          "price": "<string>",
          "amount": "<string>",
          "integration_period": 123
        }
      ],
      "errors": [
        {
          "id": 123,
          "code": "<string>",
          "description": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "invoice": 123
        }
      ],
      "transaction_url": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"