question

tacs avatar image
tacs asked ·

API - get logo and order service charge

Hi.
I cant find anyway of getting the merchant's logo which is set at business information.
And i cant find if the service charge was added to an order.
How can i get this data?
Cheers.

Edit: How can i know if the smart receipts are enabled, and if so how to get its url and description?
OrdersAPI Token
1 comment
10 |2000 characters needed characters left characters exceeded

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

Hi @Tacs,
In the future, please limit each question to a single question. You can find more information on our guidelines here: https://community.clover.com/page/asking-questions

0 Likes 0 · ·
Miguel avatar image
Miguel answered ·
You can find the merchant logo in our REST API by using this endpoint:
https://apisandbox.dev.clover.com/v3/merchants/{mId}?expand=logos

You can find if a service charge was added to an order by using this endpoint:
https://apisandbox.dev.clover.com/v3/merchants/{mId}/orders/{orderId}?expand=serviceCharge

2 comments Share
10 |2000 characters needed characters left characters exceeded

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

@miguel

Hi.

There was no evidence of that anywhere, but fix the docs.

The logo endpoint worked, but the serviceCharge endpoints gives me this message "Invalid permissions for expandable fields.", so i added the payments read permission and it works now.

Thanks.

Cheers.

0 Likes 0 · ·

Hi @Tacs,

You can find more information on our endpoints at https://www.clover.com/api_docs/

For example on GetMerchant endpoint shows that you can get the logo info:

Get a single merchant
GET /v3/merchants/{mId}

logos
array[Logo]OPTIONAL

 "logos": [
    {
      "logoFilename": "",
      "logoType": "",
      "url": ""
    }
  ]
0 Likes 0 · ·
sam avatar image
sam answered ·
GET /v3/merchants/{ {mid}}/default_service_charge
will return service charge id, which can in turn be used to add it to an order.
Share
10 |2000 characters needed characters left characters exceeded

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