Skip to navigation

Delete a customer alias

Permanently deletes an alias no usage was ever sent under, and frees its value. Paid checks the usage it recorded and the signals it holds at the moment of the call, so it doesn’t wait for used, which can be behind: once usage has been sent under the alias it can’t be deleted (resource_in_use), and firstUsedAt is recorded; archive it instead. An alias with systemManaged: true can’t be changed (alias_system_managed). {customer} takes the customer’s cus_ ID, your externalId, or one of its aliases. {alias} takes the alias’s als_ ID or its value, URL-encoded and matched ignoring letter case, within that customer; a value starting als_ is tried as a Paid ID first.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

aliasstringRequired1-255 characters

The alias’s als_ ID or its value, URL-encoded and matched ignoring letter case, within that customer. A value starting als_ is tried as a Paid ID first.

customerstringRequired1-255 characters

The customer’s cus_ ID, your externalId, or one of its aliases.

Headers

Paid-BetaenumRequired

This endpoint is in the customer_aliases=v1 beta. Send this header to use it.

Allowed values:

Response

200
idstring1-255 characters
The deleted resource's ID.
deletedboolean
The unused resource was deleted.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error