PRODUCT CREATE

Use this call to create or replace a product catalog in EffectConnect. This is always a purge and replace action for the entire catalog.

Header information

Endpoint /products
Method POST
Base node products
XSD products_create.xsd

 

 

Payload

Field Obligatory Type Description
identifier yes string The unique parent product identifier
brand no string (64) Brand name
categories no collection of Category Categories
options yes collection of Option Opties

 

You will need to send this payload as a file, not as plain text. (i.e. use CURLFile when working with PHP)

Response payload

Field Obligatory Type Description
ProcessID yes string Process ID

 

Request example
<?xml version="1.0" encoding="utf-8"?> <products> <product> <identifier>12345</identifier> <brand>Merk 1</brand> <categories> <category> <titles> <title language="nl">Verlichting</title> </titles> <children> <category> <titles> <title language="nl">Buitenverlichting</title> </titles> </category> </children> </category> </categories> <options> <option> <identifier>abc123456</identifier> <cost>10.50</cost> <price>19.95</price> <priceOriginal>22.95</priceOriginal> <stock>12</stock> <titles> <title language="nl">Testproduct Nederlands Lamp</title> </titles> <urls> <url language="nl">/verlichting/buitenverlichting/abc123456</url> </urls> <descriptions> <description language="nl"><![CDATA[Beschrijving van het product.]]></description> </descriptions> <ean>1234567890123</ean> <sku>abc123456</sku> <images> <image> <url>http://www.effectconnect.com/linknaarafbeelding_1.jpg</url> <order>1</order> </image> <image> <url>http://www.effectconnect.com/linknaarafbeelding_2.jpg</url> <order>2</order> </image> <image> <url>http://www.effectconnect.com/linknaarafbeelding_3.jpg</url> <order>3</order> </image> <image> <url>http://www.effectconnect.com/linknaarafbeelding_4.jpg</url> <order>4</order> </image> <image> <url>http://www.effectconnect.com/linknaarafbeelding_5.jpg</url> <order>5</order> </image> <image> <url>http://www.effectconnect.com/linknaarafbeelding_6.jpg</url> <order>6</order> </image> </images> <attributes> <attribute> <code>1</code> <names> <name language="nl">Kleur</name> </names> <values> <value> <code>red</code> <names> <name language="nl">Rood</name> </names> </value> </values> </attribute> </attributes> </option> </options> </product> </products>
Response example
{ "Request": { "RequestType": "Product", "RequestAction": "Create", "RequestIdentifier": false, "ProcessedAt": "2018-03-26T12:42:12+02:00" }, "Response": { "Result": "Success", "ProductCreateResponseContainer": { "ProcessID": "1235sdfsf23" } } }
<?xml version="1.0"?> <ApiResponseContainer> <Request> <RequestType>Product</RequestType> <RequestAction>Create</RequestAction> <RequestIdentifier/> <ProcessedAt>2018-03-26T12:42:12+02:00</ProcessedAt> </Request> <Response> <Result>Success</Result> <ProductCreateResponseContainer> <ProcessID>1235sdfsf23</ProcessID> </ProductCreateResponseContainer> </Response> </ApiResponseContainer>