Show / Hide Table of Contents

Class OrderreturnsResource.LabelsResource.CreateRequest

Links a return shipping label to a return id. You can only create one return label per return id. Since the label is sent to the buyer, the linked return label cannot be updated or deleted. If you try to create multiple return shipping labels for a single return id, every create request except the first will fail.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<ReturnShippingLabel>
ShoppingContentBaseServiceRequest<ReturnShippingLabel>
OrderreturnsResource.LabelsResource.CreateRequest
Implements
IClientServiceRequest<ReturnShippingLabel>
IClientServiceRequest
Inherited Members
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.Xgafv
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.AccessToken
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.Alt
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.Callback
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.Fields
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.Key
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.OauthToken
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.PrettyPrint
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.QuotaUser
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.UploadType
ShoppingContentBaseServiceRequest<ReturnShippingLabel>.UploadProtocol
ClientServiceRequest<ReturnShippingLabel>.Execute()
ClientServiceRequest<ReturnShippingLabel>.ExecuteAsStream()
ClientServiceRequest<ReturnShippingLabel>.ExecuteAsync()
ClientServiceRequest<ReturnShippingLabel>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ReturnShippingLabel>.ExecuteAsStreamAsync()
ClientServiceRequest<ReturnShippingLabel>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ReturnShippingLabel>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<ReturnShippingLabel>.GenerateRequestUri()
ClientServiceRequest<ReturnShippingLabel>.GetDefaultETagAction(String)
ClientServiceRequest<ReturnShippingLabel>.ETagAction
ClientServiceRequest<ReturnShippingLabel>.ModifyRequest
ClientServiceRequest<ReturnShippingLabel>.ValidateParameters
ClientServiceRequest<ReturnShippingLabel>.RequestParameters
ClientServiceRequest<ReturnShippingLabel>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class CreateRequest : ShoppingContentBaseServiceRequest<ReturnShippingLabel>, IClientServiceRequest<ReturnShippingLabel>, IClientServiceRequest

Constructors

CreateRequest(IClientService, ReturnShippingLabel, Int64, String)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, ReturnShippingLabel body, long merchantId, string returnId)
Parameters
Type Name Description
IClientService service
ReturnShippingLabel body
System.Int64 merchantId
System.String returnId

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ShoppingContent.v2_1.Data.ReturnShippingLabel>.HttpMethod

MerchantId

Required. The merchant the Return Shipping Label belongs to.

Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type Description
System.Int64

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ShoppingContent.v2_1.Data.ReturnShippingLabel>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ShoppingContent.v2_1.Data.ReturnShippingLabel>.RestPath

ReturnId

Required. Provide the Google-generated merchant order return ID.

Declaration
[RequestParameter("returnId", RequestParameterType.Path)]
public virtual string ReturnId { get; }
Property Value
Type Description
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ShoppingContent.v2_1.Data.ReturnShippingLabel>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.ShoppingContent.v2_1.ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2_1.Data.ReturnShippingLabel>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top