POST /template-mappings.json
Body Required
-
attribute string | null
Attribute
-
columnType string | null
Column type
Values are
attribute
,placeholder
, ororderFlag
. -
Country format
Values are
full
,alpha2
, oralpha3
. Default value isalpha2
. -
dateFormat string | null
Date format
-
Format reference
Default value is
false
. -
Header
-
object string | null
Object
Values are
channel
,company
,currency
,customer
,dropship_provider
,inventory_feed_variant
,product
,purchase_item
,purchase_shipping_rate
,purchase
,sale_item
,sale_shipping_rate
,sale
,tracking_event
,transfer_refund
,transfer
,variant
, orvendor
. -
orderEnd string | null
Order end
-
orderMiddle string | null
Order middle
-
orderStart string | null
Order start
-
placeholder string | null
Placeholder
-
position integer(int32) | null
Position
-
propertyName string | null
Property name
-
State format
Values are
original
,full
, orabbreviation
. Default value isoriginal
. -
Template
-
weightUnit string | null
Weight unit
Values are
g
,kg
,oz
, orlb
.
POST /template-mappings.json
curl \
-X POST http://api.example.com/v1/template-mappings.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"attribute":"string","columnType":"attribute","countryFormat":"alpha2","dateFormat":"string","formatReference":false,"header":"string","object":"channel","orderEnd":"string","orderMiddle":"string","orderStart":"string","placeholder":"string","position":42,"propertyName":"string","stateFormat":"original","templateId":42,"weightUnit":"g"}'
Request example
{
"attribute": "string",
"columnType": "attribute",
"countryFormat": "alpha2",
"dateFormat": "string",
"formatReference": false,
"header": "string",
"object": "channel",
"orderEnd": "string",
"orderMiddle": "string",
"orderStart": "string",
"placeholder": "string",
"position": 42,
"propertyName": "string",
"stateFormat": "original",
"templateId": 42,
"weightUnit": "g"
}
Response examples (200)
{
"attribute": "string",
"columnType": "attribute",
"countryFormat": "alpha2",
"createdAt": "2024-05-04T09:42:00+00:00",
"dateFormat": "string",
"formatReference": false,
"header": "string",
"id": 42,
"object": "channel",
"orderEnd": "string",
"orderMiddle": "string",
"orderStart": "string",
"placeholder": "string",
"position": 42,
"propertyName": "string",
"stateFormat": "original",
"templateId": 42,
"updatedAt": "2024-05-04T09:42:00+00:00",
"weightUnit": "g"
}