Fetch all gift card merchants
Details
Used to fetch all giftcard merchants.
URL : <base_url>/reseller/merchants
Method : GET
Authentication required : YES
Request parameters
In the request URL, provide the following parameters or query string with values.
Parameter | Type | Example | Description |
---|---|---|---|
page | integer | 1 | Used for pagination. |
query | string | Giftme | Used for searching. |
category_id | string | 1,2,3 | Used for searching. |
city_id | string | 1 | Used for searching. |
Success Response
Code : 200 OK
Content :
{
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 24,
"name": "Cleanstylehomedecor",
"logo_path": null,
"category_id": 2,
"handle": "cleanstylehomedecor",
"category_name": "Retail",
"locations": [
{
"id": 32,
"name": "Main location",
"city_id": 0,
"team_id": 24
}
]
},
{
"id": 20,
"name": "Closet Cloud",
"logo_path": "https://giftme.nyc3.digitaloceanspaces.com/gift-me/98f13708210194c475687be6106a3b84/logo.png",
"category_id": 2,
"handle": "closetcloud",
"category_name": "Retail",
"locations": [
{
"id": 28,
"name": "Main location",
"city_id": 0,
"team_id": 20
}
]
},
{
"id": 12,
"name": "Jan's Accents",
"logo_path": "https://giftme.nyc3.digitaloceanspaces.com/gift-me/c20ad4d76fe97759aa27a0c99bff6710/logo.png",
"category_id": 2,
"handle": "jansaccents",
"category_name": "Retail",
"locations": [
{
"id": 16,
"name": "92 Hope Rd, Kingston 6 - Liguanea",
"city_id": 0,
"team_id": 12
}
]
},
{
"id": 42,
"name": "My Carbys",
"logo_path": "https://giftme.nyc3.digitaloceanspaces.com/gift-me/a1d0c6e83f027327d8461063f4ac58a6/logo_1620666040.png",
"category_id": 2,
"handle": "mycarybys",
"category_name": "Retail",
"locations": [
{
"id": 56,
"name": "Twin Gates PLaza",
"city_id": 0,
"team_id": 42
}
]
}
],
"first_page_url": "https://api.giftme.dev/api/merchant/v1/reseller/merchants?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.giftme.dev/api/merchant/v1/reseller/merchants?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.giftme.dev/api/merchant/v1/reseller/merchants?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.giftme.dev/api/merchant/v1/reseller/merchants",
"per_page": 1000,
"prev_page_url": null,
"to": 4,
"total": 4
}
}