Retrieve merchant
GET
/v2/merchants/{merchant_id}
Retrieves the Merchant
object for the given merchant_id
.
Name | Description |
---|---|
merchant_
Required
|
The ID of the merchant to retrieve. If the string "me" is supplied as the ID, then retrieve the merchant that is currently accessible to this call. |
Response Fields
Name | Description |
---|---|
errors
|
Information on errors encountered during the request. |
merchant
|
The requested |
Examples
GET
/v2/merchants/{merchant_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/merchants/DM7VKY8Q63GNP \
-H 'Square-Version: 2023-01-19' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"merchant": {
"id": "DM7VKY8Q63GNP",
"business_name": "Apple A Day",
"country": "US",
"language_code": "en-US",
"currency": "USD",
"status": "ACTIVE",
"main_location_id": "9A65CGC72ZQG1",
"created_at": "2021-12-10T19:25:52.484Z"
}
}