Body
Required
-
field
string Required Field
Values are
optionName
,optionValue
,metaFieldName
, ormetaFieldValue
. -
inventoryFeedId
integer(int32) | null Inventory feed
-
matchType
string Required Match type
Values are
includes
,excludes
,matches
,startsWith
, orendsWith
. -
transformFrom
array[string] Required Transform from
-
transformTo
string Required Transform to
-
transformType
string Required Transform type
Values are
capitalize
,humanize
, ornone
. Default value isnone
.
POST
/inventory-feed-mappings.json
curl \
--request POST 'http://api.example.com/v1/inventory-feed-mappings.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"field":"optionName","inventoryFeedId":42,"matchType":"includes","transformFrom":["string"],"transformTo":"string","transformType":"none"}'
Request examples
{
"field": "optionName",
"inventoryFeedId": 42,
"matchType": "includes",
"transformFrom": [
"string"
],
"transformTo": "string",
"transformType": "none"
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"field": "optionName",
"id": 42,
"inventoryFeedId": 42,
"matchType": "includes",
"transformFrom": [
"string"
],
"transformTo": "string",
"transformType": "none",
"updatedAt": "2025-05-04T09:42:00Z"
}