Cancelar Orden

Endpoint

POST https://delivermexico.com.mx/graphql/

Headers

Content-Type: application/json
Authorization: "api_key"

Campos

Campo
Descripción
Obligatorio
orderId (String!)Id de la ordenSi

Respuestas

Respuesta
Ejemplo
Correcta
Api key Invalida
Orden no existe

Request

Headers

Content-Type: application/json
Authorization: "api_key"

Body

    
    {
      "query":
        "mutation ($orderId: String!) {
          cancelOrderApi(orderId: $orderId) 
        }",
      "variables": {
        "orderId": "5f7625ed7307a66631c10c8b"
      }
    }