question

muralibalijepally avatar image
muralibalijepally asked Jonathan Ryan Grice answered

How to get order data from webhooks

I am working on a webhook to process order data. My webhook is reciving events but I am not sure on how to get the order data using REST api. Basically how do i get access token for the apis?
Webhooks
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

Jonathan Ryan Grice avatar image
Jonathan Ryan Grice answered
You would have to work on the application flow.
Query the merchant for authorization.
Receive an Authorization Code returned from Clover.
Request an API Token from the server by sending the Code, client_id, and client_secret back to the server.
Your generated API Token will be received as JSON as in the following JSON example.
{
   "access_token":"{API_TOKEN}"
}
Refer to https://docs.clover.com/build/oauth-2-0/ for further details how to retrieve an access token via the 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.

Welcome to the
Clover Developer Community