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.
Browse the wholesale (B2B) marketplace — the sellers offering wholesale stock, the wholesale-enabled products they list, and the full detail of any single product with its variants. These are cross-merchant read endpoints: the signed caller browses other merchants' wholesale catalogue and is always excluded from the sellers list. Every route is HMAC-signed, English-only, and returns money as decimal strings in IQD.
Returns the merchants flagged as wholesale sellers that own at least one active, visible, wholesale-priced product, as a paginated collection newest-first. The calling merchant is always excluded. A top-level categories tree of the wholesale taxonomy is attached alongside the paginated data.
/api/v1.0/third-party/wholesale/catalog/sellers
| Field | Type | Required | Description |
|---|---|---|---|
search
|
string | Optional | Fuzzy match against the seller business_name (max 255 chars). |
category_id
|
integer | Optional | Only sellers owning at least one wholesale product in this category id. |
subcategory_id
|
integer | Optional | Only sellers owning at least one wholesale product in this subcategory id. |
{
"data": [
{
"id": 42,
"business_name": "Baghdad Wholesale Co.",
"logo_url": "https://s3.amazonaws.com/gini/merchants/logos/42.png",
"address": "Baghdad - Karrada"
}
],
"links": {
"first": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog/sellers?page=1",
"last": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog/sellers?page=3",
"prev": null,
"next": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog/sellers?page=2"
},
"meta": {
"current_page": 1,
"last_page": 3,
"per_page": 15,
"total": 34
},
"categories": [
{
"id": 3,
"name": "Electronics",
"slug": "electronics",
"is_active": 1,
"image_url": "https://s3.amazonaws.com/gini/categories/electronics.jpg",
"icon_url": "https://s3.amazonaws.com/gini/categories_icons/electronics.png",
"subcategories": [
{
"id": 12,
"name": "Audio",
"slug": "audio",
"is_active": 1,
"image": "https://s3.amazonaws.com/gini/subcategories/audio.jpg"
}
]
}
]
}
Returns the wholesale-enabled products across every wholesale seller as a paginated collection newest-first. All query parameters are optional filters. List rows carry the seller (as client), the trimmed category, images, and the wholesale-priced variants without their attribute values. The same top-level categories tree is attached alongside the data.
/api/v1.0/third-party/wholesale/catalog
| Field | Type | Required | Description |
|---|---|---|---|
search
|
string | Optional | Fuzzy match against the product name (max 255 chars). |
category_id
|
integer | Optional | Filter products by category id. |
subcategory_id
|
integer | Optional | Filter products by subcategory id. |
client_id
|
integer | Optional | Filter products by the seller merchant id that owns them. |
{
"data": [
{
"id": 142,
"name": "Wireless Headphones",
"slug": "wireless-headphones",
"sku": "WH-2026-001",
"description": "Over-ear Bluetooth headphones with active noise cancellation.",
"b2b_price": "32000.00",
"b2b_min_quantity": 10,
"quantity": 500,
"category": {
"id": 3,
"name": "Electronics",
"slug": "electronics"
},
"client": {
"id": 42,
"business_name": "Baghdad Wholesale Co.",
"logo_url": "https://s3.amazonaws.com/gini/merchants/logos/42.png"
},
"image": "https://s3.amazonaws.com/gini/products/142/1.jpg",
"images": [
"https://s3.amazonaws.com/gini/products/142/1.jpg",
"https://s3.amazonaws.com/gini/products/142/2.jpg"
],
"variants": [
{
"id": 1167,
"sku": "WH-2026-001-RED",
"b2b_price": "33000.00",
"quantity": 120
}
]
}
],
"links": {
"first": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog?page=1",
"last": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog?page=8",
"prev": null,
"next": "https://merchant.gini.iq/api/v1.0/third-party/wholesale/catalog?page=2"
},
"meta": {
"current_page": 1,
"last_page": 8,
"per_page": 15,
"total": 118
},
"categories": [
{
"id": 3,
"name": "Electronics",
"slug": "electronics",
"is_active": 1,
"image_url": "https://s3.amazonaws.com/gini/categories/electronics.jpg",
"icon_url": "https://s3.amazonaws.com/gini/categories_icons/electronics.png",
"subcategories": [
{
"id": 12,
"name": "Audio",
"slug": "audio",
"is_active": 1,
"image": "https://s3.amazonaws.com/gini/subcategories/audio.jpg"
}
]
}
]
}
Returns the full detail of a single wholesale product, including its wholesale-priced variants with their attribute values. The {id} path segment is the numeric product id — there is no route-model binding, the product is looked up manually. Responds 404 when the id is not a wholesale product.
/api/v1.0/third-party/wholesale/catalog/{id}
{
"data": {
"id": 142,
"name": "Wireless Headphones",
"slug": "wireless-headphones",
"sku": "WH-2026-001",
"description": "Over-ear Bluetooth headphones with active noise cancellation.",
"b2b_price": "32000.00",
"b2b_min_quantity": 10,
"quantity": 500,
"category": {
"id": 3,
"name": "Electronics",
"slug": "electronics"
},
"client": {
"id": 42,
"business_name": "Baghdad Wholesale Co.",
"logo_url": "https://s3.amazonaws.com/gini/merchants/logos/42.png"
},
"image": "https://s3.amazonaws.com/gini/products/142/1.jpg",
"images": [
"https://s3.amazonaws.com/gini/products/142/1.jpg",
"https://s3.amazonaws.com/gini/products/142/2.jpg"
],
"variants": [
{
"id": 1167,
"sku": "WH-2026-001-RED",
"b2b_price": "33000.00",
"quantity": 120,
"attributes": [
{
"id": 5,
"product_variant_id": 1167,
"product_attribute_id": 5,
"value": "Red",
"name": "Color"
}
]
}
]
}
}