{{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.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status OK
{
"data": [
{
"id": "est cillum fugiat voluptate",
"callbacks": [
{
"event": "Ut",
"url": "sunt in",
"auth_header": "ut magna consequat aliquip",
"field": "data"
},
{
"event": "ut non",
"url": "nulla aliquip esse sed",
"auth_header": "do ea",
"field": "data"
}
]
},
{
"id": "commodo id aute ullamco sed",
"callbacks": [
{
"event": "pariatur tempor officia sit",
"url": "nisi aliqua sunt",
"auth_header": "eiusmod deserunt voluptate sit",
"field": "data"
},
{
"event": "quis consectetur",
"url": "cillum magna ad dolor",
"auth_header": "aliqua do",
"field": "data"
}
]
}
],
"message": "dolore mollit",
"success": true,
"error": "sint id ex"
} |
ENDPOINTS