{{baseUrl}}/requests

POST {{baseUrl}}/requests

Endpoint to instantiate a new service request. You can instantiate it (with 'state'='NEW') and then complete it via PATCH/requests or pass all the data immediately to have it processed by the system.

Request Body

{"documentId"=>"<string>", "state"=>"<string>", "search"=>{"field0"=>"<string>", "fieldN"=>"<string>"}, "callback"=>{"method"=>"<string>", "field"=>"<string>", "url"=>"<string>", "headers"=>{"key"=>"<string>"}, "data"=>"<object>"}, "notifyEmail"=>"<string>", "selectedOptions"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;documentId&quot;:&quot;6687eed51a241a5d1be0f9fa&quot;,&quot;search&quot;:{&quot;field0&quot;:&quot;12485671007&quot;},&quot;callback&quot;:{&quot;url&quot;:&quot;https://webhook.site/f24cec85-22e3-4f7c-8ec0-227b240daa42&quot;,&quot;field&quot;:&quot;data&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;headers&quot;:{&quot;test_header&quot;:&quot;some_string&quot;},&quot;data&quot;:{}},&quot;timestamps&quot;:{&quot;creation&quot;:1724416377,&quot;WAIT&quot;:1724416377,&quot;lastUpdate&quot;:1724416393},&quot;state&quot;:&quot;WAIT&quot;,&quot;readableSearch&quot;:{&quot;taxCode&quot;:&quot;12485671007&quot;},&quot;optionsPrice&quot;:0,&quot;selectedOptions&quot;:null,&quot;notifyEmail&quot;:null,&quot;name&quot;:&quot;Statuto&quot;,&quot;hasSearch&quot;:false,&quot;searchPrice&quot;:0,&quot;documentPrice&quot;:4.9,&quot;totalPrice&quot;:4.9,&quot;documents&quot;:null,&quot;resultId&quot;:null,&quot;results&quot;:null,&quot;id&quot;:&quot;66c881896de559cb65055392&quot;},&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}