# Generic API v1-beta
The /generic endpoints provide a flexible interface for handling business documents when a dedicated document-specific endpoint is not required. In v1-beta, these endpoints can be used to respond to generic payloads (for testing only).
WARNING
The generic response endpoint is intended for testing. In the normal MLS flow, eConnect sends the MLS automatically after successful delivery.
# Response
To send a response for a received document, use POST /api/v1-beta/generic/{documentId}/response.
{documentId}is the documentId of the received document.
This endpoint is used for flows such as sending a Peppol Message Level Status (MLS) back to the original sender.
Request body example:
{
"status": "RE",
"description": "Document could not be delivery due to connectivity errors.",
"lines": [
{
"statusReasonCode": "FD",
"description": "Socket exception"
}
]
}
Typical status values depend on the response flow. For MLS, examples include AP for accepted and RE for rejected.
← Hook SalesInvoice →