Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.21 KB

retrieve-merchant-response.md

File metadata and controls

47 lines (38 loc) · 1.21 KB

Retrieve Merchant Response

The response object returned by the RetrieveMerchant endpoint.

Structure

RetrieveMerchantResponse

Fields

Name Type Tags Description Getter
Errors List<Error> Optional Information on errors encountered during the request. List getErrors()
Merchant Merchant Optional Represents a business that sells with Square. Merchant getMerchant()

Example (as JSON)

{
  "merchant": {
    "business_name": "Apple A Day",
    "country": "US",
    "created_at": "2021-12-10T19:25:52.484Z",
    "currency": "USD",
    "id": "DM7VKY8Q63GNP",
    "language_code": "en-US",
    "main_location_id": "9A65CGC72ZQG1",
    "status": "ACTIVE"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}