Deletes a document payment. If the payment belongs to an invoice of type payment_receipt, the endpoint returns 422 and the delete does not happen.
payment_receipt
422
cURL
curl --request DELETE \ --url https://app.fintoro.sk/api/public/v1/document-payments/{documentPayment} \ --header 'Authorization: Bearer <token>'
{ "message": "This action is unauthorized." }
Bearer token created for a specific company in Integrations → API.
Document payment ID.
801
Document payment deleted.