Order sync updated message

Custom payload definition of the following Delivery Configuration message namespaces:

  • sitecore.ordercloud.messages.ordersync.updated

Models

Order

NameTypeDescription
UserContextUserContextThe user context.
IDstringThe order identifier.
FromUserUserUser placing the order.
FromUserIDstringThis property is only writable when creating an order on behalf of a buyer user.
FromCompanyIDstringID of the Buyer or Marketplace Owner placing the order. Mainly useful to the Marketplace Owner or Supplier receiving it.
ToCompanyIDstringID of the Marketplace Owner or Supplier receiving the order, only writable on create. Mainly useful to the user placing it.
BillingAddressAddressFull billing address.
BillingAddressIDstringReference to a billing address.
ShippingAddressIDstringID of the Shipping Address for all LineItems on the Order. Null when there are multiple Shipping Addresses involved.
CommentsstringComments of the order.
LineItemCountintNumber of line items associated with this order.
StatusOrderStatusThe order status. Will be one of the following values:
1 - Unsubmitted
2 - Awaiting approval
3 - Declined
4 - Open
5 - Completed
6 - Canceled
DateCreatedDateTimeOffsetDate created
DateSubmittedDateTimeOffsetDate submitted.
DateApprovedDateTimeOffsetDate approved.
DateDeclinedDateTimeOffsetDate declined.
DateCanceledDateTimeOffsetDate canceled.
DateCompletedDateTimeOffsetPopulated when all items on an order have shipped, or the order is explicitly completed.
LastUpdatedDateTimeOffsetLast time the order was updated.
SubtotaldecimalSum of all LineItem.LineSubtotals.
ShippingCostdecimalShipping cost.
TaxCostdecimalTax cost.
PromotionDiscountdecimalSum of all Promotion.Amounts applied to the order.
CurrencystringCurrency of the order which is inherited from the user placing the order.
TotaldecimalSubtotal + TaxCost + ShippingCost - PromotionDiscount.
IsSubmittedboolTrue if this Order has been passed from the Buyer to the Marketplace Owner.
SubscriptionIDstringID of the subscription used to create an order in an automated process.
LineItemsLineItem[]Array of line items.
ShipmentsShipment[]Array of shipments.
PaymentsPayment[]Array of payments.
xpJsonExtended properties.

User

NameTypeDescription
IDstringThe user identifier.
CompanyIDstringBuyer of the buyer user.
UsernamestringUser name of the user placing the order.
PasswordstringAlways null.
FirstNamestringFirst name of the user.
LastNamestringLast name of the user.
EmailstringEmail name of the user.
PhonestringPhone number of the user.
ActiveboolActive flag.
AvailableRolesstring[]List of Roles currently available to the user via all SecurityProfile Assignments.
LocaleLocaleLocale of the user.
DateCreatedDateTimeOffsetDate created.
PasswordLastSetDateDateTimeOffsetDate the password was last set.
xpJsonExtended properties.

LineItem

NameTypeDescription
IDstringThe line item identifier.
ProductIDstringIdentifier of the product associated with the line item.
QuantityintQuantity of products purchased.
DateAddedDateTimeOffsetDate the line item was added to the order.
QuantityShippedintSum of QuantityShipped from all shipment items.
UnitPricedecimalPrice of a single unit.
PromotionDiscountdecimalSum of all line item level promotion discount amounts applied.
LineTotaldecimalLineSubtotal - PromotionDiscount
LineSubtotaldecimalUnitPrice x Quantity
CostCenterstringFor reference only, does not influence any OrderCloud behavior.
DateNeededDateTimeOffsetDate the product is needed by.
ShippingAccountstringFor reference only, does not influence any OrderCloud behavior.
ShippingAddressIDstringReference to the shipping address of the product associated with this line item.
ShipFromAddressIDstringMarketplace Owner or Supplier AddressID where the product will be shipped from. Can be used to calculate shipping costs.
ProductLineItemProductProduct information for this line item.
VariantLineItemVariantVariant information for this line item.
ShippingAddressAddressFull shipping address.
ShipFromAddressAddressFull address of where the product is shipping from.
SupplierIDstringSupplier identifier.
InventoryRecordIDstringInventory Record ID of which product inventory location to use. The Inventory Record ID cannot be modified once an order is submitted.
PriceScheduleIDstringID of the Price Schedule used to determine Unit price.
PriceOverriddenboolIf true, UnitPrice was overwritten.
xpJsonExtended properties.

