Count the caller's Seller's Shipments by status
شرح نقطههای پایانی در مرجع API به انگلیسی است؛ واژهها و قالبها همان است که در پاسخها میبینید.
نمونهها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی میفرستد. کلید محرمانه شما نه در این سایت ذخیره میشود و نه در گزارشهای آن میآید.
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.
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.
The counts.
application/json- response
What the Seller panel counts: the Seller's Shipments of paid Orders, one count per status.
awaitingConfirmation*integerHow many await the Seller's confirmation.
int32cancelled*integerHow many were cancelled.
int32confirmed*integerHow many the Seller confirmed and has not shipped.
int32delivered*integerHow many were Delivered.
int32shipped*integerHow many shipped and are not yet Delivered.
int32curl -X GET 'https://api.chasbi.com/v1/me/seller/shipments/counts'{ "awaitingConfirmation": 0, "cancelled": 0, "confirmed": 0, "delivered": 0, "shipped": 0}