Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Request {
"url": "/?",
"method": "post",
"data": {
"query": "\n mutation CreateOrder(\n $externalId: String!, \n $trackingKey: String!\n $pickups: [Pickup]!, \n $packages: [Packages]!\n $paymentMethod: Int!\n ) {\n createOrder(input: {\n externalId: $externalId\n trackingKey: $trackingKey\n pickups: $pickups\n packages: $packages\n paymentMethod: $paymentMethod\n }) {\n success\n shop {\n pk\n name\n }\n orders {\n pk\n trackingKey\n packages {\n pk\n status\n pickupWaypoint {\n index\n indexDisplay\n eta\n legDistance\n }\n waypoint {\n index\n indexDisplay\n eta\n legDistance\n }\n }\n }\n errors {\n field\n message\n }\n }\n }\n ",
"variables": {
"externalId": "3",
"trackingKey": "603d28bd1340c332160fe9bb",
"pickups": [
{
"address": {
"address": "Rua Alberto de Sequeira, 100 - Tijuca, Rio de Janeiro - RJ, Brasil",
"complement": "8o andar"
}
}
],
"packages": [
{
"pickupIndex": 0,
"recipient": {
"name": "Cliente A",
"phone": "11912345678"
},
"address": {
"address": "Avenida das Américas, 4666, Barra da Tijuca, Rio de Janeiro - RJ, Brasil",
"complement": ""
},
"dimensions": {
"width": 44,
"height": 38,
"weight": 3000,
"length": 38
},
"charge": {
"value": "10.00",
"method": 32,
"change": "5.00"
}
}
],
"paymentMethod": 3
}
},
"headers": {
"common": {
"Accept": "application/json, text/plain, */*"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"Content-Type": "application/json",
"Authorization": "ApiKey davixz@gmail.com:38f1143515edae8b7469b862eab194ffe8a54c06"
},
"baseURL": "https://staging.loggi.com/graphql",
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 20000,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment