POST:buy_links.json
Commerce APIPOST:buy_links.json

POST:buy_links.json

Description

Modify one or multiple buy links.

Permission bit: "buy_links.modify"

Topic: Buy Links

Query Parameters

ids: Comma-separated array of String, required

List of buy link ids. See also: Unique Identifiers

Example: ?ids=buy_link_id,buy_link_id


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of BuyLinkModify

[
  {
    "custom_items": [
      {
        "grams": 200,
        "height": 150,
        "inventory_location_id": "",
        "length": 150,
        "physical": true,
        "price": 5,
        "tax_class": "",
        "taxable": true,
        "title": "",
        "width": 150
      }
    ],
    "enabled": false,
    "line_items": [
      {
        "custom_item_index": {
          "value": 5
        },
        "field_set_id": "",
        "fields": [
          {
            "choice_index": 5,
            "field_index": 5,
            "label": "",
            "type": "checkbox",
            "value": ""
          }
        ],
        "quantity": 1,
        "subscription_plan_index": {
          "value": 5
        },
        "variant_id": "va_EQzGqWoY"
      }
    ],
    "name": "Mega Frobnicate"
  }
]

Response Body

Array of BuyLink

Response Body Type

Loading module