Create an import
Changed onCreate an import
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/imports
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"resource_type": "skus",
"format": "json",
"parent_resource_id": "1234",
"inputs": [
{
"code": "ABC",
"name": "Foo"
},
{
"code": "DEF",
"name": "Bar"
}
],
"cleanup_records": true,
"skip_errors": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The created import object
Changes
- breaking
request property
//was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valueimportswas removed - info
added the new
addressesenum value to the request property// - info
added the new
bundlesenum value to the request property// - info
added the new
couponsenum value to the request property// - info
added the new
customer_addressesenum value to the request property// - info
added the new
customer_payment_sourcesenum value to the request property// - info
added the new
customer_subscriptionsenum value to the request property// - info
added the new
customersenum value to the request property// - info
added the new
gift_cardsenum value to the request property// - info
added the new
importsenum value to the request property/ - info
added the new
line_item_optionsenum value to the request property// - info
added the new
line_itemsenum value to the request property// - info
added the new
ordersenum value to the request property// - info
added the new
price_listsenum value to the request property// - info
added the new
price_tiersenum value to the request property// - info
added the new
pricesenum value to the request property// - info
added the new
shipping_categoriesenum value to the request property// - info
added the new
sku_list_itemsenum value to the request property// - info
added the new
sku_listsenum value to the request property// - info
added the new
sku_optionsenum value to the request property// - info
added the new
skusenum value to the request property// - info
added the new
stock_itemsenum value to the request property// - info
added the new
stock_locationsenum value to the request property// - info
added the new
stock_transfersenum value to the request property// - info
added the new
tagsenum value to the request property// - info
added the new
tax_categoriesenum value to the request property// - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking