Skip to navigation

Create customer alias by external ID

Create an alternate external identifier for a customer by external ID. The alias shares one set of ids with customer external ids and unit ids, unique within the organization and ignoring letter case: an alias that another customer already holds as its external id, a unit id or an alias, or one another customer’s signals named as a unit id that customer has not created yet, is refused with 409 EXTERNAL_ID_IN_USE (an exact match keeps its older code, ALIAS_CONFLICTS_WITH_CUSTOMER_EXTERNAL_ID or CUSTOMER_ALIAS_ALREADY_EXISTS).

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

externalIdstringRequired

Customer ID from the integrator’s system, stored on Paid as externalId.

Request

Body
aliasstringRequired1-255 characters
Alternate external identifier that should resolve to this customer.
namestringOptional<=120 characters
Optional display name for this alias.
descriptionstringOptional<=500 characters
Optional note describing where this alias comes from.

Response

201
aliasstring
Alternate external identifier that resolves to the customer.
customerIdstring
Paid customer display ID this alias resolves to.
customerUnitExternalIdstring or null

Your id of the customer unit signals carrying this alias land on: the unit the alias was created under, or the customer’s root unit for a customer-level alias. null only while the customer has no root unit.

namestring or null
descriptionstring or null
createdAtdatetime
updatedAtdatetime

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error