-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorder-create.graphql
58 lines (58 loc) · 1.3 KB
/
order-create.graphql
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
mutation createOrder {
orders {
create(
input: {
customer: {
firstName: "Crystal"
lastName: "Ecommerce"
identifier: "cus_0001"
addresses: [
{
type: billing
street: "Kverndalsgata"
streetNumber: "8"
city: "Skien"
country: "Norway"
postalCode: "1234"
}
{
type: delivery
street: "Kverndalsgata"
streetNumber: "8"
city: "Skien"
country: "Norway"
postalCode: "1234"
}
]
}
cart: {
name: "Kevin the Kiwi"
sku: "kevin-bowtie"
quantity: 1
price: {
currency: "USD"
tax: { name: "No Tax", percent: 0 }
net: 249
gross: 249
}
}
payment: [
{
provider: stripe
stripe: {
orderId: "ord_0001"
customerId: "cus_0001"
paymentMethod: "card"
paymentIntentId: "pi_0001"
metadata: null
}
}
]
total: { gross: 249, currency: "USD" }
additionalInformation: ""
}
) {
id
}
}
}