رفتن به محتوا
چسبیتوسعه‌دهندگان
تسویه حساب

List the Seller's Transfers

شرح نقطه‌های پایانی در مرجع API به انگلیسی است؛ واژه‌ها و قالب‌ها همان است که در پاسخ‌ها می‌بینید.

نمونه‌ها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی می‌فرستد. کلید محرمانه شما نه در این سایت ذخیره می‌شود و نه در گزارش‌های آن می‌آید.

GET
/v1/me/seller/settlement/transfers

Returns a page of the caller's Transfers in one tab: IN_TRANSFER, the default, PAID or FAILED, the newest first, then by id. When more follow, next is the cursor of the next page; send it back with the same tab and limit. A malformed cursor, or one made for another list or tab, is VALIDATION_FAILED with TYPE_MISMATCH.

With waiting=true the page is empty: nothing in a Transfer waits for the Seller. With ids, it holds exactly those Transfers. The call needs a token of the chasbi realm whose Account holds the Seller power FINANCE: the owner, or a Seller Member with the role MANAGER or FINANCE; or an access token of the chasbi-partners realm for an API Key of the Seller with the role MANAGER or FINANCE. Any other token is refused with ACCESS_DENIED.

احراز هویت

oauth2
headerAuthorizationBearer <token>

An access token of the chasbi-partners realm, made by the client-credentials grant with an API Key's client id and secret in the Authorization: Basic header. It lives five minutes and comes with no refresh token: ask for a new one when it ends.

پارامترهای کوئری

tab?string

Which tab.

پیش‌فرض"IN_TRANSFER"
مقدار در"IN_TRANSFER""PAID""FAILED"
waiting?boolean

Lists what waits for the Seller: nothing.

پیش‌فرضfalse
ids?array<>

Exactly these rows, from 1 to 50, in this order, whatever their tab; every other filter, cursor and limit are left aside, and an unknown id is left out. The «تازه» tab lists the rows its Notifications name this way.

اعضا1 <= items <= 50
cursor?string

The next of the page before, which is opaque. Leave it out for the first page.

الگو^[A-Za-z0-9_-]+$
limit?integer

The most rows the page holds, from 1 to 50.

قالبint32
بازه1 <= value <= 50
پیش‌فرض20

بدنه پاسخ

A page of the Seller's Transfers.

application/json
  1. response

A page of Transfers in one tab.

next?string

An opaque token to send as cursor for the next page, with the same tab and limit. Absent on the last page.

transfers*array<>

The page's Transfers.

نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/settlement/transfers'
نمونه پاسخ
{  "next": "string",  "transfers": [    {      "amount": 0,      "bankReference": "string",      "createdAt": "2019-08-24T14:15:22Z",      "depositReference": 0,      "failedAt": "2019-08-24T14:15:22Z",      "failureCode": "STOPPED",      "fee": 0,      "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc",      "fileReference": 0,      "gross": 0,      "holdReason": "NO_SOURCE_ACCOUNT",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "lineCount": 0,      "method": "GATEWAY",      "paidAt": "2019-08-24T14:15:22Z",      "paidByHandOffered": true,      "sellerId": "2b5cb5ab-0f11-4d75-8f0a-a6d87a9d534e",      "sellerName": "string",      "status": "QUEUED",      "version": 0,      "waiting": true,      "waitingKind": "HOLDER_NAME_TO_REVIEW"    }  ]}