Set addresses and locations
Set a merchant's registered business address, mailing address, and locations, and see which connections read each one.
Set a merchant's addresses and locations so that each connection gets the address data it needs to board the merchant. A merchant record holds three kinds of address data:
- Registered business address (
address): the address on the business's official records. Every connection that boards merchants reads it. - Mailing address (
mailingAddress): where the business receives mail. It's optional, and only connections that ask for it read it. - Locations: the places where the business operates, such as storefronts or branches. Only connections that board each site separately read them.
The following diagram shows where each piece sits and which connections read it:
flowchart LR
M["<img src='https://files.readme.io/cf81688a760902dd88bc091cf29030cb150243a4dfad5e5fa2044ddb12dabb5e-Preczn_logo_white.png' width='110' /><br/>Merchant record"]
M --> A["Registered business address<br/>address"]
M --> B["Mailing address<br/>mailingAddress"]
M --> L["Locations<br/>midLoc_ records"]
A --> C1["Every connection that<br/>boards merchants"]
B --> C2["Connections that ask<br/>for a mailing address"]
L --> C3["Connections that board<br/>each site separately"]
classDef preczn fill:#4013be,stroke:#300e90,color:#ffffff
classDef data fill:#2563eb,stroke:#1d4ed8,color:#ffffff
classDef conn fill:#059669,stroke:#047857,color:#ffffff
class M preczn
class A,B,L data
class C1,C2,C3 conn
A merchant stays one legal entity with one underwriting review, however many locations it has. To learn which connections need a mailing address or locations, see the connection's guide in Supported connections. A connection's requirements list the fields it needs, and Preczn reports any that are missing. See Onboarding data requirements.
Prerequisites
- A merchant in the Merchant Vault. To create one, see Create a merchant.
- For the API, an API key for your platform, sent in the
x-api-keyheader, in the same mode (live or test) as the merchant. - For a location that a specific bank account funds, the bank account on the merchant. See Add owners and bank accounts.
Set the registered business address
Send the address on the business's official records. In the United States, that's the address the business filed with the state where it was formed and the address the IRS has on file for its Employer Identification Number (EIN). Underwriting checks the legal name, tax ID, and registered business address together, so an address that doesn't match those records can slow approval.
The registered business address can't be a PO box. If the business receives mail at a PO box, put the PO box in the mailing address.
Select the Dashboard tab or the API tab.
- In the left navigation, select Merchant Vault, and then select View on the merchant's row.
- On the Merchant Data tab, under MERCHANT DETAILS, select Business Information.
- Select the BUSINESS DETAILS tab.
- Enter the address, starting with Business Address 1.
- Select Save.
-
Send the address in
addresswithPATCH /v1/merchants/{merchantId}.{ "address": { "address": "{streetLine1}", "address2": "{streetLine2}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" } }{ "id": "mid_test_{merchantId}", "name": "{merchantName}", "address": { "address": "{streetLine1}", "address2": "{streetLine2}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" } }The response is abbreviated.
countrytakes a three-letter ISO 3166-1 alpha-3 code.
If address.address is a PO box, the request returns a 400 with the message PO Box addresses are not accepted for the business address. Please enter a valid street address.
On a hosted boarding form, the merchant enters this address with the business information, starting with Business Street Address. The form rejects a PO box there.
Set the mailing address
Set a mailing address only when one of the merchant's connections asks for it. It can be a PO box.
Select the Dashboard tab or the API tab.
- In the left navigation, select Merchant Vault, and then select View on the merchant's row.
- On the Merchant Data tab, under MERCHANT DETAILS, select Business Information.
- Select the Mailing Address tab.
- Enter the address, starting with Mailing Address 1. If the mailing address matches the registered business address, select The business mailing address is the same as the business address instead. The Dashboard copies the registered business address into the mailing fields.
- Select Save.
-
Send the address in
mailingAddresswithPATCH /v1/merchants/{merchantId}. It has the same fields asaddress.{ "mailingAddress": { "address": "{mailingLine1}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" } }{ "id": "mid_test_{merchantId}", "name": "{merchantName}", "mailingAddress": { "address": "{mailingLine1}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" } }The response is abbreviated.
On a hosted boarding form, the merchant can select The business mailing address is the same as the business address. The form copies the registered business address into the mailing fields, so both are stored.
Add locations
Add a location for each site only when a connection boards each site separately. You add locations through the API or on a hosted boarding form. The Dashboard doesn't edit locations.
Preczn stores each location exactly as you send it. It never fills a location's name, address, merchant category code (MCC), or phone from the merchant record, so send the address even when it matches the registered business address.
-
Send the location to
POST /v1/merchants/{merchantId}/locations.name,address,mcc, andphoneare required.address.address1is the first street line, and it can't be a PO box.phoneuses E.164 format, such as+1{tenDigitNumber}.bankingIdis optional. It's the ID of the merchant bank account that funds this location.connectionDatais optional. It holds values that one connection needs for this location, one entry per connection. The connection's guide lists them.
{ "name": "{locationName}", "address": { "address1": "{streetLine1}", "address2": "{streetLine2}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" }, "mcc": "{mcc}", "phone": "+1{tenDigitNumber}", "bankingId": "midBank_test_{bankAccountId}" }{ "id": "midLoc_test_{locationId}", "merchantId": "mid_test_{merchantId}", "name": "{locationName}", "address": { "address1": "{streetLine1}", "address2": "{streetLine2}", "city": "{city}", "region": "{stateCode}", "postal": "{postalCode}", "country": "USA" }, "mcc": "{mcc}", "phone": "+1{tenDigitNumber}", "bankingId": "midBank_test_{bankAccountId}", "createdOn": "{createdOn}", "modifiedOn": "{modifiedOn}" }The request returns
201. The merchant'slocationsarray now lists the new location's ID. -
Repeat for each site.
The street field name differs from the merchant's
A location's first street line is
address.address1. On the merchant'saddressandmailingAddress, the same line isaddress.address.
To read every location, call List locations for a merchant.
On a hosted boarding form, the merchant sees a tab for each location when the form's template shows location fields, and can add as many as needed. Each location has a Copy business address action. See Set up form templates.
Change or remove a location
- Change a location: call Update a location,
PATCH /v1/merchants/{merchantId}/locations/{locationId}. Fields you omit keep their stored values. You can clearbankingIdwithnull, but you can't clearname,address,mcc, orphone. - Set the primary location: send
primaryLocationIdwithPATCH /v1/merchants/{merchantId}. WhenprimaryLocationIdis empty, the merchant itself is the primary location. Sendnullto clear it. - Remove a location: call Delete a location,
DELETE /v1/merchants/{merchantId}/locations/{locationId}. It returns204. You can't delete the primary location: the request returns409. SetprimaryLocationIdto another location, or clear it, first.
Track location changes with webhooks
Subscribe to location.created, location.updated, and location.deleted to keep your records in sync. Each event carries the full location record in data. See Subscribe to webhooks.
{
"id": "what_test_{notificationId}",
"webhookId": "wh_test_{webhookId}",
"eventType": "location.created",
"data": {
"id": "midLoc_test_{locationId}",
"merchantId": "mid_test_{merchantId}",
"name": "{locationName}",
"address": {
"address1": "{streetLine1}",
"city": "{city}",
"region": "{stateCode}",
"postal": "{postalCode}",
"country": "USA"
},
"mcc": "{mcc}",
"phone": "+1{tenDigitNumber}",
"bankingId": null,
"createdOn": "{createdOn}",
"modifiedOn": "{modifiedOn}"
}
}The payload is abbreviated.
Frequently asked questions
The business has one site. Does it need a location?
Only when a connection requires one. The connection's requirements say so. Otherwise, the registered business address describes the business.
Can the registered business address, mailing address, and location address all be the same?
Yes, as long as it isn't a PO box. Preczn stores each address separately and doesn't copy one into another, so send the address in each place a connection needs it.
Can a location have its own legal name or tax ID?
No. The legal name and tax ID belong to the merchant, because every location belongs to the same legal entity. A location's name is the name the site does business under.
Are transactions assigned to a location?
No. Locations describe the merchant for boarding. A transaction belongs to the merchant, not to one of its locations.
The business needs a separate account for each site, but the connection doesn't use locations. What do I do?
Create a separate merchant record for each site. See Use two accounts at one provider.
Updated about 16 hours ago
