question

tharin avatar image
tharin asked chanel Deactivated answered

How to get merchantId from a single order?

I get a single order from this endpoint
GET /v3/merchants/{mId}/orders/{orderId}

My question is how to get merchantId who owns the order?
For instance, if I make api call.
GET /v3/merchants/{mId}/orders/{orderId}?expand=merchant

It will response

{
   id: [orderId],
   merchant: {
      id: [merchantId]
   }
}
REST API
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

chanel avatar image
chanel Deactivated answered
You get the merchant ID directly from the endpoint you're calling. The order object does not hold that information.
10 |2000

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