-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated api-reference from documentation release
- Loading branch information
Auto Mation
committed
Nov 7, 2024
1 parent
dc29d10
commit 8fc83ca
Showing
198 changed files
with
2,512 additions
and
584 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ApprovalRule/ApprovalRuleSetCustomFieldAction.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "setCustomField", | ||
"name": "ExampleStringTypeField", | ||
"value": "TextString" | ||
} |
10 changes: 10 additions & 0 deletions
10
api-specs/api/examples/ApprovalRule/ApprovalRuleSetCustomTypeAction.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"action": "setCustomType", | ||
"type": { | ||
"id": "{{type-id}}", | ||
"typeId": "type" | ||
}, | ||
"fields": { | ||
"exampleStringTypeField": "TextString" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"currencyCode": "EUR", | ||
"centAmount": 40099 | ||
} | ||
] | ||
], | ||
"applicationMode": "IndividualApplication" | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/CustomObjects/CustomObjectReference.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"id": "4e2b758f-f259-4c14-808e-2beb126bc0f1", | ||
"typeId": "key-value-document" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"email": "[email protected]", | ||
"password": "secret123" | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/ProductTailoring/ProductTailoringSetAttributeAction.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"action": "setAttribute", | ||
"variantId": 1, | ||
"name": "ExampleStringTypeAttribute", | ||
"value": "TextString" | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetAttributeInAllVariantsAction.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "setAttributeInAllVariants", | ||
"name": "ExampleStringTypeAttribute", | ||
"value": "TextString" | ||
} |
3 changes: 2 additions & 1 deletion
3
api-specs/api/examples/Subscription/SubscriptionEventBridgeDestination.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"type": "EventBridge", | ||
"accountId": "<account-id>", | ||
"region": "<my-region>" | ||
"region": "<my-region>", | ||
"source": "aws.partner/commercetools.com/commercetools-project-1/eventbridge" | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/Warning/ImageProcessingOngoingWarning.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"code": "ImageProcessingOngoing", | ||
"message": "The image processing is still ongoing." | ||
} |
21 changes: 21 additions & 0 deletions
21
api-specs/api/examples/extension-update-response.example.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"id": "8062243c-46fc-40b5-88a4-75e2216aef75", | ||
"version": 2, | ||
"createdAt": "2017-01-25T14:14:22.417Z", | ||
"lastModifiedAt": "2024-08-06T13:49:48.511Z", | ||
"destination": { | ||
"type": "HTTP", | ||
"url": "https://example.azurewebsites.net/api/extension", | ||
"authentication": { | ||
"type": "AzureFunctions", | ||
"key": "****code" | ||
} | ||
}, | ||
"triggers": [ | ||
{ | ||
"resourceTypeId": "cart", | ||
"actions": ["Create", "Update"] | ||
} | ||
], | ||
"key": "my-new-extension-key" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"version": 1, | ||
"actions": [{ | ||
"action": "setKey", | ||
"key": "my-new-extension-key" | ||
}] | ||
"actions": [ | ||
{ | ||
"action": "setKey", | ||
"key": "my-new-extension-key" | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"key": "ie-key-1", | ||
"sku": "sku_GIRLS_CREW_variant1_1421832124541", | ||
"quantityOnStock": 4, | ||
"availableQuantity": 4 | ||
"quantityOnStock": 4 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"type": "Order", | ||
"id": "35f816ea-7770-4623-895b-7a6454e22e8a", | ||
"version": 1, | ||
"createdAt": "2024-10-09T23:12:14.264Z", | ||
"lastModifiedAt": "2024-10-09T23:12:14.264Z", | ||
"lastModifiedBy": { | ||
"clientId": "qnfzsm5-qNfCGwHiRgI03Emc", | ||
"isPlatformClient": false | ||
}, | ||
"createdBy": { | ||
"clientId": "qnfzsm5-qNfCGwHiRgI03Emc", | ||
"isPlatformClient": false | ||
}, | ||
"orderNumber": "100000001", | ||
"totalPrice": { | ||
"type": "centPrecision", | ||
"currencyCode": "EUR", | ||
"centAmount": 4200, | ||
"fractionDigits": 2 | ||
}, | ||
"orderState": "Open", | ||
"syncInfo": [], | ||
"returnInfo": [], | ||
"taxMode": "External", | ||
"inventoryMode": "None", | ||
"taxRoundingMode": "HalfEven", | ||
"taxCalculationMode": "LineItemLevel", | ||
"origin": "Customer", | ||
"shippingMode": "Single", | ||
"shipping": [], | ||
"lineItems": [], | ||
"customLineItems": [ | ||
{ | ||
"id": "fc864da7-0cc9-438f-9626-4d5907ea51c9", | ||
"name": { | ||
"en": "Name EN", | ||
"de": "Name DE" | ||
}, | ||
"money": { | ||
"type": "centPrecision", | ||
"currencyCode": "EUR", | ||
"centAmount": 4200, | ||
"fractionDigits": 2 | ||
}, | ||
"slug": "mySlug", | ||
"quantity": 1, | ||
"discountedPricePerQuantity": [], | ||
"state": [ | ||
{ | ||
"quantity": 1, | ||
"state": { | ||
"typeId": "state", | ||
"id": "7e3b7f8b-74c1-4d01-8335-0197ba1de6e9" | ||
} | ||
} | ||
], | ||
"totalPrice": { | ||
"type": "centPrecision", | ||
"currencyCode": "EUR", | ||
"centAmount": 4200, | ||
"fractionDigits": 2 | ||
}, | ||
"taxedPricePortions": [], | ||
"perMethodTaxRate": [], | ||
"priceMode": "Standard" | ||
} | ||
], | ||
"transactionFee": false, | ||
"discountCodes": [], | ||
"directDiscounts": [], | ||
"itemShippingAddresses": [], | ||
"refusedGifts": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
{ | ||
"orderNumber": "100000001", | ||
"totalPrice": { | ||
"centAmount": 1000, | ||
"centAmount": 4200, | ||
"currencyCode": "EUR" | ||
} | ||
}, | ||
"lineItems": [], | ||
"customLineItems": [ | ||
{ | ||
"name": { | ||
"en": "Name EN", | ||
"de": "Name DE" | ||
}, | ||
"quantity": 1, | ||
"money": { | ||
"currencyCode": "EUR", | ||
"centAmount": 4200 | ||
}, | ||
"slug": "mySlug" | ||
} | ||
] | ||
} |
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
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
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
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
Oops, something went wrong.