LineItemProduct

NameTypeDescription
IDstringIdentifier of the product.
NamestringName of the product.
DescriptionstringDescription of the product.
ReturnableboolIndicates of the item is returnable.
QuantityMultiplierintThis field does not affect any functionality. If we were selling a pack of 5 shirts, we may change this value to 5 to indicate that in the user experience.
ShipWeightdecimalWeight of the packaged product.
ShipHeightdecimalHeight of the packaged product.
ShipWidthdecimalWidth of the packaged product.
ShipLengthdecimalLength of the packaged product.
DefaultSupplierIDstringDefault supplier of this product.
ParentIDstringParent product identifier.
xpJsonExtended properties.

LineItemVariant

NameTypeDescription
IDstringVariant identifier.
NamestringName of the variant.
DescriptionstringDescription of the variant.
ShipWeightdecimalWeight of the packaged variant.
ShipHeightdecimalHeight of the packaged variant.
ShipWidthdecimalWidth of the packaged variant.
ShipLengthdecimalLength of the packaged variant.
xpJsonExtended properties.

Shipment

NameTypeDescription
IDstringIdentifier of the shipment.
BuyerIDstringIdentifier of the buyer.
ShipperstringFor reference only, does not influence any OrderCloud behavior.
DateShippedDateTimeOffsetDate shipped.
DateDeliveredDateTimeOffsetDate delivered.
TrackingNumberstringAssociated tracking number.
CostdecimalFor reference only, does not influence any OrderCloud behavior.
OwnerIDstringID of the organization that owns the Shipment. Only the Marketplace Owner can override the OwnerID on create.
AccountstringAccount.
FromAddressIDstringMarketplace Owner or Supplier AddressID where the product will be shipped from.
ToAddressIDstringDestination address of the shipment.
FromAddressAddressMarketplace Owner or Supplier Full Address where the product will be shipped from.
ToAddressAddressDestination Full address of the shipment.
xpJsonExtended properties.

Payment

NameTypeDescription
IDstringPayment identifier.
TypePaymentTypeWhen set, will be one of the following values:
1 - Purchase order
2 - Credit card
3 - Spending account
DateCreatedDateTimeOffsetDate the payment was added.
CreditCardIDstringCredit card identifier.
SpendingAccountIDstringSpending account identifier.
DescriptionstringDescrption of the payment.
CurrencystringInherited from Order.
AmountdecimalIf null, Payment applies to order total (or total of specific Line Items, if set), minus any other Payments where Amount is set. Value can only be negative if processing a payment for an OrderReturn.
AcceptedboolAll payments must be Accepted to submit an order.
OrderReturnIDstringUsed to indicate this payment is associated with an Order Return.
TransactionsPaymentTransactionPayment transaction information.
xpJsonExtended properties.

PaymentTransaction

NameTypeDescription
IDstringTransaction identifier.
TypestringType information.
DateExecutedDateTimeOffsetDate the transaction was executed.
CurrencystringUsually the same as Payment Currency, but can be different. A marketplace may capture funds from the buyer user in one currency and process a payout to the seller in another.
AmountdecimalUsually the same as Payment Amount, but can be different. A charge might have a subsequent partial credit, for example.
SucceededboolSuccess flag.
ResultCodestringResult of the transaction.
ResultMessagestringResult message.
xpJsonExtended properties.
SucceededboolSuccess flag.
ResultCodestringResult of the transaction.
ResultMessagestringResult message.
xpJsonExtended properties.
If you have suggestions for improving this article, let us know!