Skip to main content
POST
/
listings
/
cleanse
Cleanse a previously uploaded listings batch
curl --request POST \
  --url https://api.seminode.com/v1/listings/cleanse \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "batch_id": "<string>",
  "dtag_headers": [
    "<string>"
  ],
  "headers": [
    "<string>"
  ]
}'
{
  "dtag_error": "<string>",
  "header_errors": [
    "<string>"
  ],
  "lines": [
    {
      "attributes": {
        "coo": "<string>",
        "currency": "<string>",
        "custom": {},
        "date_code": "<string>",
        "description": "<string>",
        "eccn": "<string>",
        "lot_no": "<string>",
        "moq": 123,
        "mpq": 123,
        "packaging": "<string>"
      },
      "batch_id": "<string>",
      "company": "<string>",
      "contact": {
        "methods": [
          "<string>"
        ],
        "reply_url": "<string>"
      },
      "encrypted": {
        "ciphertext": "<string>",
        "payload": {}
      },
      "errors": {},
      "image_url": "<string>",
      "internal_no": "<string>",
      "material_no": "<string>",
      "mfr": "<string>",
      "qty": 123,
      "timing": {
        "expiry": 123,
        "lead_time": "<string>",
        "lead_time_int": 123,
        "required_date": 123
      },
      "type": "<string>",
      "unit_price": 123
    }
  ],
  "page_count": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

mfr_match
boolean

Attempt manufacturer name matching

currency_code
string

Convert unit prices to USD from this ISO-4217 code

Body

application/json

Batch-ID and final header order

batch_id
string
dtag_headers
string[]
headers
string[]

Response

cleansed rows preview

dtag_error
string
header_errors
string[]
lines
object[]
page_count
integer