younifyd
Menu

Update custom data of the order item

Update custom data of the order item

PUT/shops/{shopKey}/countries/{countryCode}/orders/{orderId}/items/{orderItemId}/legacy-custom-data

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update custom data of the order item action (under Orders).
  3. Fill in the fields below, then reference the result from later steps as {{updateCustomDataOfTheOrderItem.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

orderIdintegerrequired

Order ID

orderItemIdintegerrequired

Order item id

Query parameters

witharray<string>

Comma-separated list of additional properties that should be included in the response.

Response

Returns 200 with an object. Read it in later steps with {{updateCustomDataOfTheOrderItem.response.data.<field>}}.

idinteger
availableQuantityinteger
basketItemKeystring
currencystring

The three character [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code that identifies the currency. The currency is defined on the configuration of the shop, and can be modified in the cloud panel.

deliveryForecastobject
deliverableobject1 fields
subsequentDeliveryobject1 fields
legacyCustomDataany

Custom data added to the order item (legacy feature)

packageIdinteger
priceobject
appliedReductionsarray<any>

If the order has an external price, this field will not be included in the response payload.

absoluteVoucherReducedPriceobject3 fields
referenceobject3 fields
taxobject1 fields
withTaxintegerrequired
withoutTaxinteger

If the order has an external price, this field becomes optional.

overrideWithoutTaxinteger

If the order has an external price, this field will not be included in the response payload.

overrideWithTaxinteger

If the order has an external price, this field will not be included in the response payload.

undiscountedWithOutTaxinteger

Un-discounted item price **excluding** taxes If the order has an external price, this field will not be included in the response payload.

undiscountedWithTaxinteger

Un-discounted item price **including** taxes If the order has an external price, this field will not be included in the response payload.

lowestPriorPriceobject

The lowest price in the last 30 days.

relativeDifferenceToPricenumberrequired
withTaxintegerrequired

Lowest price including taxes

productobject
idintegerrequired
namestring

The product name.

imagesarray<object>1 fields
promotionobject
idstringrequired
namestringrequired
versionstringrequired
displayNamestring
codestring
promotionsarray<object>

Order item promotions

idstringrequired
namestringrequired
versionstringrequired
displayNamestring
codestring
keystring
reservationKeystring
statusstring

Possible values: available, unavailable, deliverable, undeliverable, cancelled, returned.

variantobject
stockobject1 fields
idinteger
referenceKeystring

External reference set by the client to integrate third party systems.

warehouseIdinteger
itemGroupobject
idstringrequired

Item group ID

isMainItembooleanrequired

Specifies the main item in the group (true for only one item in a group)

isRequiredbooleanrequired

Specifies if the item is mandatory or optional

campaignKeystring

Reference to the campaign applied to this order

merchantobject
idinteger

The merchant id to which the item belongs.

referenceKeystring

A merchant reference key the item belongs to.

merchantAdditionalDataobject

Bundle product information

createdAtstring (date-time)

Timestamp when the order item is created

updatedAtstring (date-time)

Timestamp when the order item is updated

delegatedAtstring (date-time)

Timestamp when the order item was successfully delegated, in Iso8601 format.

shippedAtstring (date-time)

Timestamp when the order item was shipped, in Iso8601 format.

cancelledAtstring (date-time)

Timestamp when the order item was canceled, in Iso8601 format.

returnedAtstring (date-time)

Timestamp when the order item was returned by the customer and recorded in the system, in Iso8601 format.

json
{
  "packageId": 0,
  "price": {
    "withTax": 0,
    "appliedReductions": [
      null
    ],
    "absoluteVoucherReducedPrice": {
      "tax": {
        "vat": {
          "amount": {},
          "rate": {}
        }
      },
      "withOutTax": 0,
      "withTax": 0
    },
    "reference": {
      "size": "string",
      "unit": "string",
      "withTax": 0
    },
    "tax": {
      "vat": {
        "amount": {},
        "rate": {}
      }
    },
    "withoutTax": 0,
    "overrideWithoutTax": 0,
    "overrideWithTax": 0,
    "undiscountedWithOutTax": 0,
    "undiscountedWithTax": 0
  },
  "product": {
    "id": 0,
    "name": "Blue Shirt",
    "images": [
      {
        "hash": "string"
      }
    ]
  },
  "status": "string",
  "variant": {
    "stock": {
      "supplierId": 0
    },
    "id": 0,
    "referenceKey": "my-key"
  },
  "id": 0,
  "availableQuantity": 0,
  "basketItemKey": "string",
  "currency": "string",
  "deliveryForecast": {
    "deliverable": {
      "key": "string"
    },
    "subsequentDelivery": {
      "key": "endOfJanuary"
    }
  },
  "legacyCustomData": null,
  "lowestPriorPrice": {
    "relativeDifferenceToPrice": 0,
    "withTax": 0
  }
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Update custom data of the order item — SCAYLE Admin — Documentation