The Voomerr Reject Offer API allows users to reject an offer. The API accepts an offer ID and the user ID who created the offer, and returns a response indicating whether the offer was successfully rejected or not.
Endpoint #
The Voomerr Reject Offer API endpoint is POST https://admin.voomerr.com/api/reject_offer.php
Request Parameters #
The following parameters are required to reject an offer:
Parameter | Type | Required | Description |
---|---|---|---|
offer_created_by | string | Yes | The ID of the user who created the offer. |
offer_id | string | Yes | The ID of the offer that the user wants to reject. |
Example Request #
POST https://admin.voomerr.com/api/reject_offer.php
{
"offer_created_by": "987654321",
"offer_id": "123456789"
}
Response #
The response from the API will contain a JSON object with the following fields:
Field | Type | Description |
---|---|---|
success | boolean | Whether the request was successful or not. |
message | string | A message indicating the success or failure of the request. |
If the request is successful, the ‘success’ field will be ‘true’, and the ‘message’ field will contain a success message indicating that the offer was successfully rejected. If the request fails, the ‘success’ field will be ‘false’, and the ‘message’ field will contain an error message indicating that the rejection of the offer has failed.
Example Response #
{
"success": true,
"message": "Offer rejected successfully!"
}