Անցնել բովանդակությանը
OneGate փաստաթղթեր
Կառավարման վահանակ
Ուղեցույցներ

Այս էջը հասանելի է միայն անգլերենով։ Կոդը, API դաշտերը և նույնացուցիչները չեն թարգմանվում։

Pagination

List endpoints return pages of objects, newest first, with a cursor.

GET /v1/payments, /v1/refunds, /v1/events and /v1/webhook-endpoints return a list object.

json
{
  "object": "list",
  "data": [ { "id": "pay_06GD...", "object": "payment", ... } ],
  "has_more": true
}

Parameters

ParameterMeaning
limitObjects per page, 1–100. Default 20.
starting_afterAn object ID from the previous page. Returns objects created before it (IDs sort by creation time).

Reading every page

Request the next page with starting_after set to the id of the last object you received, until has_more is false.

bash
curl "https://api.onegate.am/v1/payments?limit=100" -H "Authorization: Bearer sk_test_..."
curl "https://api.onegate.am/v1/payments?limit=100&starting_after=pay_06GD..." -H "Authorization: Bearer sk_test_..."

Filters (for example status or order_id on payments, payment_id on refunds, type on events) are listed per endpoint in the API reference.