"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"description":"Lists the orders in your Merchant Center account.",
"httpMethod":"GET",
"id":"content.orders.list",
"parameterOrder":[
"merchantId"
],
"parameters":{
"acknowledged":{
"description":"Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.",
"location":"query",
"type":"boolean"
},
"maxResults":{
"description":"The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.\nKnown issue: All List calls will return all Orders without limit regardless of the value of this field.",
"format":"uint32",
"location":"query",
"type":"integer"
},
"merchantId":{
"description":"The ID of the account that manages the order. This cannot be a multi-client account.",
"format":"uint64",
"location":"path",
"required":true,
"type":"string"
},
"orderBy":{
"description":"The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. \"placedDate desc\" stands for listing orders by placement date, from oldest to most recent. \"placedDate asc\" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.",
"enum":[
"placedDate asc",
"placedDate desc"
],
"enumDescriptions":[
"",
""
],
"location":"query",
"type":"string"
},
"pageToken":{
"description":"The token returned by the previous request.",
"location":"query",
"type":"string"
},
"placedDateEnd":{
"description":"Obtains orders placed before this date (exclusively), in ISO 8601 format.",
"location":"query",
"type":"string"
},
"placedDateStart":{
"description":"Obtains orders placed after this date (inclusively), in ISO 8601 format.",
"location":"query",
"type":"string"
},
"statuses":{
"description":"Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.",
"enum":[
"active",
"canceled",
"completed",
"delivered",
"inProgress",
"partiallyDelivered",
"partiallyReturned",
"partiallyShipped",
"pendingShipment",
"returned",
"shipped"
],
"enumDescriptions":[
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"location":"query",
"repeated":true,
"type":"string"
}
},
"path":"{merchantId}/orders",
"response":{
"$ref":"OrdersListResponse"
},
"scopes":[
"https://www.googleapis.com/auth/content"
]
},
"refund":{
"description":"Refund a portion of the order, up to the full amount paid.",
"httpMethod":"POST",
"id":"content.orders.refund",
"parameterOrder":[
"merchantId",
"orderId"
],
"parameters":{
"merchantId":{
"description":"The ID of the account that manages the order. This cannot be a multi-client account.",
"format":"uint64",
"location":"path",
"required":true,
"type":"string"
},
"orderId":{
"description":"The ID of the order to refund.",
"location":"path",
"required":true,
"type":"string"
}
},
"path":"{merchantId}/orders/{orderId}/refund",
"request":{
"$ref":"OrdersRefundRequest"
},
"response":{
"$ref":"OrdersRefundResponse"
},
"scopes":[
"https://www.googleapis.com/auth/content"
]
},
"rejectreturnlineitem":{
"description":"Rejects return on an line item.",
"httpMethod":"POST",
"id":"content.orders.rejectreturnlineitem",
"parameterOrder":[
"merchantId",
"orderId"
],
"parameters":{
"merchantId":{
"description":"The ID of the account that manages the order. This cannot be a multi-client account.",
"description":"A list of errors returned by a failed batch entry.",
"id":"Errors",
"properties":{
"code":{
"description":"The HTTP status of the first error in errors.",
"format":"uint32",
"type":"integer"
},
"errors":{
"description":"A list of errors.",
"items":{
"$ref":"Error"
},
"type":"array"
},
"message":{
"description":"The message of the first error in errors.",
"type":"string"
}
},
"type":"object"
},
"Order":{
"id":"Order",
"properties":{
"acknowledged":{
"description":"Whether the order was acknowledged.",
"type":"boolean"
},
"channelType":{
"description":"The channel type of the order: \"purchaseOnGoogle\" or \"googleExpress\".",
"type":"string"
},
"customer":{
"$ref":"OrderCustomer",
"description":"The details of the customer who placed the order."
},
"deliveryDetails":{
"$ref":"OrderDeliveryDetails",
"description":"The details for the delivery."
},
"id":{
"description":"The REST id of the order. Globally unique.",
"type":"string"
},
"kind":{
"default":"content#order",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#order\".",
"type":"string"
},
"lineItems":{
"description":"Line items that are ordered.",
"items":{
"$ref":"OrderLineItem"
},
"type":"array"
},
"merchantId":{
"format":"uint64",
"type":"string"
},
"merchantOrderId":{
"description":"Merchant-provided id of the order.",
"type":"string"
},
"netAmount":{
"$ref":"Price",
"description":"The net amount for the order. For example, if an order was originally for a grand total of $100 and a refund was issued for $20, the net amount will be $80."
},
"paymentMethod":{
"$ref":"OrderPaymentMethod",
"description":"The details of the payment method."
},
"paymentStatus":{
"description":"The status of the payment.",
"type":"string"
},
"placedDate":{
"description":"The date when the order was placed, in ISO 8601 format.",
"type":"string"
},
"promotions":{
"description":"The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items":{
"$ref":"OrderPromotion"
},
"type":"array"
},
"refunds":{
"description":"Refunds for the order.",
"items":{
"$ref":"OrderRefund"
},
"type":"array"
},
"shipments":{
"description":"Shipments of the order.",
"items":{
"$ref":"OrderShipment"
},
"type":"array"
},
"shippingCost":{
"$ref":"Price",
"description":"The total cost of shipping for all items."
},
"shippingCostTax":{
"$ref":"Price",
"description":"The tax for the total shipping cost."
},
"shippingOption":{
"description":"The requested shipping option.",
"type":"string"
},
"status":{
"description":"The status of the order.",
"type":"string"
}
},
"type":"object"
},
"OrderAddress":{
"id":"OrderAddress",
"properties":{
"country":{
"description":"CLDR country code (e.g. \"US\").",
"type":"string"
},
"fullAddress":{
"description":"Strings representing the lines of the printed label for mailing the order, for example:\nJohn Smith\n1600 Amphitheatre Parkway\nMountain View, CA, 94043\nUnited States",
"items":{
"type":"string"
},
"type":"array"
},
"isPostOfficeBox":{
"description":"Whether the address is a post office box.",
"type":"boolean"
},
"locality":{
"description":"City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).",
"type":"string"
},
"postalCode":{
"description":"Postal Code or ZIP (e.g. \"94043\").",
"type":"string"
},
"recipientName":{
"description":"Name of the recipient.",
"type":"string"
},
"region":{
"description":"Top-level administrative subdivision of the country (e.g. \"CA\").",
"type":"string"
},
"streetAddress":{
"description":"Street-level part of the address.",
"items":{
"type":"string"
},
"type":"array"
}
},
"type":"object"
},
"OrderCancellation":{
"id":"OrderCancellation",
"properties":{
"actor":{
"description":"The actor that created the cancellation.",
"type":"string"
},
"creationDate":{
"description":"Date on which the cancellation has been created, in ISO 8601 format.",
"type":"string"
},
"quantity":{
"description":"The quantity that was canceled.",
"format":"uint32",
"type":"integer"
},
"reason":{
"description":"The reason for the cancellation. Orders that are cancelled with a noInventory reason will lead to the removal of the product from POG until you make an update to that product. This will not affect your Shopping ads.",
"description":"Email address that should be used for order related communications. In certain cases this might not be a real users email, but a proxy email.",
"description":"Last known user selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty.",
"type":"string"
},
"lastUpdatedTimestamp":{
"description":"Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type":"string"
},
"marketingEmailAddress":{
"description":"Email address that can be used for marketing purposes. This field is only filled when explicitMarketingPreference is equal to 'granted'.",
"description":"The phone number of the person receiving the delivery.",
"type":"string"
}
},
"type":"object"
},
"OrderLineItem":{
"id":"OrderLineItem",
"properties":{
"annotations":{
"description":"Annotations that are attached to the line item.",
"items":{
"$ref":"OrderMerchantProvidedAnnotation"
},
"type":"array"
},
"cancellations":{
"description":"Cancellations of the line item.",
"items":{
"$ref":"OrderCancellation"
},
"type":"array"
},
"id":{
"description":"The id of the line item.",
"type":"string"
},
"price":{
"$ref":"Price",
"description":"Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20."
},
"product":{
"$ref":"OrderLineItemProduct",
"description":"Product data from the time of the order placement."
},
"quantityCanceled":{
"description":"Number of items canceled.",
"format":"uint32",
"type":"integer"
},
"quantityDelivered":{
"description":"Number of items delivered.",
"format":"uint32",
"type":"integer"
},
"quantityOrdered":{
"description":"Number of items ordered.",
"format":"uint32",
"type":"integer"
},
"quantityPending":{
"description":"Number of items pending.",
"format":"uint32",
"type":"integer"
},
"quantityReturned":{
"description":"Number of items returned.",
"format":"uint32",
"type":"integer"
},
"quantityShipped":{
"description":"Number of items shipped.",
"format":"uint32",
"type":"integer"
},
"returnInfo":{
"$ref":"OrderLineItemReturnInfo",
"description":"Details of the return policy for the line item."
},
"returns":{
"description":"Returns of the line item.",
"items":{
"$ref":"OrderReturn"
},
"type":"array"
},
"shippingDetails":{
"$ref":"OrderLineItemShippingDetails",
"description":"Details of the requested shipping for the line item."
},
"tax":{
"$ref":"Price",
"description":"Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4."
}
},
"type":"object"
},
"OrderLineItemProduct":{
"id":"OrderLineItemProduct",
"properties":{
"brand":{
"description":"Brand of the item.",
"type":"string"
},
"channel":{
"description":"The item's channel (online or local).",
"type":"string"
},
"condition":{
"description":"Condition or state of the item.",
"type":"string"
},
"contentLanguage":{
"description":"The two-letter ISO 639-1 language code for the item.",
"type":"string"
},
"gtin":{
"description":"Global Trade Item Number (GTIN) of the item.",
"type":"string"
},
"id":{
"description":"The REST id of the product.",
"type":"string"
},
"imageLink":{
"description":"URL of an image of the item.",
"type":"string"
},
"itemGroupId":{
"description":"Shared identifier for all variants of the same product.",
"type":"string"
},
"mpn":{
"description":"Manufacturer Part Number (MPN) of the item.",
"type":"string"
},
"offerId":{
"description":"An identifier of the item.",
"type":"string"
},
"price":{
"$ref":"Price",
"description":"Price of the item."
},
"shownImage":{
"description":"URL to the cached image shown to the user when order was placed.",
"type":"string"
},
"targetCountry":{
"description":"The CLDR territory code of the target country of the product.",
"type":"string"
},
"title":{
"description":"The title of the product.",
"type":"string"
},
"variantAttributes":{
"description":"Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here.",
"items":{
"$ref":"OrderLineItemProductVariantAttribute"
},
"type":"array"
}
},
"type":"object"
},
"OrderLineItemProductVariantAttribute":{
"id":"OrderLineItemProductVariantAttribute",
"properties":{
"dimension":{
"description":"The dimension of the variant.",
"type":"string"
},
"value":{
"description":"The value for the dimension.",
"type":"string"
}
},
"type":"object"
},
"OrderLineItemReturnInfo":{
"id":"OrderLineItemReturnInfo",
"properties":{
"daysToReturn":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"How many days later the item can be returned.",
"format":"int32",
"type":"integer"
},
"isReturnable":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Whether the item is returnable.",
"type":"boolean"
},
"policyUrl":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"URL of the item return policy.",
"type":"string"
}
},
"type":"object"
},
"OrderLineItemShippingDetails":{
"id":"OrderLineItemShippingDetails",
"properties":{
"deliverByDate":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The delivery by date, in ISO 8601 format.",
"type":"string"
},
"method":{
"$ref":"OrderLineItemShippingDetailsMethod",
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Details of the shipping method."
},
"shipByDate":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The ship by date, in ISO 8601 format.",
"type":"string"
}
},
"type":"object"
},
"OrderLineItemShippingDetailsMethod":{
"id":"OrderLineItemShippingDetailsMethod",
"properties":{
"carrier":{
"description":"The carrier for the shipping. Optional. See shipments[].carrier for a list of acceptable values.",
"type":"string"
},
"maxDaysInTransit":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Maximum transit time.",
"format":"uint32",
"type":"integer"
},
"methodName":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The name of the shipping method.",
"type":"string"
},
"minDaysInTransit":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Minimum transit time.",
"format":"uint32",
"type":"integer"
}
},
"type":"object"
},
"OrderMerchantProvidedAnnotation":{
"id":"OrderMerchantProvidedAnnotation",
"properties":{
"key":{
"description":"Key for additional merchant provided (as key-value pairs) annotation about the line item.",
"type":"string"
},
"value":{
"description":"Value for additional merchant provided (as key-value pairs) annotation about the line item.",
"description":"The card expiration year (4-digit, e.g. 2015).",
"format":"int32",
"type":"integer"
},
"lastFourDigits":{
"description":"The last four digits of the card number.",
"type":"string"
},
"phoneNumber":{
"description":"The billing phone number.",
"type":"string"
},
"type":{
"description":"The type of instrument.\n\nAcceptable values are: \n- \"AMEX\" \n- \"DISCOVER\" \n- \"JCB\" \n- \"MASTERCARD\" \n- \"UNIONPAY\" \n- \"VISA\" \n- \"\"",
"type":"string"
}
},
"type":"object"
},
"OrderPromotion":{
"id":"OrderPromotion",
"properties":{
"benefits":{
"items":{
"$ref":"OrderPromotionBenefit"
},
"type":"array"
},
"effectiveDates":{
"description":"The date and time frame when the promotion is active and ready for validation review. Note that the promotion live time may be delayed for a few hours due to the validation review.\nStart date and end date are separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end date is in the same format.",
"type":"string"
},
"genericRedemptionCode":{
"description":"Optional. The text code that corresponds to the promotion when applied on the retailer?s website.",
"type":"string"
},
"id":{
"description":"The unique ID of the promotion.",
"type":"string"
},
"longTitle":{
"description":"The full title of the promotion.",
"type":"string"
},
"productApplicability":{
"description":"Whether the promotion is applicable to all products or only specific products.",
"type":"string"
},
"redemptionChannel":{
"description":"Indicates that the promotion is valid online.",
"type":"string"
}
},
"type":"object"
},
"OrderPromotionBenefit":{
"id":"OrderPromotionBenefit",
"properties":{
"discount":{
"$ref":"Price",
"description":"The discount in the order price when the promotion is applied."
},
"offerIds":{
"description":"The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.",
"items":{
"type":"string"
},
"type":"array"
},
"subType":{
"description":"Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types.",
"type":"string"
},
"taxImpact":{
"$ref":"Price",
"description":"The impact on tax when the promotion is applied."
},
"type":{
"description":"Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping).",
"type":"string"
}
},
"type":"object"
},
"OrderRefund":{
"id":"OrderRefund",
"properties":{
"actor":{
"description":"The actor that created the refund.",
"type":"string"
},
"amount":{
"$ref":"Price",
"description":"The amount that is refunded."
},
"creationDate":{
"description":"Date on which the item has been created, in ISO 8601 format.",
"type":"string"
},
"reason":{
"description":"The reason for the refund.",
"type":"string"
},
"reasonText":{
"description":"The explanation of the reason.",
"type":"string"
}
},
"type":"object"
},
"OrderReturn":{
"id":"OrderReturn",
"properties":{
"actor":{
"description":"The actor that created the refund.",
"type":"string"
},
"creationDate":{
"description":"Date on which the item has been created, in ISO 8601 format.",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersAdvanceTestOrderResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersCancelLineItemRequest":{
"id":"OrdersCancelLineItemRequest",
"properties":{
"amount":{
"$ref":"Price",
"description":"Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order."
},
"amountPretax":{
"$ref":"Price",
"description":"Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order."
},
"amountTax":{
"$ref":"Price",
"description":"Tax amount that correspond to cancellation amount in amountPretax."
},
"lineItemId":{
"description":"The ID of the line item to cancel. Either lineItemId or productId is required.",
"type":"string"
},
"operationId":{
"description":"The ID of the operation. Unique across all operations for a given order.",
"type":"string"
},
"productId":{
"description":"The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required.",
"type":"string"
},
"quantity":{
"description":"The quantity to cancel.",
"format":"uint32",
"type":"integer"
},
"reason":{
"description":"The reason for the cancellation.",
"type":"string"
},
"reasonText":{
"description":"The explanation of the reason.",
"type":"string"
}
},
"type":"object"
},
"OrdersCancelLineItemResponse":{
"id":"OrdersCancelLineItemResponse",
"properties":{
"executionStatus":{
"description":"The status of the execution.",
"type":"string"
},
"kind":{
"default":"content#ordersCancelLineItemResponse",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelLineItemResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersCancelRequest":{
"id":"OrdersCancelRequest",
"properties":{
"operationId":{
"description":"The ID of the operation. Unique across all operations for a given order.",
"type":"string"
},
"reason":{
"description":"The reason for the cancellation.",
"type":"string"
},
"reasonText":{
"description":"The explanation of the reason.",
"type":"string"
}
},
"type":"object"
},
"OrdersCancelResponse":{
"id":"OrdersCancelResponse",
"properties":{
"executionStatus":{
"description":"The status of the execution.",
"type":"string"
},
"kind":{
"default":"content#ordersCancelResponse",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersCreateTestOrderRequest":{
"id":"OrdersCreateTestOrderRequest",
"properties":{
"templateName":{
"description":"The test order template to use. Specify as an alternative to testOrder as a shortcut for retrieving a template and then creating an order using that template.",
"description":"Required for inStoreReturnLineItem method."
},
"merchantId":{
"description":"The ID of the managing account.",
"format":"uint64",
"type":"string"
},
"merchantOrderId":{
"description":"The merchant order id. Required for updateMerchantOrderId and getByMerchantOrderId methods.",
"type":"string"
},
"method":{
"description":"The method to apply.",
"type":"string"
},
"operationId":{
"description":"The ID of the operation. Unique across all operations for a given order. Required for all methods beside get and getByMerchantOrderId.",
"type":"string"
},
"orderId":{
"description":"The ID of the order. Required for all methods beside getByMerchantOrderId.",
"description":"Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order."
},
"amountPretax":{
"$ref":"Price",
"description":"Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order."
},
"amountTax":{
"$ref":"Price",
"description":"Tax amount that correspond to cancellation amount in amountPretax."
},
"lineItemId":{
"description":"The ID of the line item to cancel. Either lineItemId or productId is required.",
"type":"string"
},
"productId":{
"description":"The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required.",
"description":"Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values.",
"type":"string"
},
"lineItems":{
"description":"Line items to ship.",
"items":{
"$ref":"OrderShipmentLineItemShipment"
},
"type":"array"
},
"shipmentId":{
"description":"Deprecated. Please use shipmentInfo instead. The ID of the shipment.",
"type":"string"
},
"shipmentInfos":{
"description":"Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"description":"The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values.",
"type":"string"
},
"shipmentId":{
"description":"The ID of the shipment.",
"type":"string"
},
"status":{
"description":"New status for the shipment. Not updated if missing.",
"type":"string"
},
"trackingId":{
"description":"The tracking id for the shipment. Not updated if missing.",
"type":"string"
}
},
"type":"object"
},
"OrdersCustomBatchResponse":{
"id":"OrdersCustomBatchResponse",
"properties":{
"entries":{
"description":"The result of the execution of the batch requests.",
"items":{
"$ref":"OrdersCustomBatchResponseEntry"
},
"type":"array"
},
"kind":{
"default":"content#ordersCustomBatchResponse",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersCustomBatchResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersCustomBatchResponseEntry":{
"id":"OrdersCustomBatchResponseEntry",
"properties":{
"batchId":{
"description":"The ID of the request entry this entry responds to.",
"format":"uint32",
"type":"integer"
},
"errors":{
"$ref":"Errors",
"description":"A list of errors defined if and only if the request failed."
},
"executionStatus":{
"description":"The status of the execution. Only defined if the method is not get or getByMerchantOrderId and if the request was successful.",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersSetLineItemMetadataResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersShipLineItemsRequest":{
"id":"OrdersShipLineItemsRequest",
"properties":{
"carrier":{
"description":"Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values.",
"type":"string"
},
"lineItems":{
"description":"Line items to ship.",
"items":{
"$ref":"OrderShipmentLineItemShipment"
},
"type":"array"
},
"operationId":{
"description":"The ID of the operation. Unique across all operations for a given order.",
"type":"string"
},
"shipmentId":{
"description":"Deprecated. Please use shipmentInfo instead. The ID of the shipment.",
"type":"string"
},
"shipmentInfos":{
"description":"Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateMerchantOrderIdResponse\".",
"type":"string"
}
},
"type":"object"
},
"OrdersUpdateShipmentRequest":{
"id":"OrdersUpdateShipmentRequest",
"properties":{
"carrier":{
"description":"The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values.",
"type":"string"
},
"operationId":{
"description":"The ID of the operation. Unique across all operations for a given order.",
"type":"string"
},
"shipmentId":{
"description":"The ID of the shipment.",
"type":"string"
},
"status":{
"description":"New status for the shipment. Not updated if missing.",
"type":"string"
},
"trackingId":{
"description":"The tracking id for the shipment. Not updated if missing.",
"type":"string"
}
},
"type":"object"
},
"OrdersUpdateShipmentResponse":{
"id":"OrdersUpdateShipmentResponse",
"properties":{
"executionStatus":{
"description":"The status of the execution.",
"type":"string"
},
"kind":{
"default":"content#ordersUpdateShipmentResponse",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateShipmentResponse\".",
"type":"string"
}
},
"type":"object"
},
"Price":{
"id":"Price",
"properties":{
"currency":{
"description":"The currency of the price.",
"type":"string"
},
"value":{
"description":"The price represented as a number.",
"type":"string"
}
},
"type":"object"
},
"TestOrder":{
"id":"TestOrder",
"properties":{
"customer":{
"$ref":"TestOrderCustomer",
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The details of the customer who placed the order."
},
"kind":{
"default":"content#testOrder",
"description":"Identifies what kind of resource this is. Value: the fixed string \"content#testOrder\".",
"type":"string"
},
"lineItems":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Line items that are ordered. At least one line item must be provided.",
"items":{
"$ref":"TestOrderLineItem"
},
"type":"array"
},
"notificationMode":{
"description":"Determines if test order must be pulled by merchant or pushed to merchant via push integration.",
"type":"string"
},
"paymentMethod":{
"$ref":"TestOrderPaymentMethod",
"description":"The details of the payment method."
},
"predefinedDeliveryAddress":{
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"Identifier of one of the predefined delivery addresses for the delivery.",
"type":"string"
},
"promotions":{
"description":"The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items":{
"$ref":"OrderPromotion"
},
"type":"array"
},
"shippingCost":{
"$ref":"Price",
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The total cost of shipping for all items."
},
"shippingCostTax":{
"$ref":"Price",
"annotations":{
"required":[
"content.orders.createtestorder"
]
},
"description":"The tax for the total shipping cost."
"description":"Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.",
"type":"string"
},
"lastUpdatedTimestamp":{
"description":"Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",