novinzodevelopers
Your store's APIApps referenceReseller finance

List Overdue

GET/admin/finance/overdue

The overdue statements of the store's own resellers; sub-resellers owe their uplines, not the store, and are left out. daysOverdue counts from the due date. A reseller cannot buy only once a statement is overdue by more than its terms' graceDays (GetReseller).

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/admin/finance/overdue"
[  {    "membership": {      "id": "string",      "account": {        "id": "string",        "displayName": "string"      },      "upline": {        "membershipId": "string",        "displayName": "string"      },      "depth": 1,      "subResellerCount": -9007199254740991,      "status": "active",      "suspendedReason": "seller",      "tierId": "string",      "terms": {        "creditLimitMinor": 0,        "paymentTermsDays": 0,        "billingPeriod": "weekly",        "graceDays": 0,        "autoSuspendAfterDays": 1      },      "balance": {        "balanceMinor": -9007199254740991,        "creditLimitMinor": 0,        "availableMinor": -9007199254740991,        "overdue": true,        "purchasesBlocked": true      },      "createdAt": "string",      "suspendedAt": "string"    },    "statement": {      "id": "string",      "membershipId": "string",      "periodStart": "string",      "periodEnd": "string",      "amountDueMinor": 0,      "amountPaidMinor": 0,      "currency": "AED",      "dueAt": "string",      "status": "open",      "issuedAt": "string",      "writtenOffAt": "string"    },    "daysOverdue": -9007199254740991  }]