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

List the Seller's paid Shipments by Settlement

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

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

GET
/v1/me/seller/settlement/shipments

Returns a page of the caller's paid Shipments in one tab: HELD, the default, the latest paid first; WAITING, the soonest release first; PAYABLE, IN_TRANSFER and PAID, the latest released first; CANCELLED, the latest cancelled first. Then by id. A page holds limit rows. 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 Waiting for You tab, the page is empty: nothing in Settlement waits for the Seller. With ids, it holds exactly those Shipments. 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.

پیش‌فرض"HELD"
مقدار در"HELD""WAITING""PAYABLE""IN_TRANSFER""PAID""CANCELLED""CAME_BACK"
waiting?boolean

Lists what waits for the Seller, as the Waiting for You tab does: 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 paid Shipments.

application/json
  1. response

A page of the Seller's paid Shipments in one tab.

lines*array<>

The page's Shipments.

next?string

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

نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/settlement/shipments'
نمونه پاسخ
{  "lines": [    {      "cameBack": {        "commissionRial": 0,        "commissionVatRial": 0,        "itemsRial": 0,        "shippingFeeRial": 0      },      "cancelledAt": "2019-08-24T14:15:22Z",      "commission": 0,      "commissionVat": 0,      "deliveredAt": "2019-08-24T14:15:22Z",      "itemsTotal": 0,      "net": 0,      "orderNumber": 0,      "paidAt": "2019-08-24T14:15:22Z",      "penalty": {        "amount": 0,        "commission": 0,        "multiplier": 0,        "tier": "WITHIN_TWO_HOURS",        "total": 0,        "vat": 0,        "waived": true      },      "releaseAt": "2019-08-24T14:15:22Z",      "releasedAt": "2019-08-24T14:15:22Z",      "remainder": 0,      "returnPenalties": [        {          "amountRial": 0,          "multiplier": 0,          "returnRequestNumber": 0,          "total": 0,          "vatRial": 0,          "waived": true        }      ],      "returnWindowEndsAt": "2019-08-24T14:15:22Z",      "shipmentId": "47efd5a2-af91-4417-950a-7f546cd1b5cf",      "shipmentPosition": 0,      "shippingFee": 0,      "status": "HELD",      "transferId": "e240f72a-b0bc-4f57-ab86-5b78f1d8ea9b",      "waiting": true,      "waitsFor": "HOLD"    }  ],  "next": "string"}