Table of Contents
This API allows the user to retrieve details of a specific product belonging to a gig. The details include product name, description, price, images and other attributes.
Endpoint #
The Voomerr Get Gig Details endpoint is GET https://admin.voomerr.com/api/get_new_gig_detail.php
Request Parameters #
Parameter | Required | Description |
---|---|---|
user_id | Yes | The ID of the user requesting the gig details |
gig_id | Yes | The ID of the gig for which details are requested |
product_id | Yes | The ID of the product for which details are requested |
currency | Yes | The currency in which the gig details are to be returned |
Response Parameters #
The response from the API will be in JSON format and will contain the following fields:
Field | Description |
---|---|
success | Indicates whether the API request was successful or not. |
message | A message describing the status of the API request. |
gig | An object containing the gig details. |
product | An object containing the product details. |
The ‘gig’ object will have the following fields: #
Field | Description |
---|---|
gig_id | The ID of the gig. |
gig_name | The name of the gig. |
gig_description | A description of the gig. |
gig_image | The URL of the gig image. |
gig_category | The category of the gig. |
gig_subcategory | The subcategory of the gig. |
gig_price | The price of the gig. |
gig_currency | The currency in which the gig price is displayed. |
gig_delivery_time | The time it takes to deliver the gig. |
gig_reviews | The number of reviews for the gig. |
gig_rating | The average rating for the gig. |
gig_location | The location of the gig. |
The ‘product’ object will have the following fields: #
Field | Description |
---|---|
product_id | The ID of the product. |
product_name | The name of the product. |
product_description | A description of the product. |
product_image | The URL of the product image. |
product_price | The price of the product. |
product_currency | The currency in which the product price is displayed. |
Example Request #
bash
POST https://admin.voomerr.com/api/get_new_gig_detail.php
Content-Type: application/json
{
"user_id": "123456",
"gig_id": "789012",
"product_id": "345678",
"currency": "USD"
}
Example Response #
json
{
"success": true,
"message": "Gig details retrieved successfully.",
"gig": {
"gig_id": "789012",
"gig_name": "Sample Gig",
"gig_description": "This is a sample gig description.",
"gig_image": "https://example.com/gig_image.jpg",
"gig_category": "Web Programming",
"gig_subcategory": "Web Design",
"gig_price": "50.00",
"gig_currency": "USD",
"gig_delivery_time": "3 Days",
"gig_reviews": "10",
"gig_rating": "4.5",
"gig_location": "New York, USA"
},
"product": {
"product_id": "345678",
"product_name": "Sample Product",
"product_description": "This is a sample product description.",
"product_image": "https://example.com/product_image.jpg",
"product_price": "25.00",
"product_currency": "USD"
}
}