Content API for Shopping . orderreturns . labels

Instance Methods

close()

Close httplib2 connections.

create(merchantId, returnId, body=None, x__xgafv=None)

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.

Method Details

close()
Close httplib2 connections.
create(merchantId, returnId, body=None, x__xgafv=None)
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.

Args:
  merchantId: string, Required. The merchant the Return Shipping Label belongs to. (required)
  returnId: string, Required. Provide the Google-generated merchant order return ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Return shipping label for a Buy on Google merchant-managed return.
  "carrier": "A String", # Name of the carrier.
  "labelUri": "A String", # The URL for the return shipping label in PDF format
  "trackingId": "A String", # The tracking id of this return label.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Return shipping label for a Buy on Google merchant-managed return.
  "carrier": "A String", # Name of the carrier.
  "labelUri": "A String", # The URL for the return shipping label in PDF format
  "trackingId": "A String", # The tracking id of this return label.
}