{{baseUrl}}/api_configurations

POST {{baseUrl}}/api_configurations

Create the configurations of your callback endpoints.

All the notifications received by SDI will be dispatched to your configured endpoints.
The `fiscal_id` is the unique identifier of the business that you want to configure.

You can create separate endpoints for each event: the event code can be one of `supplier-invoice`, `customer-invoice`, `invoice-status-quarantena`,`invoice-status-invoice-error`, `customer-notification`, `legal-storage-missing-vat`, `legal-storage-receipt` You will need to create a single API configuration with all the necessary endpoints. Every time you create an API configuration it overwrites the previous one.

Request Body

{"fiscal_id"=>"<string>", "callbacks"=>[{"event"=>"<string>", "url"=>"<string>", "auth_header"=>"<string>", "field"=>"<string>"}, {"event"=>"<string>", "url"=>"<string>", "auth_header"=>"<string>", "field"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;id&quot;:&quot;est cillum fugiat voluptate&quot;,&quot;callbacks&quot;:[{&quot;event&quot;:&quot;Ut&quot;,&quot;url&quot;:&quot;sunt in&quot;,&quot;auth_header&quot;:&quot;ut magna consequat aliquip&quot;,&quot;field&quot;:&quot;data&quot;},{&quot;event&quot;:&quot;ut non&quot;,&quot;url&quot;:&quot;nulla aliquip esse sed&quot;,&quot;auth_header&quot;:&quot;do ea&quot;,&quot;field&quot;:&quot;data&quot;}]},{&quot;id&quot;:&quot;commodo id aute ullamco sed&quot;,&quot;callbacks&quot;:[{&quot;event&quot;:&quot;pariatur tempor officia sit&quot;,&quot;url&quot;:&quot;nisi aliqua sunt&quot;,&quot;auth_header&quot;:&quot;eiusmod deserunt voluptate sit&quot;,&quot;field&quot;:&quot;data&quot;},{&quot;event&quot;:&quot;quis consectetur&quot;,&quot;url&quot;:&quot;cillum magna ad dolor&quot;,&quot;auth_header&quot;:&quot;aliqua do&quot;,&quot;field&quot;:&quot;data&quot;}]}],&quot;message&quot;:&quot;dolore mollit&quot;,&quot;success&quot;:true,&quot;error&quot;:&quot;sint id ex&quot;}