generic

متد CurrentBalance

این متد برای دریافت باقی مانده اعتبار و همچنین مهلت پرداخت کاربرد دارد.

تفاوت ورژن فعلی با ورژن قبلی متد این است که در خروجی response model فیلدهای TotalDebit و TotalCredit و Balance اضافه شده است.


API Endpoint

POST https://{SupplierWebsiteUrl}/api/Partners/Generic/CurrentBalance/V3

Request Parameters


Sample Request

{
  "Username": "your username",
  "Password": "your MD5 of password"
}

Response Parameters


Sample Response - مهلت پرداخت نامحدود

{
    "TotalDebit": 12256463860.00,
    "TotalCredit": 11043956457.00,
    "Balance": -1212507403.00,
    "AssignedCredit": 500000000000.00,
    "RemainedCredit": 498787492597.00,
    "CurrencyCode": "IRR",
    "PaymentDueMinutes": null
}

Sample Response - دارای مهلت پرداخت

{
    "TotalDebit": 12256463860.00,
    "TotalCredit": 11043956457.00,
    "Balance": -1212507403.00,
    "AssignedCredit": 500000000000.00,
    "RemainedCredit": 498787492597.00,
    "CurrencyCode": "IRR",
    "PaymentDueMinutes": 10080
}