Add New Gigs

This API is used to add new gigs. It requires authentication using the user’s ID. The request is sent via HTTP POST method and the response will be in JSON format.

Endpoint #

The Voomerr Add New Gig Products endpoint is POST https://admin.voomerr.com/api/add_gigs2.php

Request Parameters #

Parameter Required Description
user_id Yes The ID of the user who is adding the gig.
product_image[] Yes An array of product images (in base64-encoded string format) to be uploaded.
total_price Yes The total price of the gig.
buying_cost Yes The buying cost of the product.
product_price Yes The selling price of the product.
product_name Yes The name of the product.
product_description Yes A short description of the product.
errand_address Yes The address where the errand needs to be performed.
errand_lat Yes The latitude of the location where the errand needs to be performed.
errand_long Yes The longitude of the location where the errand needs to be performed.
delivery_type Yes The delivery type of the gig (e.g. pick-up, drop-off, both).
currency Yes The currency in which the gig price is expressed.
product_type Yes The type of the product (e.g. food, clothing, electronics).
is_draft No If set to “1”, the gig will be saved as a draft and will not be publicly visible. Default is “0” (not a draft).

Response Parameters #

Field Type Description
success boolean Indicates whether the operation was successful or not.
message string A message describing the result of the operation (e.g. “Gig added successfully”).
gig_id string The ID of the newly added gig.
If the operation was unsuccessful, the API will return a JSON response with the following fields: #
Field Type Description
success boolean Indicates whether the operation was successful or not.
message string A message describing the error that occurred (e.g. “Error adding gig. Please try again later”).

Example Request #

json
POST https://admin.voomerr.com/add_gigs2.php
{
"user_id": "123456",
"product_image": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"total_price": "50",
"buying_cost": "30",
"product_price": "40",
"product_name": "My awesome gig",
"product_description": "This is a description of my awesome gig",
"errand_address": "123 Main St, Anytown, USA",
"errand_lat": "37.7749",
"errand_long": "-122.4194",
"delivery_type": "pickup",
"currency": "USD",
"product_type": "physical",
"is_draft": false
}

Example Response #

json
{
"success": true,
"message": "Gig added successfully.",
"gig_id": "789012"
}

Powered by BetterDocs