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

Count the caller's Seller's Shipments by status

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

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

GET
/v1/me/seller/shipments/counts

Returns how many of the Seller's Shipments of paid Orders stand in each status, for the panel's nav item and tabs. The call needs a token of the chasbi realm whose Account holds the Seller power ORDERS: the owner, or a Seller Member with the role MANAGER or ORDERS; or an access token of the chasbi-partners realm for an API Key of the Seller with the role MANAGER or ORDERS. 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.

بدنه پاسخ

The counts.

application/json
  1. response

What the Seller panel counts: the Seller's Shipments of paid Orders, one count per status.

awaitingConfirmation*integer

How many await the Seller's confirmation.

قالبint32
cancelled*integer

How many were cancelled.

قالبint32
confirmed*integer

How many the Seller confirmed and has not shipped.

قالبint32
delivered*integer

How many were Delivered.

قالبint32
shipped*integer

How many shipped and are not yet Delivered.

قالبint32
نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/shipments/counts'
نمونه پاسخ
{  "awaitingConfirmation": 0,  "cancelled": 0,  "confirmed": 0,  "delivered": 0,  "shipped": 0}