OrderingQuery.reviewOrder()OrderingMutation.createOrder(), so it can be used as a dry-run to validate that the input will create a valid order.
The response includes the known valid alternative options that can be passed in for some fields. For example, it includes the available delivery dates, payment methods, and fulfillment types.
OrderingReviewOrderInputmanufacturerstring | null - The manufacturer of the order.
addressOrderingAddressInput - The address should correspond to a valid property in the system. If there is no matching property and the address is valid, a new property will be created. If the address is not valid, the mutation will fail with an error.
productsOrderingOrderProductInput[] - An array of order products. At least one product must be specified.
contactInfoOrderingCustomerContactInfoPartialInput| null - The contact information of the customer placing the order.
fulfillmentMethodOrderingFulfillmentMethod | null - The fulfillment method for the order. Possible values are DELIVERY and PICKUP. If not provided, defaults to ‘DELIVERY’ if no value is provided and both are available.
requestedDeliveryDatestring | null - The date the customer wants the order delivered. If not provided, defaults to the earliest available. If the provided date is not available, the mutation will fail with an error.
poNumberstring | null - The purchase order number associated with the order. Can be any string value.
specialInstructionsstring | null - Special instructions for the order, if any.
distributionCenterIdstring | null - The ID of the distribution center where the order will be placed. If omitted, the order will be placed in the closest distribution center.
paymentMethodIdstring | null - The ID of the payment method associated with the order. Note: Unlike in the OrderingCreateOrderInput, this field is not required.
idempotencyKeystring | null - A unique identifier for this request. This field is included for compatibility with OrderingCreateOrderInput but is ignored by the reviewOrder query.
subscribersOrderingOrderSubscriberInput[] - An array of subscribers that will receive updates about the order. If the email is not formatted correctly, the query will fail with an error. Other than email validation, the reviewOrder API does not do anything with the subscribers. It is mostly included to make all createOrder inputs valid inputs for reviewOrder.
OrderingOrderSubscriberInputOrderingReviewOrderResponseaddressOrderingAddress - The property address associated with the order. If the fulfillmentMethod is DELIVERY, this is the address the order will be shipped to.
productsOrderingOrderProduct[] - An array of order products.
contactInfoOrderingCustomerContactInfo | undefined - The contact information that was passed in. Has all the same properties as OrderingCustomerContactInfoInput.
distributionCenterOrderingDistributionCenter - The distribution center where the order will be placed.
taxCentsnumber - The total tax amount for the order, in cents.
subtotalCentsnumber - The subtotal for the order, in cents.
totalPriceCentsnumber - The total price for the order, in cents. This is the sum of the subtotal and tax.
poNumberstring | undefined - The purchase order number that was passed in.
specialInstructionsstring | undefined - The special instructions that were passed in.
fulfillmentMethodOrderingFulfillmentMethod - One of DELIVERY or PICKUP. This is the fulfillment method that will be used for the order. Will always return a valid value for the order. If an invalid fulfillment method was passed to reviewOrder(), the query will fail with an error.
requestedDeliveryDatestring - The requested delivery date for the order. The value returned will be a valid delivery date for the product & distribution center. If an invalid delivery date was passed to revierOrder(), the query will fail with an error.
availableDeliveryDatesstring[] - An array of available delivery dates for the order. The array will always contain at least one value. If there are no available delivery dates, the query will fail with an error.
paymentMethodIdstring - The ID of the payment method that will be used for the order. If no payment method was passed to reviewOrder(), the API will pick a value from `availablePaymentMethods“ and return a sensible default.
availablePaymentMethodsOrderingPaymentMethod[] - An array of available payment methods for the order. The array will always contain at least one value. If there are no available payment methods, the query will fail with an error.
OrderingAddressreviewOrder will only return a valid addresses for properties registered with SIBI. If an invalid address is passed to reviewOrder(), the query will fail with an error.
OrderingDistributionCenternamestring - The name of the distribution center.
imageUrlstring | undefined - The URL of the distribution center’s logo.
storeNumberstring - The store number of the distribution center. May not actually be numeric.
addressOrderingAddress - The address of the distribution center.
fulfillmentMethodsstring[] - An array of fulfillment methods that are available for the distribution center. Possible values are DELIVERY and PICKUP.
OrderingPaymentMethodreviewOrder(). The id and description fields are always returned. The last4 field is only returned for OrderingPaymentMethodStripe.
idstring - The ID of the payment method.
descriptionstring - A human-readable description of the payment method.
last4string - The last 4 digits of the credit card number. Only returned for OrderingPaymentMethodStripe.