Created
March 7, 2024 04:26
-
-
Save moo2u2/10df3e95bd2f440933ce7a9edd3ed5dd to your computer and use it in GitHub Desktop.
OrderCloud Product Sync sample message
This file contains hidden or 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
{ | |
"Headers": { | |
"type": "sitecore.ordercloud.messages.product.updated", | |
"marketplace": "yourMarketplaceId", | |
"tenantid": "yourMarketplaceId" | |
}, | |
"Payload": { | |
"UserContext": { | |
"ID": null, | |
"AnonymousID": null | |
}, | |
"ProductID": "test", | |
"Marketplace": "yourMarketplaceId", | |
"OwnerID": "yourMarketplaceId", | |
"Name": "Variant Test", | |
"Description": "Product for testing variants", | |
"QuantityMultiplier": 1, | |
"ShipWeight": null, | |
"ShipHeight": null, | |
"ShipWidth": null, | |
"ShipLength": null, | |
"Active": true, | |
"AutoForward": false, | |
"SpecCount": 3, | |
"VariantCount": 3, | |
"ShipFromAddressID": null, | |
"Inventory": null, | |
"DefaultSupplierID": null, | |
"AllSuppliersCanSell": false, | |
"DefaultPriceScheduleID": null, | |
"Returnable": false, | |
"xp": {}, | |
"Catalogs": [ | |
"catalog_au" | |
], | |
"Categories": [ | |
{ | |
"ID": "category_au", | |
"Name": "Australian", | |
"ListOrder": 1 | |
} | |
], | |
"Suppliers": [ | |
"yourMarketplaceId" | |
], | |
"Buyers": [ | |
"au-buyers" | |
], | |
"UserGroups": [ | |
"au-group" | |
], | |
"Specs": [ | |
{ | |
"OwnerID": "yourMarketplaceId", | |
"ID": "size", | |
"ListOrder": 1, | |
"Name": "Size", | |
"DefaultValue": null, | |
"Required": true, | |
"AllowOpenText": false, | |
"DefaultOptionID": null, | |
"DefinesVariant": true, | |
"xp": null, | |
"OptionCount": 3, | |
"Options": [ | |
{ | |
"ID": "small", | |
"Value": "Small", | |
"ListOrder": 1, | |
"IsOpenText": false, | |
"PriceMarkupType": 0, | |
"PriceMarkup": null, | |
"xp": null | |
}, | |
{ | |
"ID": "medium", | |
"Value": "Medium", | |
"ListOrder": 2, | |
"IsOpenText": false, | |
"PriceMarkupType": 2, | |
"PriceMarkup": 2.0, | |
"xp": null | |
}, | |
{ | |
"ID": "large", | |
"Value": "Large", | |
"ListOrder": 3, | |
"IsOpenText": false, | |
"PriceMarkupType": 2, | |
"PriceMarkup": 5.0, | |
"xp": null | |
} | |
] | |
}, | |
{ | |
"OwnerID": "yourMarketplaceId", | |
"ID": "colour", | |
"ListOrder": 2, | |
"Name": "Colour", | |
"DefaultValue": null, | |
"Required": true, | |
"AllowOpenText": false, | |
"DefaultOptionID": null, | |
"DefinesVariant": true, | |
"xp": null, | |
"OptionCount": 1, | |
"Options": [ | |
{ | |
"ID": "black", | |
"Value": "Black", | |
"ListOrder": 1, | |
"IsOpenText": false, | |
"PriceMarkupType": 3, | |
"PriceMarkup": -50.0, | |
"xp": null | |
} | |
] | |
}, | |
{ | |
"OwnerID": "yourMarketplaceId", | |
"ID": "newspec", | |
"ListOrder": 0, | |
"Name": "New Spec to trigger Sync", | |
"DefaultValue": null, | |
"Required": false, | |
"AllowOpenText": false, | |
"DefaultOptionID": null, | |
"DefinesVariant": false, | |
"xp": null, | |
"OptionCount": 1, | |
"Options": [ | |
{ | |
"ID": "HNkDeMP890iU9qRYaSRpNA", | |
"Value": "New Spec Option", | |
"ListOrder": 0, | |
"IsOpenText": false, | |
"PriceMarkupType": 0, | |
"PriceMarkup": null, | |
"xp": null | |
} | |
] | |
} | |
], | |
"DefaultPriceSchedule": null, | |
"PartyPriceSchedules": [ | |
{ | |
"Seller": "yourMarketplaceId", | |
"Party": "au-group", | |
"PartyType": 2, | |
"PriceSchedule": { | |
"OwnerID": "yourMarketplaceId", | |
"ID": "test_price", | |
"Name": "Product Price", | |
"ApplyTax": false, | |
"ApplyShipping": false, | |
"MinQuantity": 1, | |
"MaxQuantity": null, | |
"UseCumulativeQuantity": false, | |
"RestrictedQuantity": false, | |
"PriceBreaks": [ | |
{ | |
"Quantity": 1, | |
"Price": 10.0, | |
"SalePrice": null, | |
"SubscriptionPrice": null, | |
"BundlePrice": null | |
} | |
], | |
"Currency": "AUD", | |
"SaleStart": null, | |
"SaleEnd": null, | |
"IsOnSale": false, | |
"xp": null | |
} | |
} | |
], | |
"SellerDefaultPriceSchedules": null, | |
"InventoryRecords": null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment