New: Application API docs
Pick the API you are reading here — the Merchant API for your own store, the Application API for partner apps.
Everything you need to integrate with the Gini v2 Third-Party API.
Manage product attributes such as Color and Size and their possible values — the building blocks used to generate product variants, scoped to your merchant account and signed with HMAC-SHA256.
Lists all product attributes belonging to the authenticated merchant, ordered newest-first. Supports a free-text search on the attribute name via the query parameter.
/api/v2.0/third-party/attributes
| Field | Type | Required | Description |
|---|---|---|---|
query
|
string | Optional | Search attributes whose name contains this value (case-insensitive LIKE match). |
page
|
integer | Optional | Page number for pagination. Results are paginated at 15 per page. |
[
{
"id": 55,
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green"
]
},
{
"id": 56,
"name": "Size",
"type": "select",
"values": [
"S",
"M",
"L",
"XL"
]
}
]
Retrieves a single attribute by its numeric id. Returns 404 if the attribute does not exist or does not belong to the authenticated merchant.
/api/v2.0/third-party/attributes/{id}
{
"data": {
"id": 55,
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green"
]
}
}
Creates a new attribute with its possible values for the authenticated merchant. The name must be unique among the merchant's existing attributes.
/api/v2.0/third-party/attributes
| Field | Type | Required | Description |
|---|---|---|---|
name
|
string | Required | Attribute name (max 255 chars). Must be unique per merchant. |
type
|
string | Required | Attribute type. Allowed values: color or select. |
values
|
array | Required | List of possible values for the attribute (at least 1 item). |
values.*
|
string | Required | Each value in the list. Non-empty string, max 255 chars. |
{
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green"
]
}
{
"data": {
"id": 55,
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green"
]
}
}
Updates an attribute's name, type and values. Values that are currently in use by product variants cannot be removed.
/api/v2.0/third-party/attributes/{id}
| Field | Type | Required | Description |
|---|---|---|---|
name
|
string | Required | Attribute name (max 255 chars). Must be unique per merchant, ignoring this attribute. |
type
|
string | Required | Attribute type. Allowed values: color or select. |
values
|
array | Required | Updated full list of values (at least 1 item). This replaces the existing list. |
values.*
|
string | Required | Each value in the list. Non-empty string, max 255 chars. |
{
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green",
"Black"
]
}
{
"data": {
"id": 55,
"name": "Color",
"type": "color",
"values": [
"Red",
"Blue",
"Green",
"Black"
]
}
}
Deletes an attribute. Fails if the attribute is still referenced by any product variant.
/api/v2.0/third-party/attributes/{id}
{
"message": "Attribute deleted successfully"
}