Set a merchant's external ID
Store your own identifier on a merchant to match it to your system
An external ID is your own identifier for a merchant, such as the account ID from your CRM or your platform. Preczn stores it on the merchant record so you can match Preczn merchants, API responses, and webhooks back to your system.
An external ID follows these rules:
- It's optional. A merchant doesn't need one.
- It's unique. Each external ID belongs to one merchant on your platform. Live mode and test mode are checked separately, so one live merchant and one test merchant can share a value.
- It's up to 50 characters.
Set an external ID
Select the Dashboard tab or the API tab.
- In the left navigation, select Merchant Vault and open the merchant.
- In the merchant header, next to External ID, select the edit icon.
- In Edit Merchant's External ID, enter the value.
- Select Save.
To remove an external ID, clear the field and select Save.
-
Include
externalIdwhen you create a merchant withPOST /v1/merchantsor update one withPATCH /v1/merchants/{merchantId}:{ "externalId": "{yourMerchantId}" }{ "id": "mid_test_{merchantId}", "name": "{merchantName}", "externalId": "{yourMerchantId}" }The response is abbreviated.
-
If another merchant in the same mode already holds the value, the API returns
409:{ "statusCode": 409, "error": "Conflict", "message": "A merchant already exists with this external ID (MID: mid_test_{otherMerchantId})" }
To keep the current external ID, omit externalId from the request. The API doesn't remove an external ID. An empty value or null leaves the current one in place. To remove one, use the Dashboard.
Preczn sends a merchant.updated webhook when the external ID changes.
To set external IDs for many merchants at once, use the externalId column in a merchant CSV import. See Import merchants.
To find a merchant by its external ID, see Find merchants.
Where the external ID appears
externalId is on the merchant record, so merchant API responses and every merchant.created, merchant.updated, and merchant.deleted webhook carry it. See Merchant webhook payloads.
Some connections also send the external ID to the provider when Preczn boards the merchant. The connection's guide says whether it does. See Supported connections.
When you clone a merchant, you can move its external ID to the clone. See Clone a merchant.
Frequently asked questions
One business in my system needs two Preczn merchants. What external IDs do I use?
Give each merchant a distinct value, for example by adding a suffix. See Use two accounts at one provider.
Why doesn't the External ID search find my merchant?
The search matches the whole value exactly. Enter the complete external ID, including any prefix your system adds, and check that you're in the same mode, live or test, as the merchant.
How do I match a webhook to the merchant in my system?
Read data.externalId from the merchant webhook. If you didn't set an external ID on the merchant, match on data.id, the Preczn merchant ID, instead.
Updated about 16 hours ago
