POST
/invoiceMaak factuur
Aanmaken van een invoice + betaal-URL. Optioneel een ticket nummer voor GKS-koppeling.
Request body
{
"amount": 12.50,
"currency": "EUR",
"description": "Cafe consumptie",
"vat_rate": 21,
"customer_email": "gast@voorbeeld.be",
"gks_ticket_no": "12345"
}Response (200)
{
"invoice_id": "inv_5f3a",
"pay_url": "https://pay.mollie.com/...",
"pdf_url": "https://digitalfarmers.be/api/v1/tinypay/invoice/inv_5f3a.pdf"
}Voorbeeld
curl -X POST https://digitalfarmers.be/api/v1/tinypay/invoice \
-H "Authorization: Bearer YOUR_KEY" \
-d '{"amount":12.50,"currency":"EUR","description":"Cafe consumptie"}'