novinzodevelopers
Your store's APIApps referenceReseller finance

Adjust Balance

POST/admin/resellers/{membershipId}/adjustments

Credits or debits the reseller's balance with the store. A sub-reseller's balance is with their upline, which records what they pay it: refused with 400 InvalidRequestError.

Path Parameters

membershipId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

amountMinor*integer
Range-9007199254740991 <= value <= 9007199254740991
reason*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/resellers/string/adjustments" \  -H "Content-Type: application/json" \  -d '{    "amountMinor": -9007199254740991,    "reason": "string"  }'
{  "id": "string",  "kind": "topup",  "amountMinor": -9007199254740991,  "currency": "AED",  "ref": "string",  "memo": "string",  "actor": "string",  "actorName": "string",  "createdAt": "string",  "purchase": {    "id": "string",    "status": "pending_approval",    "keys": -9007199254740991,    "products": [      "string"    ],    "buyer": {      "membershipId": "string",      "displayName": "string"    }  }}