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

List the caller's Seller's Shipments

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

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

GET
/v1/me/seller/shipments

Returns a page of the Seller's Shipments of paid Orders, newest payment first, optionally of one status. A row shows the recipient's city only.

A page holds limit Shipments, from 1 to 50, 20 by default. When more follow, next is the cursor of the next page; send it back with the same status, waiting and limit. A malformed cursor, or one that another list or another status made, is VALIDATION_FAILED with TYPE_MISMATCH.

With waiting=true the page holds only the items that wait for the caller, across tabs, the soonest deadline first, then those without one, newest first. With ids, from 1 to 50, it holds exactly those of the list's items, in that order, with no next, and every other filter, cursor and limit are left aside; an unknown or another party's id is left out. 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.

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

status?string

Only Shipments in this status. Leave it out for all.

مقدار در"AWAITING_PAYMENT""AWAITING_CONFIRMATION""CONFIRMED""SHIPPED""DELIVERED""CANCELLED""UNPAID"
waiting?boolean

Only the Shipments that wait for the Seller: one to confirm within confirmBy, or a confirmed one to ship.

پیش‌فرضfalse
ids?array<>

The ids of the items to answer, from 1 to 50, as the «تازه» tab reads its items.

اعضا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 Shipments the page holds, from 1 to 50.

قالبint32
بازه1 <= value <= 50
پیش‌فرض20

بدنه پاسخ

A page of the Seller's Shipments.

application/json
  1. response

A page of a Seller's Shipments, newest payment first.

next?string

The cursor of the next page, when more follow.

shipments*array<>

The page's Shipments.

نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/shipments'
نمونه پاسخ
{  "next": "string",  "shipments": [    {      "city": "string",      "confirmBy": "2019-08-24T14:15:22Z",      "deadline": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "itemsTotal": 0,      "lines": 0,      "orderNumber": 0,      "paidAt": "2019-08-24T14:15:22Z",      "position": 0,      "status": "AWAITING_PAYMENT",      "units": 0,      "waiting": true,      "waitingKind": "ORDER_TO_PAY"    }  ]}