Deleting Sales Layer Records Using the API

In order to delete data through API requests, it is necessary to configure an import connector on the cloud side of the Sales Layer PIM.

“delete_data” = [
    “{table name}” = [
        [
            ”ID” = “{Unique register ID in Sales Layer}” or…
            “REF” = “{Unique register reference}”
        ],
        …
    ],
    ...
]

Responses and Errors

The response to the data update request will arrive within the JSON / XML parameter “input_response”. 

“input_response” = [
    “result”= (0 = unmodified, 1 = update completed, 2 = update denied)
    “errors” = [
        0 = “{error description}”,
        {n} = …
    ],
    “items_affected” = [
        “{table}” = {number of modified fields},
    ]
]