Skip to main content
GET
/
api
/
suppliers
/
{id}
/
variant-constraints
List variant constraints for a supplier
curl --request GET \
  --url https://app.solya.app/api/suppliers/{id}/variant-constraints \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "createdAt": "2025-01-15T09:00:00.000Z",
      "id": "vc-uuid-1",
      "moq": 12,
      "packMultiple": null,
      "supplierId": "s1",
      "updatedAt": "2025-03-10T14:00:00.000Z",
      "variantId": "variant-uuid-001"
    },
    {
      "createdAt": "2025-02-01T10:00:00.000Z",
      "id": "vc-uuid-2",
      "moq": null,
      "packMultiple": 6,
      "supplierId": "s1",
      "updatedAt": null,
      "variantId": "variant-uuid-002"
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 2
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Path Parameters

id
string
required

Unique identifier of the resource (UUID)

Query Parameters

variantId
string

Filter by variant ID

page
integer
default:1

Page number, 1-indexed (default: 1)

Required range: 1 <= x <= 9007199254740991
pageSize
integer
default:20

Number of items per page, max 100 (default: 20)

Required range: 1 <= x <= 100

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true