Skip to content

Commit dd595db

Browse files
committed
Updated API from documentation release
1 parent 71c9b92 commit dd595db

33 files changed

+496
-14
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"projectKey": "dev-commercetools-checkout",
3+
"cart": {
4+
"id": "3ded0e30-ee89-4c90-b7d4-e3a37e42213c",
5+
"typeId": "cart"
6+
},
7+
"payments": [
8+
{
9+
"id": "35331e7d-17fd-457c-8b4d-d04b8a1d18f8",
10+
"typeId": "payment"
11+
}
12+
],
13+
"errors": [
14+
{
15+
"code": "OutOfStock",
16+
"message": "The item is out of stock.",
17+
"lineItems": [],
18+
"skus": []
19+
}
20+
]
21+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"projectKey": "dev-commercetools-checkout",
3+
"payment": {
4+
"id": "104c94b8-0212-4e3c-ac55-47a1c114e8a1",
5+
"typeId": "payment"
6+
},
7+
"transactionId": "ab63400f-2f45-46df-9f1a-e801b9abfa66",
8+
"cart": {
9+
"id": "dbab34e5-0c28-4e04-8857-9ff4cf579af1",
10+
"typeId": "cart"
11+
},
12+
"order": {
13+
"id": "f15a715b-886b-4c18-b43f-5b83ce605c47",
14+
"typeId": "order"
15+
}
16+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "a459ddad-d002-4c40-b71c-d7d120487881",
4+
"data": {
5+
"projectKey": "dev-commercetools-checkout",
6+
"cart": {
7+
"id": "3ded0e30-ee89-4c90-b7d4-e3a37e42213c",
8+
"typeId": "cart"
9+
},
10+
"payments": [
11+
{
12+
"id": "35331e7d-17fd-457c-8b4d-d04b8a1d18f8",
13+
"typeId": "payment"
14+
}
15+
],
16+
"errors": [
17+
{
18+
"code": "OutOfStock",
19+
"message": "The item is out of stock.",
20+
"lineItems": [],
21+
"skus": []
22+
}
23+
]
24+
},
25+
"resourceType": "checkout",
26+
"type": "CheckoutOrderCreationFailed",
27+
"createdAt": "2025-05-28T10:54:35.816Z"
28+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "e21dc879-679b-4bec-afde-835a2c4b28dc",
4+
"data": {
5+
"projectKey": "dev-commercetools-checkout",
6+
"payment": {
7+
"id": "eb339cc4-cdc1-4cad-a7c1-8d135367c676",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "05a5d363-96fc-4125-a690-a301bc781440",
11+
"cart": {
12+
"id": "473d15e3-3229-4adb-aa91-cf902607a699",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "dab496e3-478c-4f71-abdd-d6f4b08f4b74",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentAuthorizationCancelled",
22+
"createdAt": "2025-05-14T07:10:05.301Z"
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "cba6b450-15be-4ac1-ba93-5f0acc564c58",
4+
"data": {
5+
"projectKey": "dev-commercetools-checkout",
6+
"payment": {
7+
"id": "9f993cab-cd9d-4512-b49d-e61354f72b46",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "86885b97-5391-4104-98a5-5df677238291",
11+
"cart": {
12+
"id": "d48ad83e-12c2-4c78-bcb2-fed373bb9435",
13+
"typeId": "cart"
14+
}
15+
},
16+
"resourceType": "checkout",
17+
"type": "CheckoutPaymentAuthorizationFailed",
18+
"createdAt": "2025-05-27T06:25:58.289Z"
19+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "08a3597e-8c85-45df-8b71-714cd717a9c4",
4+
"data": {
5+
"projectKey": "dev-commercetools-checkout",
6+
"payment": {
7+
"id": "104c94b8-0212-4e3c-ac55-47a1c114e8a1",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "ab63400f-2f45-46df-9f1a-e801b9abfa66",
11+
"cart": {
12+
"id": "dbab34e5-0c28-4e04-8857-9ff4cf579af1",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "f15a715b-886b-4c18-b43f-5b83ce605c47",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentAuthorized",
22+
"createdAt": "2025-05-27T02:38:05.649Z"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "779fd03a-d53b-4c18-86c2-a108943616b0",
4+
"data": {
5+
"projectKey": "stg-commercetools-checkout",
6+
"payment": {
7+
"id": "7bfead45-fc9c-4376-b63d-0599578add15",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "e828c90f-7ce9-4c88-b54e-2f773998fd19",
11+
"cart": {
12+
"id": "1d072f82-af8b-4ff4-b739-df1f2158755a",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "9ec780a9-a550-476d-a652-a559ed61debc",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentCancelAuthorizationFailed",
22+
"createdAt": "2025-05-28T07:24:35.870Z"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "779fd03a-d53b-4c18-86c2-a108943616b0",
4+
"data": {
5+
"projectKey": "stg-commercetools-checkout",
6+
"payment": {
7+
"id": "7bfead45-fc9c-4376-b63d-0599578add15",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "e828c90f-7ce9-4c88-b54e-2f773998fd19",
11+
"cart": {
12+
"id": "1d072f82-af8b-4ff4-b739-df1f2158755a",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "9ec780a9-a550-476d-a652-a559ed61debc",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentChargeFailed",
22+
"createdAt": "2025-05-28T07:24:35.870Z"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "e21dc879-679b-4bec-afde-835a2c4b28dc",
4+
"data": {
5+
"projectKey": "dev-commercetools-checkout",
6+
"payment": {
7+
"id": "eb339cc4-cdc1-4cad-a7c1-8d135367c676",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "05a5d363-96fc-4125-a690-a301bc781440",
11+
"cart": {
12+
"id": "473d15e3-3229-4adb-aa91-cf902607a699",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "dab496e3-478c-4f71-abdd-d6f4b08f4b74",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentCharged",
22+
"createdAt": "2025-05-14T07:10:05.301Z"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"notificationType": "Event",
3+
"id": "779fd03a-d53b-4c18-86c2-a108943616b0",
4+
"data": {
5+
"projectKey": "stg-commercetools-checkout",
6+
"payment": {
7+
"id": "7bfead45-fc9c-4376-b63d-0599578add15",
8+
"typeId": "payment"
9+
},
10+
"transactionId": "e828c90f-7ce9-4c88-b54e-2f773998fd19",
11+
"cart": {
12+
"id": "1d072f82-af8b-4ff4-b739-df1f2158755a",
13+
"typeId": "cart"
14+
},
15+
"order": {
16+
"id": "9ec780a9-a550-476d-a652-a559ed61debc",
17+
"typeId": "order"
18+
}
19+
},
20+
"resourceType": "checkout",
21+
"type": "CheckoutPaymentRefundFailed",
22+
"createdAt": "2025-05-28T07:24:35.870Z"
23+
}

0 commit comments

Comments
 (0)