Crear Orden Foránea - Paso 1

Endpoint

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

Headers

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

Campos

Campo
Descripción
Obligatorio
orderWeight (String!)Peso de la ordenSi
postCode (String!)Codigo postal a enviarSi

Respuestas

Respuesta
Ejemplo
Correcta
Correcta sin resultados
Api key Invalida

Notas

  • El campo getAvaliablePriceRules.id obtenido en la respuesta se utilizara en input.priceRuleId en el paso 2.

Request

Headers

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

Body

    
    {
      "query":
        "query ($orderWeight: String!, $postCode: String!) {
          getAvaliablePriceRules(orderWeight: $orderWeight, postCode: $postCode) {
            name
            carrierName
            price
            id
            minWeight
            minWeight
          }
        }",
      "variables": {
        "orderWeight": "30",
        "postCode": "20000"
      }
    }