POST
/
v1
/
products
Create or update products
curl --request POST \
  --url https://api.sandbox.usenash.com/v1/products \
  --header 'Content-Type: application/json' \
  --data '{
  "products": [
    {
      "externalIdentifier": "ext_001",
      "name": "Organic Bananas",
      "description": "Fresh organic bananas, perfect for smoothies and baking",
      "imageUrls": [
        "https://example.com/bananas1.jpg",
        "https://example.com/bananas2.jpg"
      ],
      "categories": [
        "Produce",
        "Fruits",
        "Organic"
      ],
      "weight": 0.5,
      "dimensions": {
        "depth": 8,
        "height": 4,
        "width": 12
      },
      "identifiers": [
        {
          "type": "UPC",
          "value": "123456789012"
        }
      ],
      "attributes": [
        "WEIGHTED"
      ],
      "details": {
        "weightedItemInfo": {
          "weightPerItem": 0.12,
          "weightUnit": "kg"
        }
      }
    }
  ]
}'
[
  {
    "id": "<string>",
    "externalIdentifier": "ext_001",
    "name": "Organic Bananas",
    "description": "Fresh organic bananas, perfect for smoothies and baking",
    "imageUrls": [
      "https://example.com/bananas1.jpg",
      "https://example.com/bananas2.jpg"
    ],
    "categories": [
      "Produce",
      "Fruits",
      "Organic"
    ],
    "weight": 0.5,
    "dimensions": {
      "depth": 8,
      "height": 4,
      "width": 12
    },
    "identifiers": [
      {
        "type": "UPC",
        "value": "123456789012"
      }
    ],
    "attributes": [
      "WEIGHTED"
    ],
    "details": {
      "weightedItemInfo": {
        "weightPerItem": 0.12,
        "weightUnit": "kg"
      }
    }
  }
]

Body

application/json

Response

200
application/json

OK

Expected output when listing products, it will return an array of ProductOutputSerializer.