Use this call to return a template based on the configurator setting you have requested. This allows you to see the template which can then be retuned to the ProcessBigCommerceListing endpoint which will build the listing.
Name | Type | Description |
---|---|---|
parameters | ProcessTemplatesParameters | Object of TemplatesParameters |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Listings/CreateBigcommerceTemplates
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
parameters={
"Source": "sample string 1",
"SubSource": "sample string 2",
"ConfigId": "ef10c64c-0c13-4e6b-899f-bd8fa688cbff",
"InventoryItemIds": [
"9a4d130b-8a0a-4c1e-8fdf-5eb35495a956"
],
"SelectedRegions": [
{
"Item1": 1,
"Item2": 2
}
],
"Token": "7e5f9e24-0e94-4861-a5fb-292c3753b3e6",
"TemplatesType": 0
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Items": [
{
"Adjustments": 64,
"Width": 2.1,
"Height": 3.1,
"Depth": 4.1,
"Attributes": [
{
"Name": "sample string 1",
"Type": 0,
"MaxLength": 2,
"Label": "sample string 3",
"Value": "sample string 4",
"ExtendedProperty": "sample string 5",
"Default": true
}
],
"VarAttributes": [
{
"Name": "sample string 1",
"ExtendedProperty": "sample string 2",
"Type": "sample string 3",
"TypeLabel": "sample string 4"
}
],
"Children": [
{
"StockItemId": "08f5f2d5-70fc-4baa-9b0f-7f50f91770b6",
"ChildId": "ba0fb30e-5ff3-4fb3-914d-d92a0f0b0e01",
"SkuId": 3,
"SKU": "sample string 4",
"UPC": "sample string 5",
"Name": "sample string 6",
"Price": 7.1,
"ManageStock": true,
"CollisionNumber": 9,
"Status": 0,
"Quantity": 10,
"Weight": 11.1,
"InStockChannel": true,
"ProductImageURL": "sample string 13",
"OptionsValues": [
{
"OptionId": 1,
"ValueId": 2,
"Name": "sample string 3",
"Label": "sample string 4"
}
]
}
],
"OldChildren": [
{
}
],
"OptionSet": {
"Id": 1,
"Name": "sample string 2",
"MappedFromBC": true,
"Options": [
{
"Id": 1,
"IdV3": 2,
"OptionName": "sample string 3",
"OptionDisplayName": "sample string 4",
"MappedFromBC": true,
"AssignmentId": 6,
"Values": [
{
"MappedFromBC": true,
"Id": 1,
"IdV3": 1,
"SortOrder": 2,
"Label": "sample string 3",
"OptionValueData": {
"ImageUrl": "sample string 1",
"Color": "sample string 2"
}
}
],
"Type": "sample string 7"
}
]
},
"Images": [
{
"Id": 1,
"Thumb": true,
"sortOrder": 3,
"IsChild": true,
"ImageId": "e1123b92-dd7c-4402-8593-594aa833b785",
"URL": "sample string 6",
"Label": "sample string 7",
"Show": true,
"IsNative": true
}
],
"Version": 5,
"ListingId": "07c8e53b-6b45-42c4-8b10-d3332afa5d27",
"TemplateId": "677c93ac-4c53-49c4-9924-c6647cf29c2c",
"InventoryItemId": "64878432-1811-413d-8cf0-17e80277c57d",
"ConfigId": "e49a8eae-624e-4ca5-abb5-3e18305c56ee",
"UsedConfigName": "sample string 10",
"ProductId": 11,
"UpdateConfig": true,
"Type": 0,
"ListingURL": "sample string 13",
"Name": "sample string 14",
"Description": "sample string 15",
"ShortDescription": "sample string 16",
"SKU": "sample string 17",
"Barcode": "sample string 18",
"TitleSource": "sample string 19",
"Price": 20.1,
"Weight": 21.1,
"ShowListing": true,
"ManageStock": true,
"Quantity": 24,
"IsReadOnly": true,
"Categories": [
{
"Id": "sample string 1",
"Name": "sample string 2",
"Path": "sample string 3",
"Default": true
}
],
"HasCollisions": true,
"UseMainItemImages": true,
"Status": 0,
"Site": "sample string 28",
"IsErrorMsg": true,
"CustomFields": [
{
"Id": 1,
"BigCommerceId": 2,
"FlexSettingsItemId": "a2c4b1d0-551d-4f30-a7fb-bd4e1650602f",
"Name": "sample string 4",
"Value": "sample string 5"
}
]
}
],
"TotalItems": 1,
"CurrentPage": 2,
"EntriesPerPage": 3
}