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

List the caller's Seller's Return Requests

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

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

GET
/v1/me/seller/return-requests

Returns a page of the Seller's Return Requests, the newest first, or with waiting those the Seller must answer, receive or send back, the soonest deadline first. q finds a request or an Order by its number, as a Shipment's page lists its returns. A page holds limit requests, from 1 to 50, 20 by default; when more follow, next is the cursor of the next page, sent back with the same filters. A malformed cursor, or one another list or filter made, is VALIDATION_FAILED with TYPE_MISMATCH. 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.

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

tab?string

Only this tab's requests.

مقدار در"TO_ANSWER""AT_CHASBI""TO_BE_POSTED""POSTED""TO_SEND_BACK""CLOSED"
waiting?boolean

Only the requests waiting for the Seller.

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

Only these Return Requests, in this order, for the marks of the navigation; the other filters and the cursor are then not read.

اعضا1 <= items <= 50
q?string

A Return Request's or an Order's number.

طول0 <= length <= 40
cursor?string

The next of the previous page.

الگو^[A-Za-z0-9_-]+$
limit?integer

How many to return, from 1 to 50.

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

بدنه پاسخ

A page of the Seller's Return Requests.

application/json
  1. response

A page of the Seller's Return Requests.

next?string

The cursor of the next page; absent on the last page.

returnRequests*array<>

The page's requests.

نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/return-requests'
نمونه پاسخ
{  "next": "string",  "returnRequests": [    {      "acceptOffered": true,      "answerDue": "2019-08-24T14:15:22Z",      "deadline": "2019-08-24T14:15:22Z",      "fault": "NONE",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "lines": [        {          "bought": 0,          "mainImageId": "cd398d71-4443-4270-9f21-bcc59332a255",          "position": 0,          "quantity": 0,          "title": {            "fa": "string"          },          "unitPrice": 0,          "values": [            {              "axis": {                "fa": "string"              },              "number": "string",              "option": {                "fa": "string"              },              "unit": {                "fa": "string"              }            }          ]        }      ],      "number": 0,      "openedAt": "2019-08-24T14:15:22Z",      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "orderNumber": 0,      "postBy": "2019-08-24T14:15:22Z",      "reason": "CHANGE_OF_MIND",      "receiptDue": "2019-08-24T14:15:22Z",      "receiptIssueOffered": true,      "receiptOffered": true,      "refusalOffered": true,      "sendBackDue": "2019-08-24T14:15:22Z",      "sendBackOffered": true,      "shipmentId": "47efd5a2-af91-4417-950a-7f546cd1b5cf",      "shipmentPosition": 0,      "status": "AWAITING_SELLER",      "tab": "TO_ANSWER",      "trackingCode": "string",      "version": 0,      "waiting": true,      "waitingKind": "RETURN_REQUEST_TO_POST"    }  ]}