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

List the Seller's statement entries

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

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

GET
/v1/me/seller/settlement/statements/{year}/{month}/entries

Returns a page of the statement's entries, the earliest first, then by id: the releases, the Cancellation and Return Penalties, their waivers, returns' postage, shortfall payments and the paid Transfers, each with change, its signed effect on the released money. When more follow, next is the cursor of the next page; send it back with the same month and limit. A malformed cursor, or one of another list or month, is VALIDATION_FAILED with TYPE_MISMATCH. A statement («گردش حساب») is the Seller's released money, payable and in transfer together, through a Persian month's Marketplace Days (Tehran), read from its ledger: its opening and closing balances and the month's releases, Cancellation and Return Penalties, their waivers, returns' postage, shortfall payments and paid Transfers. closing is opening + released - penalties - penaltiesVat + waivedPenalties + waivedPenaltiesVat - returnPenalties - returnPenaltiesVat + waivedReturnPenalties + waivedReturnPenaltiesVat - postageCharged + shortfallPaid - transferred - transferFees, and a closed month's statement never changes. A month before 1403/01 or after the current one, or one outside 1 to 12, is 422 STATEMENT_MONTH_OUT_OF_RANGE, with min and max in details. 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.

پارامترهای مسیر

year*integer

The Persian year, such as 1405.

قالبint32
month*integer

The Persian month, from 1 to 12.

قالبint32

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

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 statement's entries.

application/json
  1. response

A page of a statement's entries.

entries*array<>

The entries.

next?string

The cursor of the next page, when more follow.

نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/settlement/statements/0/0/entries'
نمونه پاسخ
{  "entries": [    {      "amount": 0,      "change": 0,      "commission": 0,      "commissionVat": 0,      "entryId": "09a8b554-45ca-4bab-a638-265db4b3e828",      "fee": 0,      "gross": 0,      "itemsTotal": 0,      "kind": "SHIPMENT_RELEASED",      "multiplier": 0,      "orderNumber": 0,      "penalty": 0,      "penaltyVat": 0,      "returnRequestNumber": 0,      "shipmentPosition": 0,      "shippingFee": 0,      "tier": "WITHIN_TWO_HOURS",      "transferId": "e240f72a-b0bc-4f57-ab86-5b78f1d8ea9b",      "writtenAt": "2019-08-24T14:15:22Z"    }  ],  "next": "string"}