POST
/
v1
/
listings
curl --request POST \
  --url https://api.treet-test.co/v1/listings \
  --header 'Content-Type: application/json' \
  --header 'X-Treet-Authentication-Key: <api-key>' \
  --header 'X-Treet-Client-Id: <api-key>' \
  --data '{
  "shopId": "boyish",
  "condition": "GOOD",
  "productDataSourceType": "SHOPIFY_PRODUCT_VARIANT_ID",
  "productIdentifier": "gid://shopify/ProductVariant/36730646298791",
  "externalIdentifier": "SKU325-good",
  "description": "This item was used for sample sales. It has a loose thread on the bottom.",
  "metadata": {
    "locationId": "123456",
    "uniqueUnitIdentifier": "SKU325-good"
  },
  "commercePlatformDomain": "shop.example.com",
  "images": [
    {
      "url": "https://example.com/image1.jpg"
    },
    {
      "url": "https://example.com/image2.jpg"
    }
  ]
}'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "url": "boyish.treet.co/l/550e8400-e29b-41d4-a716-446655440000"
}

Authorizations

X-Treet-Client-Id
string
header
required
X-Treet-Authentication-Key
string
header
required

Body

application/json

Listing to add to a brand's Treet shop

The body is of type object.

Response

200
application/json

listing response

The response is of type object.

POST
/
v1
/
listings
curl --request POST \
  --url https://api.treet-test.co/v1/listings \
  --header 'Content-Type: application/json' \
  --header 'X-Treet-Authentication-Key: <api-key>' \
  --header 'X-Treet-Client-Id: <api-key>' \
  --data '{
  "shopId": "boyish",
  "condition": "GOOD",
  "productDataSourceType": "SHOPIFY_PRODUCT_VARIANT_ID",
  "productIdentifier": "gid://shopify/ProductVariant/36730646298791",
  "externalIdentifier": "SKU325-good",
  "description": "This item was used for sample sales. It has a loose thread on the bottom.",
  "metadata": {
    "locationId": "123456",
    "uniqueUnitIdentifier": "SKU325-good"
  },
  "commercePlatformDomain": "shop.example.com",
  "images": [
    {
      "url": "https://example.com/image1.jpg"
    },
    {
      "url": "https://example.com/image2.jpg"
    }
  ]
}'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "url": "boyish.treet.co/l/550e8400-e29b-41d4-a716-446655440000"
}

Authorizations

X-Treet-Client-Id
string
header
required
X-Treet-Authentication-Key
string
header
required

Body

application/json

Listing to add to a brand's Treet shop

The body is of type object.

Response

200
application/json

listing response

The response is of type object.