How can I get an owner or merchant phone number from the /v3/merchants/ endpoint?
When using this endpoint:
GET /v3/merchants/{mId}?expand=owner
I'm able to get Owner Name and Owner Email. In PHP after I receive the data and decode the JSON I store it in $merchant_data. Then I access it like this:
$merchant_data['owner']['name'] $merchant_data['owner']['email']
I've tried just accessing the top level phoneNumber but that comes up empty:
$merchant_data['phoneNumber']
I've also tried getting address { phoneNumber } like so:
GET /v3/merchants/{mId}?expand=owner.address $merchant_data['address']['phoneNumber']
This also comes up empty.
When looking at the sandbox Clover Dashboard it looks like what I need is under my test merchant > Setup > Business Information > Phone Number but I don't know how to access it.