List the caller's Seller's Shipments
شرح نقطههای پایانی در مرجع API به انگلیسی است؛ واژهها و قالبها همان است که در پاسخها میبینید.
نمونهها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی میفرستد. کلید محرمانه شما نه در این سایت ذخیره میشود و نه در گزارشهای آن میآید.
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.
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.
status?stringOnly Shipments in this status. Leave it out for all.
"AWAITING_PAYMENT""AWAITING_CONFIRMATION""CONFIRMED""SHIPPED""DELIVERED""CANCELLED""UNPAID"waiting?booleanOnly the Shipments that wait for the Seller: one to confirm within confirmBy, or a confirmed one to ship.
falseids?array<>The ids of the items to answer, from 1 to 50, as the «تازه» tab reads its items.
1 <= items <= 50cursor?stringThe next of the page before, which is opaque. Leave it out for the first page.
^[A-Za-z0-9_-]+$limit?integerThe most Shipments the page holds, from 1 to 50.
int321 <= value <= 5020A page of the Seller's Shipments.
application/json- response
A page of a Seller's Shipments, newest payment first.
next?stringThe 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" } ]}