curl --request POST \
--url https://dev-billing-api.iqraa.ai/api/v1/api/v1/invoices-templates/preview \
--header 'Content-Type: application/json' \
--header 'X-Preferred-Language: <x-preferred-language>' \
--header 'x-admin-api-key: <x-admin-api-key>' \
--data '
{
"templateId": "550e8400-e29b-41d4-a716-446655440000",
"previewData": {
"invoiceNumber": "INV-2023-001",
"description": "Monthly subscription fee",
"amount": 99.99,
"currency": "USD",
"planName": "Premium Plan",
"customerName": "John Doe",
"customerEmail": "[email protected]",
"startDate": "2023-01-01T00:00:00Z",
"renewalDate": "2023-02-01T00:00:00Z",
"paymentTerms": 30
}
}
'