Show / Hide Table of Contents

Class OrdersResource

The "orders" collection of methods.

Inheritance
System.Object
OrdersResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.ShoppingContent.v2
Assembly: Google.Apis.ShoppingContent.v2.dll
Syntax
public class OrdersResource

Constructors

OrdersResource(IClientService)

Constructs a new resource.

Declaration
public OrdersResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Acknowledge(OrdersAcknowledgeRequest, UInt64, String)

Marks an order as acknowledged.

Declaration
public virtual OrdersResource.AcknowledgeRequest Acknowledge(OrdersAcknowledgeRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersAcknowledgeRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.AcknowledgeRequest

Advancetestorder(UInt64, String)

Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".

Declaration
public virtual OrdersResource.AdvancetestorderRequest Advancetestorder(ulong merchantId, string orderId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the test order to modify.

Returns
Type Description
OrdersResource.AdvancetestorderRequest

Cancel(OrdersCancelRequest, UInt64, String)

Cancels all line items in an order, making a full refund.

Declaration
public virtual OrdersResource.CancelRequest Cancel(OrdersCancelRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersCancelRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order to cancel.

Returns
Type Description
OrdersResource.CancelRequest

Cancellineitem(OrdersCancelLineItemRequest, UInt64, String)

Cancels a line item, making a full refund.

Declaration
public virtual OrdersResource.CancellineitemRequest Cancellineitem(OrdersCancelLineItemRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersCancelLineItemRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.CancellineitemRequest

Canceltestorderbycustomer(OrdersCancelTestOrderByCustomerRequest, UInt64, String)

Sandbox only. Cancels a test order for customer-initiated cancellation.

Declaration
public virtual OrdersResource.CanceltestorderbycustomerRequest Canceltestorderbycustomer(OrdersCancelTestOrderByCustomerRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersCancelTestOrderByCustomerRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the test order to cancel.

Returns
Type Description
OrdersResource.CanceltestorderbycustomerRequest

Createtestorder(OrdersCreateTestOrderRequest, UInt64)

Sandbox only. Creates a test order.

Declaration
public virtual OrdersResource.CreatetestorderRequest Createtestorder(OrdersCreateTestOrderRequest body, ulong merchantId)
Parameters
Type Name Description
OrdersCreateTestOrderRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that should manage the order. This cannot be a multi-client account.

Returns
Type Description
OrdersResource.CreatetestorderRequest

Createtestreturn(OrdersCreateTestReturnRequest, UInt64, String)

Sandbox only. Creates a test return.

Declaration
public virtual OrdersResource.CreatetestreturnRequest Createtestreturn(OrdersCreateTestReturnRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersCreateTestReturnRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.CreatetestreturnRequest

Custombatch(OrdersCustomBatchRequest)

Retrieves or modifies multiple orders in a single request.

Declaration
public virtual OrdersResource.CustombatchRequest Custombatch(OrdersCustomBatchRequest body)
Parameters
Type Name Description
OrdersCustomBatchRequest body

The body of the request.

Returns
Type Description
OrdersResource.CustombatchRequest

Get(UInt64, String)

Retrieves an order from your Merchant Center account.

Declaration
public virtual OrdersResource.GetRequest Get(ulong merchantId, string orderId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.GetRequest

Getbymerchantorderid(UInt64, String)

Retrieves an order using merchant order ID.

Declaration
public virtual OrdersResource.GetbymerchantorderidRequest Getbymerchantorderid(ulong merchantId, string merchantOrderId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String merchantOrderId

The merchant order ID to be looked for.

Returns
Type Description
OrdersResource.GetbymerchantorderidRequest

Gettestordertemplate(UInt64, OrdersResource.GettestordertemplateRequest.TemplateNameEnum)

Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.

Declaration
public virtual OrdersResource.GettestordertemplateRequest Gettestordertemplate(ulong merchantId, OrdersResource.GettestordertemplateRequest.TemplateNameEnum templateName)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the account that should manage the order. This cannot be a multi-client account.

OrdersResource.GettestordertemplateRequest.TemplateNameEnum templateName

The name of the template to retrieve.

Returns
Type Description
OrdersResource.GettestordertemplateRequest

Instorerefundlineitem(OrdersInStoreRefundLineItemRequest, UInt64, String)

Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.

Declaration
public virtual OrdersResource.InstorerefundlineitemRequest Instorerefundlineitem(OrdersInStoreRefundLineItemRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersInStoreRefundLineItemRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.InstorerefundlineitemRequest

List(UInt64)

Lists the orders in your Merchant Center account.

Declaration
public virtual OrdersResource.ListRequest List(ulong merchantId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

Returns
Type Description
OrdersResource.ListRequest

Refund(OrdersRefundRequest, UInt64, String)

Deprecated, please use returnRefundLineItem instead.

Declaration
public virtual OrdersResource.RefundRequest Refund(OrdersRefundRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersRefundRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order to refund.

Returns
Type Description
OrdersResource.RefundRequest

Rejectreturnlineitem(OrdersRejectReturnLineItemRequest, UInt64, String)

Rejects return on an line item.

Declaration
public virtual OrdersResource.RejectreturnlineitemRequest Rejectreturnlineitem(OrdersRejectReturnLineItemRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersRejectReturnLineItemRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.RejectreturnlineitemRequest

Returnlineitem(OrdersReturnLineItemRequest, UInt64, String)

Returns a line item.

Declaration
public virtual OrdersResource.ReturnlineitemRequest Returnlineitem(OrdersReturnLineItemRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersReturnLineItemRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.ReturnlineitemRequest

Returnrefundlineitem(OrdersReturnRefundLineItemRequest, UInt64, String)

Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.

Declaration
public virtual OrdersResource.ReturnrefundlineitemRequest Returnrefundlineitem(OrdersReturnRefundLineItemRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersReturnRefundLineItemRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.ReturnrefundlineitemRequest

Setlineitemmetadata(OrdersSetLineItemMetadataRequest, UInt64, String)

Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.

Declaration
public virtual OrdersResource.SetlineitemmetadataRequest Setlineitemmetadata(OrdersSetLineItemMetadataRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersSetLineItemMetadataRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.SetlineitemmetadataRequest

Shiplineitems(OrdersShipLineItemsRequest, UInt64, String)

Marks line item(s) as shipped.

Declaration
public virtual OrdersResource.ShiplineitemsRequest Shiplineitems(OrdersShipLineItemsRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersShipLineItemsRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.ShiplineitemsRequest

Updatelineitemshippingdetails(OrdersUpdateLineItemShippingDetailsRequest, UInt64, String)

Updates ship by and delivery by dates for a line item.

Declaration
public virtual OrdersResource.UpdatelineitemshippingdetailsRequest Updatelineitemshippingdetails(OrdersUpdateLineItemShippingDetailsRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersUpdateLineItemShippingDetailsRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.UpdatelineitemshippingdetailsRequest

Updatemerchantorderid(OrdersUpdateMerchantOrderIdRequest, UInt64, String)

Updates the merchant order ID for a given order.

Declaration
public virtual OrdersResource.UpdatemerchantorderidRequest Updatemerchantorderid(OrdersUpdateMerchantOrderIdRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersUpdateMerchantOrderIdRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.UpdatemerchantorderidRequest

Updateshipment(OrdersUpdateShipmentRequest, UInt64, String)

Updates a shipment's status, carrier, and/or tracking ID.

Declaration
public virtual OrdersResource.UpdateshipmentRequest Updateshipment(OrdersUpdateShipmentRequest body, ulong merchantId, string orderId)
Parameters
Type Name Description
OrdersUpdateShipmentRequest body

The body of the request.

System.UInt64 merchantId

The ID of the account that manages the order. This cannot be a multi-client account.

System.String orderId

The ID of the order.

Returns
Type Description
OrdersResource.UpdateshipmentRequest
In This Article
Back to top