Created
March 1, 2021 17:53
-
-
Save davixz/a450a77c7d8c2ff175c0797879ae12de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateOrder( | |
$externalId: String!, | |
$trackingKey: String! | |
$pickups: [Pickup]!, | |
$packages: [Packages]! | |
$paymentMethod: Int! | |
) { | |
createOrder(input: { | |
externalId: $externalId | |
trackingKey: $trackingKey | |
pickups: $pickups | |
packages: $packages | |
paymentMethod: $paymentMethod | |
}) { | |
success | |
shop { | |
pk | |
name | |
} | |
orders { | |
pk | |
trackingKey | |
packages { | |
pk | |
status | |
pickupWaypoint { | |
index | |
indexDisplay | |
eta | |
legDistance | |
} | |
waypoint { | |
index | |
indexDisplay | |
eta | |
legDistance | |
} | |
} | |
} | |
errors { | |
field | |
message | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment