Get Counter Offer

This API endpoint allows a user to retrieve all counter offers made for their service requests.

Endpoint #

The Voomerr Get Counter Offer endpoint is POST https://admin.voomerr.com/api/get_counter_offers.php

Request Parameters #

Parameter Type Description
user_id int Required. The ID of the user who created the service request.
currency string Optional. The currency of the service request.

Response Parameters #

Parameter Type Description
id int The ID of the counter offer.
service_id int The ID of the service request for which the counter offer was made.
user_id int The ID of the user who made the counter offer.
offer_amount float The amount of the counter offer.
currency string The currency of the counter offer.
description string The description provided by the user who made the counter offer.
created_at string The date and time when the counter offer was made, in Y-m-d H:i:s format.
service_title string The title of the service request for which the counter offer was made.
username string The username of the user who made the counter offer.
user_image string The URL of the user’s profile image.
request_image string The URL of the service request’s image.
distance float The distance between the user who made the counter offer and the location of the service request, in kilometers. If not provided, 0.0.

Request Example #

json
{
"user_id": 12345,
"currency": "USD"
}

Response Example #

json
{
"success": true,
"data": [
{
"id": 123,
"service_id": 456,
"user_id": 789,
"offer_amount": 50.0,
"currency": "USD",
"description": "I can provide this service for you at a lower cost.",
"created_at": "2022-02-01 09:30:00",
"service_title": "Need a logo design for my business",
"username": "john_doe",
"user_image": "https://example.com/user/image.png",
"request_image": "https://example.com/service/request/image.png",
"distance": 12.5
},
{
"id": 124,
"service_id": 457,
"user_id": 790,
"offer_amount": 75.0,
"currency": "USD",
"description": "I have experience in this field and can offer a high-quality service.",
"created_at": "2022-02-03 15:45:00",
"service_title": "Looking for a web developer to create my website",
"username": "jane_doe",
"user_image": "https://example.com/user/image2.png",
"request_image": "https://example.com/service/request/image2.png",
"distance": 8.2
}
]
}

Powered by BetterDocs