### Get Orders Source: https://developer.deliverymuch.com.br/ Retrieve a list of orders received through the marketplace. ```APIDOC ## Get Orders ### Description Buscar pedidos ### Method GET ### Endpoint /orders ``` -------------------------------- ### Get Restaurant Information Source: https://developer.deliverymuch.com.br/ Retrieve information about a specific restaurant using its UUID. ```APIDOC ## Get Restaurant Information ### Description Buscar informações do restaurante ### Method GET ### Endpoint /companies/{company_uuid} ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Get Restaurant Information Source: https://developer.deliverymuch.com.br/ Retrieve detailed information about a specific restaurant using its unique company UUID. ```HTTP GET /companies/{company_uuid} ``` -------------------------------- ### Get Enabled Delivery Areas Source: https://developer.deliverymuch.com.br/ Retrieve a list of delivery areas that are enabled for the restaurant. ```APIDOC ## Get Enabled Delivery Areas ### Description Buscar áreas de entrega habilitadas para o restaurante ### Method GET ### Endpoint /companies/{company_uuid}/addresses ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Get Authentication JWT Source: https://developer.deliverymuch.com.br/ Obtain the JWT used for authenticating with the API in the development environment. ```APIDOC ## Get Authentication JWT ### Description This endpoint returns the JWT used to authenticate with the API in the development environment. ### Method POST ### Endpoint https://devmuch-api.auth0.com/oauth/token ``` -------------------------------- ### Get Authentication JWT Source: https://developer.deliverymuch.com.br/ Use this endpoint to obtain the JWT for authenticating with the development environment. The JWT contains an array of store UUIDs the user has access to. ```HTTP https://devmuch-api.auth0.com/oauth/token ``` -------------------------------- ### Get Enabled Delivery Area Source: https://developer.deliverymuch.com.br/ Retrieve details for a specific enabled delivery area. ```APIDOC ## Get Enabled Delivery Area ### Description Buscar área de entrega habilitada ### Method GET ### Endpoint /companies/{company_uuid}/addresses/{address_id} ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. - **address_id** (string) - Required - The unique identifier of the address. ``` -------------------------------- ### Get Enabled Delivery Areas Source: https://developer.deliverymuch.com.br/ Retrieve a list of delivery areas that are currently enabled for a specific restaurant. The company UUID is required. ```HTTP GET /companies/{company_uuid}/addresses ``` -------------------------------- ### Get Specific Enabled Delivery Area Source: https://developer.deliverymuch.com.br/ Fetch details for a particular enabled delivery area. Requires both the company UUID and the address ID. ```HTTP GET /companies/{company_uuid}/addresses/{address_id} ``` -------------------------------- ### Mark Order as Ready Source: https://developer.deliverymuch.com.br/ Mark an order as ready for delivery or pickup. ```APIDOC ## Mark Order as Ready ### Description Marcar pedido como pronto para entrega ou retirada ### Method PATCH ### Endpoint /orders/{order_id}/ready ### Parameters #### Path Parameters - **order_id** (string) - Required - The unique identifier of the order. ``` -------------------------------- ### Mark Order as Ready Source: https://developer.deliverymuch.com.br/ Update the status of an order to indicate it is ready for delivery or pickup. The order ID is required for this operation. ```HTTP PATCH /orders/{order_id}/ready ``` -------------------------------- ### Create Fake Order with Specific Type Source: https://developer.deliverymuch.com.br/ The `/orders/create/fake` endpoint allows for the creation of test orders. Use the `order_type` parameter to define the type of order generated. ```HTTP POST /orders/create/fake ``` -------------------------------- ### Accept Order Source: https://developer.deliverymuch.com.br/ Accept an order that has been received. ```APIDOC ## Accept Order ### Description Aceitar pedido ### Method PATCH ### Endpoint /orders/{order_id}/accept ### Parameters #### Path Parameters - **order_id** (string) - Required - The unique identifier of the order. ``` -------------------------------- ### Authentication Source: https://developer.deliverymuch.com.br/ This section details the authentication process using OAuth2 Resource Owner Password Credentials. It requires client_id, client_secret, username, and password in a JSON body to obtain an access token. ```APIDOC ## Authentication ### Description This endpoint is used to authenticate and obtain an access token for API integration. It utilizes the OAuth2 Resource Owner Password Credentials flow. ### Method POST ### Endpoint /oauth/token ### Parameters #### Request Body - **client_id** (string) - Required - The client ID provided by Delivery Much Engineering. - **client_secret** (string) - Required - The client secret provided by Delivery Much Engineering. - **username** (string) - Required - The store's username (email). - **password** (string) - Required - The store's password. ### Request Example ```json { "client_id": "your_client_id", "client_secret": "your_client_secret", "username": "store_email@example.com", "password": "store_password" } ``` ### Response #### Success Response (200 OK) - **access_token** (string) - The JWT access token. - **token_type** (string) - The type of token, typically 'Bearer'. - **expires_in** (integer) - The time in seconds until the token expires. #### Response Example ```json { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600 } ``` ``` -------------------------------- ### Set Restaurant Online Source: https://developer.deliverymuch.com.br/ Make the restaurant's online status active, which is required for the store to be live on the marketplace. ```APIDOC ## Set Restaurant Online ### Description Tornar online ### Method PATCH ### Endpoint /companies/{company_uuid}/online ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Accept Order Source: https://developer.deliverymuch.com.br/ Accept an order that has been placed through the marketplace. This action requires the order ID. ```HTTP PATCH /orders/{order_id}/accept ``` -------------------------------- ### Search Orders Source: https://developer.deliverymuch.com.br/ Retrieve a list of orders based on specified criteria. This is the primary endpoint for querying orders. ```HTTP GET /orders ``` -------------------------------- ### Create Fake Order Source: https://developer.deliverymuch.com.br/ Create a fictitious order for testing purposes. The order type can be specified. ```APIDOC ## Create Fake Order ### Description Criar pedido fictício ### Method POST ### Endpoint /orders/create/fake ### Parameters #### Query Parameters - **order_type** (string) - Optional - Defines the type of order to be generated. ``` -------------------------------- ### Call Company Online Endpoint Source: https://developer.deliverymuch.com.br/ This endpoint must be called to ensure the store is marked as online in the marketplace. Failure to do so will prevent the store from appearing online. ```HTTP PATCH /companies/{{COMPANY_ID}}/online ``` -------------------------------- ### Update Restaurant Delivery/Pickup Times Source: https://developer.deliverymuch.com.br/ Modify the average delivery and/or pickup times for a restaurant. ```APIDOC ## Update Restaurant Delivery/Pickup Times ### Description Alterar tempos médios de entrega e/ou retirada do pedido ### Method PATCH ### Endpoint /companies/{company_uuid} ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Set Restaurant Offline Source: https://developer.deliverymuch.com.br/ Set the restaurant's status to offline. ```APIDOC ## Set Restaurant Offline ### Description Tornar offline ### Method PATCH ### Endpoint /companies/{company_uuid}/offline ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Notify Order Received Source: https://developer.deliverymuch.com.br/ Notify Delivery Much that an order has been received and integrated. ```APIDOC ## Notify Order Received ### Description Notificar a Delivery Much de que o pedido foi recebido e integrado ### Method PATCH ### Endpoint /orders/{order_id}/receive ### Parameters #### Path Parameters - **order_id** (string) - Required - The unique identifier of the order. ``` -------------------------------- ### Notify Order Received Source: https://developer.deliverymuch.com.br/ Inform Delivery Much that an order has been successfully received and integrated into the system. Requires the order ID. ```HTTP PATCH /orders/{order_id}/receive ``` -------------------------------- ### Update Restaurant Delivery/Pickup Times Source: https://developer.deliverymuch.com.br/ Modify the average delivery or pickup times for a restaurant. Requires the company's UUID. ```HTTP PATCH /companies/{company_uuid} ``` -------------------------------- ### Set Restaurant Offline Source: https://developer.deliverymuch.com.br/ Mark a restaurant as offline in the marketplace. This operation uses the company's UUID. ```HTTP PATCH /companies/{company_uuid}/offline ``` -------------------------------- ### Dispatch Offline Order Source: https://developer.deliverymuch.com.br/ Dispatch an offline order to the logistics system. ```APIDOC ## Dispatch Offline Order ### Description Despachar um pedido offline para o sistema de logística ### Method POST ### Endpoint /companies/{company_uuid}/offline-orders ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Cancel Order Source: https://developer.deliverymuch.com.br/ Cancel an order. ```APIDOC ## Cancel Order ### Description Cancelar pedido ### Method PATCH ### Endpoint /orders/{order_id}/cancel ### Parameters #### Path Parameters - **order_id** (string) - Required - The unique identifier of the order. ``` -------------------------------- ### Cancel Order Source: https://developer.deliverymuch.com.br/ Cancel an order that has been placed. This operation requires the order ID. ```HTTP PATCH /orders/{order_id}/cancel ``` -------------------------------- ### Dispatch Offline Order Source: https://developer.deliverymuch.com.br/ Use this endpoint to send an offline order to the logistics system. This operation is for orders received outside the Delivery Much platform. ```HTTP POST /companies/{company_uuid}/offline-orders ``` -------------------------------- ### Cancel Offline Order Source: https://developer.deliverymuch.com.br/ Cancel an offline order that has already been dispatched to logistics. ```APIDOC ## Cancel Offline Order ### Description Cancelar um pedido offline já despachado para logística ### Method POST ### Endpoint /companies/{company_uuid}/offline-orders/cancel ### Parameters #### Path Parameters - **company_uuid** (string) - Required - The unique identifier of the company. ``` -------------------------------- ### Cancel Dispatched Offline Order Source: https://developer.deliverymuch.com.br/ This endpoint is used to cancel an offline order that has already been dispatched to the logistics system. ```HTTP POST /companies/{company_uuid}/offline-orders/cancel ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.