Integration setup
To configure the integration with Mercado Pago Delivery, follow the steps below.
- Create the application through the Dashboard. Check Dashboard for instructions.
- Configure the authorization process via OAuth with the restaurants to generate the
access_token
necessary to carry out operations and not stop receiving notifications about new orders through Webhooks. - Configure notifications by selecting the "Delivery" option. Check Webhooks for instructions.
- Use available APIs to consult and manage informations of stores. Check Store management.
- Use available APIs to manage orders. Check Order management.
As a best practice, it is always necessary to check the status of the requests that have been made in our APIs, for cases in which some type of intermittency occurs. This measure is necessary mainly in cases where requests are made that change the status of an order or store. As in the example of an action to accept an order, it is recommended to make subsequent retries and, if the request has not yet returned a positive status (200), this order must be canceled.
The important thing is to always keep the statuses synchronized, whether of an order or a store, between Mercado Pago and POS, so it is always important to implement solutions in case of errors.
The important thing is to always keep the statuses synchronized, whether of an order or a store, between Mercado Pago and POS, so it is always important to implement solutions in case of errors.