Withdraw a submission (pull the risk from marketing)
const url = 'https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/withdraw';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"producer_email":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/withdraw \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "producer_email": "example" }'Branches on placement state: an unfinalized draft is deleted on
the spot; a live placement becomes a withdrawal Hedge carries out
(notices to every engaged market, then the submission closes as
withdrawn); a submission with a bound policy cannot be withdrawn
here (409; request a change on the policy instead). Idempotent.
Requires the broker_submit scope. Machine credentials must name
producer_email in the body; per-user tokens send no body.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
REQUIRED when authenticating with a machine credential; the active portal user the withdrawal is attributed to.
Examplegenerated
{ "producer_email": "example"}Responses
Section titled “Responses”Accepted
object
Example
{ "outcome": "discarded"}Token lacks the broker_submit scope
Not found (or not your brokerage’s)
Bound policy (use a policy change request)
Missing/unknown producer_email for a machine credential
The withdrawal could not be started; retry