Hub Gateway API
Withdraw Application Withdraw a pending (applied) product application.
DELETE /api/hub/applications
Withdraw a pending application. Only an applied row is deleted; a row that
has already been decided (authorized / rejected) is left untouched and
returns 409. Idempotent — an unknown reseller or a non-existent application
resolves to withdrawn.
Parameter Data Type Required Description x-hub-api-keystring true Shared Hub service key.
Parameter Data Type Required Description hubCustomerIdstring true The distributor's Hub customer id. productIdstring true The product to withdraw the application for.
curl -X DELETE \
"https://<your-b2b-host>/api/hub/applications?hubCustomerId=hub_cust_1&productId=prod_123" \
-H "x-hub-api-key: $HUB_API_KEY "
Parameter Data Type Description productIdstring Echoed product id. statusstring withdrawn.
{ "productId" : "prod_123" , "status" : "withdrawn" }
Status Body When 200{ "productId": "prod_123", "status": "withdrawn" }Withdrawn, or nothing to withdraw (idempotent). 409{ "error": "Only pending applications can be withdrawn" }Row is already authorized / rejected. 400{ "error": "hubCustomerId and productId are required" }Missing query params. 401{ "error": "Unauthorized" }Bad or missing API key. 500{ "error": "Failed to withdraw application" }Unhandled server error.