Skip to content

Commit 92698a8

Browse files
committed
Updated API from documentation release
1 parent 7db26b7 commit 92698a8

8 files changed

+94
-10
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2+
"key": "ie-key-1",
23
"sku": "sku_GIRLS_CREW_variant1_1421832124541",
3-
"quantityOnStock": 4,
4-
"availableQuantity": 4
4+
"quantityOnStock": 4
55
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"type": "Order",
3+
"id": "35f816ea-7770-4623-895b-7a6454e22e8a",
4+
"version": 1,
5+
"createdAt": "2024-10-09T23:12:14.264Z",
6+
"lastModifiedAt": "2024-10-09T23:12:14.264Z",
7+
"lastModifiedBy": {
8+
"clientId": "qnfzsm5-qNfCGwHiRgI03Emc",
9+
"isPlatformClient": false
10+
},
11+
"createdBy": {
12+
"clientId": "qnfzsm5-qNfCGwHiRgI03Emc",
13+
"isPlatformClient": false
14+
},
15+
"orderNumber": "100000001",
16+
"totalPrice": {
17+
"type": "centPrecision",
18+
"currencyCode": "EUR",
19+
"centAmount": 4200,
20+
"fractionDigits": 2
21+
},
22+
"orderState": "Open",
23+
"syncInfo": [],
24+
"returnInfo": [],
25+
"taxMode": "External",
26+
"inventoryMode": "None",
27+
"taxRoundingMode": "HalfEven",
28+
"taxCalculationMode": "LineItemLevel",
29+
"origin": "Customer",
30+
"shippingMode": "Single",
31+
"shipping": [],
32+
"lineItems": [],
33+
"customLineItems": [
34+
{
35+
"id": "fc864da7-0cc9-438f-9626-4d5907ea51c9",
36+
"name": {
37+
"en": "Name EN",
38+
"de": "Name DE"
39+
},
40+
"money": {
41+
"type": "centPrecision",
42+
"currencyCode": "EUR",
43+
"centAmount": 4200,
44+
"fractionDigits": 2
45+
},
46+
"slug": "mySlug",
47+
"quantity": 1,
48+
"discountedPricePerQuantity": [],
49+
"state": [
50+
{
51+
"quantity": 1,
52+
"state": {
53+
"typeId": "state",
54+
"id": "7e3b7f8b-74c1-4d01-8335-0197ba1de6e9"
55+
}
56+
}
57+
],
58+
"totalPrice": {
59+
"type": "centPrecision",
60+
"currencyCode": "EUR",
61+
"centAmount": 4200,
62+
"fractionDigits": 2
63+
},
64+
"taxedPricePortions": [],
65+
"perMethodTaxRate": [],
66+
"priceMode": "Standard"
67+
}
68+
],
69+
"transactionFee": false,
70+
"discountCodes": [],
71+
"directDiscounts": [],
72+
"itemShippingAddresses": [],
73+
"refusedGifts": []
74+
}
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
22
"orderNumber": "100000001",
33
"totalPrice": {
4-
"centAmount": 1000,
4+
"centAmount": 4200,
55
"currencyCode": "EUR"
6-
}
6+
},
7+
"lineItems": [],
8+
"customLineItems": [
9+
{
10+
"name": {
11+
"en": "Name EN",
12+
"de": "Name DE"
13+
},
14+
"quantity": 1,
15+
"money": {
16+
"currencyCode": "EUR",
17+
"centAmount": 4200
18+
},
19+
"slug": "mySlug"
20+
}
21+
]
722
}

api-specs/api/examples/product-tailoring-list.example.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{
77
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
88
"version": 2,
9-
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
109
"createdAt": "2023-09-01T13:26:10.475Z",
1110
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
1211
"lastModifiedBy": {
@@ -85,7 +84,6 @@
8584
{
8685
"id": "207ee692-6002-4570-a78c-d15e7adbecc",
8786
"version": 2,
88-
"versionModifiedAt": "2023-09-01T13:42:50.662Z",
8987
"createdAt": "2023-09-01T13:27:10.475Z",
9088
"lastModifiedAt": "2023-09-01T14:26:10.475Z",
9189
"lastModifiedBy": {

api-specs/api/examples/product-tailoring-updated.example.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
33
"version": 2,
4-
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
54
"createdAt": "2023-09-01T13:26:10.475Z",
65
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
76
"lastModifiedBy": {

api-specs/api/examples/product-tailoring-with-image-processing-warning.example.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
33
"version": 2,
4-
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
54
"createdAt": "2023-09-01T13:26:10.475Z",
65
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
76
"lastModifiedBy": {

api-specs/api/examples/product-tailoring.example.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
33
"version": 2,
4-
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
54
"createdAt": "2023-09-01T13:26:10.475Z",
65
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
76
"lastModifiedBy": {

api-specs/api/resources/orders.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ post:
7777
201:
7878
body:
7979
application/json:
80-
example: !include ../examples/order.example.json
80+
example: !include ../examples/order-import-create.example.json
8181
type: Order
8282
/quotes:
8383
(methodName): orderQuote

0 commit comments

Comments
 (0)