API Docs
Customers
API ReferenceCustomersDelete Customer

Delete Customer

Delete a customer record.

DELETE /customers/:customer_id

Path Parameters

ParameterTypeDescription
customer_idstringRequired. The ID of the customer to delete.

Request Example

curl -X DELETE 'https://api.moonlinkpay.com/customers/cus_1234567890abcdef' \  -H "api-key: snd_YOUR_API_KEY"

Response

{
  "customer_id": "cus_1234567890abcdef",
  "deleted": true
}

Deleting a customer is permanent and cannot be undone. The request is refused while the customer has an active mandate, or a subscription that has not ended (created, active, paused or unpaid). Cancel those subscriptions first.