# Content API for Shopping . accounts . returncarrier

## Instance Methods

Close httplib2 connections.

Links return carrier to a merchant account.

Delete a return carrier in the merchant account.

Lists available return carriers in the merchant account.

Updates a return carrier in the merchant account.

### Method Details

`close()`

    Close httplib2 connections.

`create(accountId, body=None, x__xgafv=None)`

    Links return carrier to a merchant account.

    Args:
      accountId: string, Required. The Merchant Center Account Id under which the Return Carrier is to be linked. (required)
      body: object, The request body.
        The object takes the form of:

    { #  The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
      "carrierAccountId": "A String", # Output only. Immutable. The Google-provided unique carrier ID, used to update the resource.
      "carrierAccountName": "A String", # Name of the carrier account.
      "carrierAccountNumber": "A String", # Number of the carrier account.
      "carrierCode": "A String", # The carrier code enum. Accepts the values FEDEX or UPS.
    }

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

    Returns:
      An object of the form:

        { #  The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
      "carrierAccountId": "A String", # Output only. Immutable. The Google-provided unique carrier ID, used to update the resource.
      "carrierAccountName": "A String", # Name of the carrier account.
      "carrierAccountNumber": "A String", # Number of the carrier account.
      "carrierCode": "A String", # The carrier code enum. Accepts the values FEDEX or UPS.
    }

`delete(accountId, carrierAccountId, x__xgafv=None)`

    Delete a return carrier in the merchant account.

    Args:
      accountId: string, Required. The Merchant Center Account Id under which the Return Carrier is to be linked. (required)
      carrierAccountId: string, Required. The Google-provided unique carrier ID, used to update the resource. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

`list(accountId, x__xgafv=None)`

    Lists available return carriers in the merchant account.

    Args:
      accountId: string, Required. The Merchant Center Account Id under which the Return Carrier is to be linked. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response for listing account return carriers.
      "accountReturnCarriers": [ # List of all available account return carriers for the merchant.
        { #  The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
          "carrierAccountId": "A String", # Output only. Immutable. The Google-provided unique carrier ID, used to update the resource.
          "carrierAccountName": "A String", # Name of the carrier account.
          "carrierAccountNumber": "A String", # Number of the carrier account.
          "carrierCode": "A String", # The carrier code enum. Accepts the values FEDEX or UPS.
        },
      ],
    }

`patch(accountId, carrierAccountId, body=None, x__xgafv=None)`

    Updates a return carrier in the merchant account.

    Args:
      accountId: string, Required. The Merchant Center Account Id under which the Return Carrier is to be linked. (required)
      carrierAccountId: string, Required. The Google-provided unique carrier ID, used to update the resource. (required)
      body: object, The request body.
        The object takes the form of:

    { #  The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
      "carrierAccountId": "A String", # Output only. Immutable. The Google-provided unique carrier ID, used to update the resource.
      "carrierAccountName": "A String", # Name of the carrier account.
      "carrierAccountNumber": "A String", # Number of the carrier account.
      "carrierCode": "A String", # The carrier code enum. Accepts the values FEDEX or UPS.
    }

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

    Returns:
      An object of the form:

        { #  The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
      "carrierAccountId": "A String", # Output only. Immutable. The Google-provided unique carrier ID, used to update the resource.
      "carrierAccountName": "A String", # Name of the carrier account.
      "carrierAccountNumber": "A String", # Number of the carrier account.
      "carrierCode": "A String", # The carrier code enum. Accepts the values FEDEX or UPS.
    }