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

Read the Seller's statement

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

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

GET
/v1/me/seller/settlement/statements/{year}/{month}

Returns the caller's statement («گردش حساب») for the Persian month: its balances and totals. A statement («گردش حساب») is the Seller's released money, payable and in transfer together, through a Persian month's Marketplace Days (Tehran), read from its ledger: its opening and closing balances and the month's releases, Cancellation and Return Penalties, their waivers, returns' postage, shortfall payments and paid Transfers. closing is opening + released - penalties - penaltiesVat + waivedPenalties + waivedPenaltiesVat - returnPenalties - returnPenaltiesVat + waivedReturnPenalties + waivedReturnPenaltiesVat - postageCharged + shortfallPaid - transferred - transferFees, and a closed month's statement never changes. A month before 1403/01 or after the current one, or one outside 1 to 12, is 422 STATEMENT_MONTH_OUT_OF_RANGE, with min and max in details. 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.

پارامترهای مسیر

year*integer

The Persian year, such as 1405.

قالبint32
month*integer

The Persian month, from 1 to 12.

قالبint32

بدنه پاسخ

The statement.

application/json
  1. response

A Seller's statement («گردش حساب») for one Persian month.

closing*integer

The released money after its last day, or now in the current month; below 0 a shortfall. In Rial, a whole number.

قالبint64
commission*integer

Their Commission, net of what their returns gave back, which the month's Commission Invoice carries. In Rial, a whole number.

قالبint64
commissionVat*integer

The VAT on it, net of what returns gave back. In Rial, a whole number.

قالبint64
firstDay*string

Its first day, in the Gregorian calendar.

قالبdate
itemsTotal*integer

Their items, less what their returns refunded. In Rial, a whole number.

قالبint64
lastDay*string

Its last day, in the Gregorian calendar.

قالبdate
month*integer

The Persian month, from 1 to 12.

قالبint32
opening*integer

The released money before its first day; below 0 a shortfall. In Rial, a whole number.

قالبint64
penalties*integer

Those penalties. In Rial, a whole number.

قالبint64
penaltiesTotal*integer

The Cancellation Penalties with their VAT, penalties + penaltiesVat. In Rial, a whole number.

قالبint64
penaltiesVat*integer

Their VAT. In Rial, a whole number.

قالبint64
penaltyCount*integer

How many Cancellation Penalties were recorded.

قالبint64
postageCharged*integer

That postage. In Rial, a whole number.

قالبint64
postageCount*integer

How many returns at the Seller's fault charged it the Buyer's postage.

قالبint64
releaseCount*integer

How many Shipments were released.

قالبint64
released*integer

What was released to the Seller: their nets, less the items and fees their returns refunded, plus the Commission and VAT they gave back. In Rial, a whole number.

قالبint64
returnPenalties*integer

Those penalties. In Rial, a whole number.

قالبint64
returnPenaltiesTotal*integer

The Return Penalties with their VAT, returnPenalties + returnPenaltiesVat. In Rial, a whole number.

قالبint64
returnPenaltiesVat*integer

Their VAT. In Rial, a whole number.

قالبint64
returnPenaltyCount*integer

How many Return Penalties were recorded.

قالبint64
returnWaiverCount*integer

How many Return Penalties were waived.

قالبint64
shippingTotal*integer

Their shipping fees, less what their returns refunded. In Rial, a whole number.

قالبint64
shortfall*boolean

Whether closing is below 0.

shortfallPaid*integer

What they paid. In Rial, a whole number.

قالبint64
shortfallPaymentCount*integer

How many shortfall payments the Seller made in the bank.

قالبint64
transferCount*integer

How many Transfers were paid.

قالبint64
transferFees*integer

Their transfer fees. In Rial, a whole number.

قالبint64
transferred*integer

What they sent to the Seller's bank. In Rial, a whole number.

قالبint64
waivedPenalties*integer

The waived penalties. The Commission Invoice carries penalties - waivedPenalties. In Rial, a whole number.

قالبint64
waivedPenaltiesTotal*integer

The waived Cancellation Penalties with their VAT. In Rial, a whole number.

قالبint64
waivedPenaltiesVat*integer

Their VAT. In Rial, a whole number.

قالبint64
waivedReturnPenalties*integer

The waived Return Penalties. The Commission Invoice carries returnPenalties - waivedReturnPenalties. In Rial, a whole number.

قالبint64
waivedReturnPenaltiesTotal*integer

The waived Return Penalties with their VAT. In Rial, a whole number.

قالبint64
waivedReturnPenaltiesVat*integer

Their VAT. In Rial, a whole number.

قالبint64
waiverCount*integer

How many Cancellation Penalties were waived.

قالبint64
year*integer

The Persian year.

قالبint32
نمونه درخواست
curl -X GET 'https://api.chasbi.com/v1/me/seller/settlement/statements/0/0'
نمونه پاسخ
{  "closing": 0,  "commission": 0,  "commissionVat": 0,  "firstDay": "2019-08-24",  "itemsTotal": 0,  "lastDay": "2019-08-24",  "month": 0,  "opening": 0,  "penalties": 0,  "penaltiesTotal": 0,  "penaltiesVat": 0,  "penaltyCount": 0,  "postageCharged": 0,  "postageCount": 0,  "releaseCount": 0,  "released": 0,  "returnPenalties": 0,  "returnPenaltiesTotal": 0,  "returnPenaltiesVat": 0,  "returnPenaltyCount": 0,  "returnWaiverCount": 0,  "shippingTotal": 0,  "shortfall": true,  "shortfallPaid": 0,  "shortfallPaymentCount": 0,  "transferCount": 0,  "transferFees": 0,  "transferred": 0,  "waivedPenalties": 0,  "waivedPenaltiesTotal": 0,  "waivedPenaltiesVat": 0,  "waivedReturnPenalties": 0,  "waivedReturnPenaltiesTotal": 0,  "waivedReturnPenaltiesVat": 0,  "waiverCount": 0,  "year": 0}