Skip to navigation

Unarchive a customer alias

Removes the archived label, so the alias is in the default list again. Unarchiving an alias that isn’t archived is status_conflict. 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
idstring
The alias's ID.
objectenum

The type of object. Always customerAlias.

Allowed values:
createdAtdatetime
When the object was created.
archivedAtdatetime or null

When the alias was archived, or null. Archiving is a label: an archived alias still resolves, and usage sent under it still lands on the customer.

customerstring

The customer the alias belongs to, by its cus_ ID.

customerUnitstring or null

The unit of the customer that usage sent under the alias lands on, by its cu_ ID, or null when the alias is for the whole customer.

firstUsedAtdatetime or null

When usage was first recorded under this value, or null while none has been. It can be earlier than createdAt: usage sent under the value before this alias existed counts, such as a signal held and then released, or an earlier alias of the same value. It lags as used does; for aliases used before Paid recorded it, the time is approximate.

livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own.

sourcestring or null
Your label for the system that sends under this alias, or null.
systemManagedboolean

Whether Paid made the alias: when a customer’s externalId changed, keeping the old ID working, or from a SalesBricks buyer. A system-managed alias can’t be updated, archived, unarchived or deleted.

usedboolean

Whether usage has been recorded under the alias’s value: true once firstUsedAt is set. Naming the customer by the alias in an API call doesn’t count. It is usually a few minutes behind; usage recorded late (repaired, or released from hold after the alias was created) can take up to a day, and usage recorded more than three days after it happened is counted only when Paid next runs a full catch-up. A used alias can’t be deleted; delete checks recorded usage itself and never waits for used.

valuestring

Your other ID for the customer, unique across your account ignoring letter case, among aliases, customer external IDs and unit IDs. Usage sent under it lands on the customer, or on customerUnit. Can’t change.

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