novinzodevelopers
Your store's APIApps referenceReseller finance

Assign Top Up

POST/admin/top-ups/{topUpId}/assign

Credits an unclaimed top-up to a reseller: its amountMinor and its bonusMinor on top. For a sub-reseller, every upline above it is credited the same, since the store took the payment that each level owes the one above. Only an unclaimed top-up can be assigned.

Path Parameters

topUpId*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.

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})$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/top-ups/string/assign" \  -H "Content-Type: application/json" \  -d '{    "membershipId": "string"  }'
{  "id": "string",  "orderId": "string",  "variantId": "string",  "customerEmail": "string",  "units": 1,  "amountMinor": 0,  "bonusMinor": 0,  "currency": "AED",  "status": "credited",  "membershipId": "string",  "note": "string",  "createdAt": "string",  "resolvedAt": "string",  "refundedAt": "string"}