2Performant feeds

In order for 2Performant to fetch the products of your store, you must provide the URL of a CSV file that contains this information. The file must contain up to date information, every time it is fetched.

File format

CSV: one entry per line

  • lines separated by: \n
  • attributes separated by ,
  • string attributes surrounded by double quotes "

Encoding: UTF8

Special characters

  • if attributes contain new line characters, they should be replaced with whitespace
  • if attributes contain " characters, they should be replaced with 2 double quotes: ""

There should be no “header” line; the number of lines should be equal to the number of products.

Attributes

On each line, there should be the following attributes, in this exact order:

Attribute Format Example

Title

[required]

Text

At most 255 characters

 
Description Text  
Caption

Text

At most 254 characters (will be truncated to 254 characters, if larger)

 
Price

Text

If the product is on discount, send "old_price/new_price"

Decimal separator: .
Positive number, add at most 2 decimals
Do not use ,, do not separate digits with or whitespace.

Will be removed if does not fit the rules above.

"18723.99/17723.99"

"12.56"

Category

[required]

Text

At most 254 characters (will be truncated to 254 characters, if larger)

 
Subcategory

Text

At most 254 characters (will be truncated to 254 characters, if larger)

 

Full product url

[required]

Text "https://example.com/products/12938"
Images URLs

Text

Multiple URL’s must be separated by ,

"https://example.com/products/12938/image1.jpg,https://example.com/products/12938/image2.jpg"

Product ID

[required]

Text

Internal product ID. Should not change over time

At most 254 characters (will be truncated to 254 characters, if larger)

 

[required]

legacy column

Must be ""

 
Brand

Text

At most 254 characters (will be truncated to 254 characters, if larger)

 
In stock?

Number

0 or 1

 
Other data JSON-encoded or YAML-encoded  

Notes:
CSV is not a standard. Here’s a format description

Was this article helpful to you? Yes No