Create a guide

Guides are similar to packages on the Logistics environment. Here, you will find all the information in order to create a guide to the person receiving it.

Requirements

  1. Get the token and know how to send it.

  2. Have created a store and know its ID.

  3. Have the address and its coordinates or use our geocode service.

  4. Understand the business type to use.


The mutations used to create a guide is createGuide.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 mutation { createGuide(input: { reference: "your-app-id", address: { street: "Carlos B Zetina", externalNumber: "138", internalNumber: "1", zipCode: 11800, latitude: 19.4061664, longitude: -99.1827751 }, contact: { name : "John Smith", email: "john.smit@example.com", phone: "5512341234" }, storeId: "1401", businessType: ON_DEMAND }) { id guide reference trackingUrl labelDownloadUrl } }

The following should be the expected response, keep in mind that you can modify the values of the response using GraphQL.

1 2 3 4 5 6 7 8 9 10 11 { "data": { "createGuide" : { "id": 1234567, "guide": "123456P1234354", "reference": "your-app-id", "trackingUrl": "https://tracking.ivoy.mx/123456P1234354", "labelDownloadUrl": "https://api.ivoy.dev/download/url/1234567?token..." } } }