Reverse one advance→bill application (symmetric with apply)
Deletes the application journal entry, decrements the bill's settledAmount and the advance's appliedAmount, and re-derives both statuses. Exactly symmetric — the ledger returns to its pre-application state.
Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.
In: header
Path Parameters
Supplier advance UUID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/supplier-advances/string/unapply" \ -H "Content-Type: application/json" \ -d '{ "expenseId": "a2142719-090a-410b-ad70-ea5efeb1c9dc" }'{ "advance": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "businessId": "50092e54-cd12-4059-9828-e8c4ee9a3cf5", "supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db", "amount": 1000, "appliedAmount": 400, "available": 600, "advanceDate": "2019-08-24", "currency": "ILS", "status": "OPEN", "accountCode": "1260", "description": {}, "sourceBankTransactionId": {}, "sourceBankMatchId": {}, "createdAt": "2019-08-24T14:15:22Z" }, "applied": 500, "expenseId": "a2142719-090a-410b-ad70-ea5efeb1c9dc", "expenseSettledAmount": 500, "expensePaymentStatus": "PARTIALLY_PAID", "apAccountCode": {}, "posted": true, "message": "string"}
