Read the Seller's statement
شرح نقطههای پایانی در مرجع API به انگلیسی است؛ واژهها و قالبها همان است که در پاسخها میبینید.
نمونهها نشانی محیط اصلی را دارند، اما «امتحان کنید» همان درخواست را فقط به محیط آزمایشی میفرستد. کلید محرمانه شما نه در این سایت ذخیره میشود و نه در گزارشهای آن میآید.
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.
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.
year*integerThe Persian year, such as 1405.
int32month*integerThe Persian month, from 1 to 12.
int32The statement.
application/json- response
A Seller's statement («گردش حساب») for one Persian month.
closing*integerThe released money after its last day, or now in the current month; below 0 a shortfall. In Rial, a whole number.
int64commission*integerTheir Commission, net of what their returns gave back, which the month's Commission Invoice carries. In Rial, a whole number.
int64commissionVat*integerThe VAT on it, net of what returns gave back. In Rial, a whole number.
int64firstDay*stringIts first day, in the Gregorian calendar.
dateitemsTotal*integerTheir items, less what their returns refunded. In Rial, a whole number.
int64lastDay*stringIts last day, in the Gregorian calendar.
datemonth*integerThe Persian month, from 1 to 12.
int32opening*integerThe released money before its first day; below 0 a shortfall. In Rial, a whole number.
int64penalties*integerThose penalties. In Rial, a whole number.
int64penaltiesTotal*integerThe Cancellation Penalties with their VAT, penalties + penaltiesVat. In Rial, a whole number.
int64penaltiesVat*integerTheir VAT. In Rial, a whole number.
int64penaltyCount*integerHow many Cancellation Penalties were recorded.
int64postageCharged*integerThat postage. In Rial, a whole number.
int64postageCount*integerHow many returns at the Seller's fault charged it the Buyer's postage.
int64releaseCount*integerHow many Shipments were released.
int64released*integerWhat 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.
int64returnPenalties*integerThose penalties. In Rial, a whole number.
int64returnPenaltiesTotal*integerThe Return Penalties with their VAT, returnPenalties + returnPenaltiesVat. In Rial, a whole number.
int64returnPenaltiesVat*integerTheir VAT. In Rial, a whole number.
int64returnPenaltyCount*integerHow many Return Penalties were recorded.
int64returnWaiverCount*integerHow many Return Penalties were waived.
int64shippingTotal*integerTheir shipping fees, less what their returns refunded. In Rial, a whole number.
int64shortfall*booleanWhether closing is below 0.
shortfallPaid*integerWhat they paid. In Rial, a whole number.
int64shortfallPaymentCount*integerHow many shortfall payments the Seller made in the bank.
int64transferCount*integerHow many Transfers were paid.
int64transferFees*integerTheir transfer fees. In Rial, a whole number.
int64transferred*integerWhat they sent to the Seller's bank. In Rial, a whole number.
int64waivedPenalties*integerThe waived penalties. The Commission Invoice carries penalties - waivedPenalties. In Rial, a whole number.
int64waivedPenaltiesTotal*integerThe waived Cancellation Penalties with their VAT. In Rial, a whole number.
int64waivedPenaltiesVat*integerTheir VAT. In Rial, a whole number.
int64waivedReturnPenalties*integerThe waived Return Penalties. The Commission Invoice carries returnPenalties - waivedReturnPenalties. In Rial, a whole number.
int64waivedReturnPenaltiesTotal*integerThe waived Return Penalties with their VAT. In Rial, a whole number.
int64waivedReturnPenaltiesVat*integerTheir VAT. In Rial, a whole number.
int64waiverCount*integerHow many Cancellation Penalties were waived.
int64year*integerThe Persian year.
int32curl -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}