Read the Seller's Settlement
شرح نقطههای پایانی در مرجع API به انگلیسی است؛ واژهها و قالبها همان است که در پاسخها میبینید.
نمونهها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی میفرستد. کلید محرمانه شما نه در این سایت ذخیره میشود و نه در گزارشهای آن میآید.
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.
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 Seller's Settlement.
application/json- 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*stringHow often the Seller is paid: DAILY, or WEEKLY on Saturday, the default.
"DAILY""WEEKLY"holdDays*integerHow 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.
int32minimum*integerThe 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.
int64nextTransferOn?stringThe next Marketplace Day a Transfer may go, while the Seller is not stopped, transfers are on and its bank account doesn't pause them.
datepenaltyMultipliers*What cancelling a paid Shipment costs, as multiples of its Commission, plus their VAT.
stopReason?stringWhy an Operator stopped them, while they are stopped.
stopped*booleanWhether an Operator stopped the Seller's Transfers.
transferFee?integerWhat each Transfer costs the Seller, taken off the Transfer. In Rial, a whole number. Absent while it is unset.
int64transfersAvailable*booleanWhether automatic Transfers are on; until they are, «تسویه حساب» says so.
transfersPaused*booleanWhether 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*integerThe version a change is based on.
int64curl -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}