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

Read the Seller's Settlement

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

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

GET
/v1/me/seller/settlement

Returns the caller's Seller Balance, how and when it is paid, and its bank account: its Sheba only as its last four digits. A Seller Member other than the owner, and an API Key, read the bank account's state only. The call needs a token of the chasbi realm whose Account holds the Seller power FINANCE: the owner, or a Seller Member with the role MANAGER or FINANCE; or an access token of the chasbi-partners realm for an API Key of the Seller with the role MANAGER or FINANCE. 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 Seller's Settlement.

application/json
  1. response

The Seller's «تسویه حساب»: its Seller Balance, how and when it is paid, and its bank account.

account*

The Seller's bank account. A Seller Member other than the owner reads its state only: the Sheba's last four digits and the holder's name are absent.

balance*

The Seller Balance.

cycle*string

How often the Seller is paid: DAILY, or WEEKLY on Saturday, the default.

مقدار در"DAILY""WEEKLY"
holdDays*integer

How many days a Delivered Shipment's money is held before it is payable, from 0 to 60. A change applies to the Shipments delivered after it.

قالبint32
minimum*integer

The smallest Transfer made: the file minimum under the FILE route, the gateway's under GATEWAY; less waits for the next due day. In Rial, a whole number.

قالبint64
nextTransferOn?string

The next Marketplace Day a Transfer may go, while the Seller is not stopped, transfers are on and its bank account doesn't pause them.

قالبdate
penaltyMultipliers*

What cancelling a paid Shipment costs, as multiples of its Commission, plus their VAT.

stopReason?string

Why an Operator stopped them, while they are stopped.

stopped*boolean

Whether an Operator stopped the Seller's Transfers.

transferFee?integer

What each Transfer costs the Seller, taken off the Transfer. In Rial, a whole number. Absent while it is unset.

قالبint64
transfersAvailable*boolean

Whether automatic Transfers are on; until they are, «تسویه حساب» says so.

transfersPaused*boolean

Whether Transfers wait until the Seller fixes its bank account: the account is REFUSED, or NAME_MISMATCH while an Operator reviews its holder's name. Nothing is transferred meanwhile, and nextTransferOn is absent.

version*integer

The version a change is based on.

قالبint64
نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/settlement'
نمونه پاسخ
{  "account": {    "checkedAt": "2019-08-24T14:15:22Z",    "holderName": "string",    "reviewReason": "string",    "shebaLastFour": "string",    "state": "TO_REGISTER"  },  "balance": {    "held": 0,    "inTransfer": 0,    "paid": 0,    "payable": 0,    "penalties": 0,    "shortfall": true,    "waiting": 0  },  "cycle": "DAILY",  "holdDays": 0,  "minimum": 0,  "nextTransferOn": "2019-08-24",  "penaltyMultipliers": {    "later": 0,    "within24Hours": 0,    "withinTwoHours": 0  },  "stopReason": "string",  "stopped": true,  "transferFee": 0,  "transfersAvailable": true,  "transfersPaused": true,  "version": 0}