List the Seller's Transfers
شرح نقطههای پایانی در مرجع API به انگلیسی است؛ واژهها و قالبها همان است که در پاسخها میبینید.
نمونهها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی میفرستد. کلید محرمانه شما نه در این سایت ذخیره میشود و نه در گزارشهای آن میآید.
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.
oauth2AuthorizationBearer <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?stringWhich tab.
"IN_TRANSFER""IN_TRANSFER""PAID""FAILED"waiting?booleanLists what waits for the Seller: nothing.
falseids?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 <= 50cursor?stringThe next of the page before, which is opaque. Leave it out for the first page.
^[A-Za-z0-9_-]+$limit?integerThe most rows the page holds, from 1 to 50.
int321 <= value <= 5020A page of the Seller's Transfers.
application/json- response
A page of Transfers in one tab.
next?stringAn 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" } ]}