question

bitdoor avatar image
bitdoor asked David Marginian Deactivated answered

GET /merchants/:id Testing merchant

Hi, to test a feature in my app I am calling /merchants/:id with my own testing merchant id.

However, the response comes in very different from what's written in the docs. In particular, the email is missing, and this doesn't let me test the rest of my feature. Is that normal or I am doing something wrong?

Here's the response I get:

{"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1", "id": "2GSK3XZ3ESKS1", "name": "Bitdoor", "owner": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/employees/FM1G51742YMEJ", "id": "FM1G51742YMEJ", "orders": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/employees/FM1G51742YMEJ/orders"}}, "address": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/address"}, "merchantPlan": {"id": "FKNKX0SAATWAG"}, "createdTime": 1581977835000, "gateway": {}, "tenders": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/tenders"}, "shifts": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/shifts"}, "orders": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/orders"}, "payments": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/payments"}, "taxRates": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/tax_rates"}, "printers": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/printers"}, "modifierGroups": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/modifier_groups"}, "orderTypes": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/order_types"}, "reseller": {"id": "EKJGCMKBTDK4A"}, "opening_hours": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/opening_hours"}}

Thanks

App MarketMerchant
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered

It looks like you want to expand owner, https://docs.clover.com/clover-platform/docs/expanding-fields.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community