AI Search

Delete Deal

Use the API to delete (expire) a deal from the InMobi platform using its unique ID. This action marks the deal as inactive and prevents it from being served.

API Endpoint

DELETE https://apis.demand.ssp.inmobi.com/v1/deals?deal_id=<deal_id>

Parameters

Headers

Field Name Type Is mandatory (Y/N)? Description
Authorization String Y Bearer token for authentication (Bearer <token>)
X-USER-ID String Y The ID of the user making the request
X-INMOBI-ORG-ID String Y The organization ID associated with the user
Content-Type String Y Specifies the media type of the request body. Use: application/json

Query Parameters

Field Name Type Is mandatory (Y/N)? Description
deal.id String Y The unique ID of the deal to be deleted.

Sample Request

curl -X DELETE "https://apis.demand.ssp.inmobi.com/v1/deals?deal_id=4263509453" \
-H "Authorization: Bearer <your bearer token>" \
-H "X-USER-ID: <test app>" \
-H "X-INMOBI-ORG-ID: <your org id>" \
-H "Content-Type: application/json"

Response

{
  "data": {
    "id": "4263509453",
    "message": "Deleted successfully"
  }
}

This confirms the deal was successfully marked as inactive and removed from active use.

Error Codes

For more information, see Error Codes.

On This Page

Last Updated on: 18 Jul, 2025