POST /2024-09/supplier-items/{supplier_item}/identifiers

Create a new identifier for a supplier item

Path parameters

  • supplier_item string(uuid) Required

    The UUID of the supplier item

application/json

Body Required

  • type string Required

    The type of identifier

    Values are UPC, EAN, GTIN, or ISBN.

  • value string Required

    The identifier value

Responses

  • 201 application/json

    A successful response returning the created identifier

    Hide response attribute Show response attribute object
    • data object

      Representation of a supplier item identifier

      Additional properties are NOT allowed.

      Hide data attributes Show data attributes object
      • id string(uuid)

        The UUID of the resource.

      • supplier_item_id string(uuid)

        The UUID of the supplier item this identifier belongs to

      • type string

        The type of identifier

        Values are UPC, EAN, GTIN, or ISBN.

      • value string

        The identifier value

      • created_at string(date-time)

        The date and time the resource was created.

      • updated_at string(date-time)

        The date and time the resource was last updated.

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 403 application/json

    Forbidden - The user does not have permission to access this resource.

    Hide response attribute Show response attribute object
    • message string Required
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
POST /2024-09/supplier-items/{supplier_item}/identifiers
curl \
 --request POST 'https://app.merchanthq.com/api/2024-09/supplier-items/{supplier_item}/identifiers' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"type":"UPC","value":"string"}'
Request examples
{
  "type": "UPC",
  "value": "string"
}
Response examples (201)
{
  "data": {
    "id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
    "supplier_item_id": "string",
    "type": "UPC",
    "value": "string",
    "created_at": "2025-01-10T10:37:11Z",
    "updated_at": "2025-01-10T10:37:11Z"
  }
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (403)
{
  "message": "This action is unauthorized."
}
Response examples (404)
{
  "message": "Not found"
}