Delete a customer unit
Soft-deletes a unit: it stays readable with status: DELETED and cannot be reactivated. Spend history that references it is kept, and signals that keep naming it are still attributed to it. A DRAFT unit is deleted the same way: it stays readable as DELETED, its key stays reserved, and spend already keyed to it stays its own. 409 while the unit has ACTIVE or DRAFT children or a cap in force or scheduled; the root follows the same rules, and once it is deleted a new root can be created. Use the value returned as customer.id, for example cus_abc123; if you have your own customer ID, use the /api/v2/customers/external/{externalId}/… twin.
Request
- Base URL: https://api.agentpaid.io/api/v2
- URL: https://api.agentpaid.io/api/v2/customers/{id}/customer-units/{externalCustomerUnitId}
- Auth: HTTP bearer
Path parameters
Paid customer display id
Your own id for the unit (its externalId), unique within this customer.
Response
200
Changes
No recorded changes to this operation across all 1 revision of this API.