# Example
# Request:
$ curl -X POST 'https://api.makedocs.pro/v1/YOUR_USER_ID' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"template_id": "123e4567-e89b-12d3-a456-426655440000",
"parties": {
"seller": {
"legal_name": "Your Store Inc.",
"address": "123 Tech Street, San Francisco, CA, 94102",
"country": "US",
"taxId_vatNumber": "12-3456789",
"contact_email": "billing@yourstore.com",
"website": "https://yourstore.com",
"logo": "https://yourstore.com/logo.png"
},
"buyer": {
"buyer_type": "person",
"person_name": "John Smith",
"billing_address": "321 Resident Street, San Francisco, CA, 94189",
"country": "US",
"email": "personemail@gmail.com"
},
},
"invoice_data": {
"invoice_number": "LU5YU5GVAEUI",
"issue_date": "01 Nov 2025",
"due_date": "01 Nov 2025",
"amount": "74,89",
"currency": "USD",
"items": {
"total": "74,89",
"total_tax_vat_included": "",
"item_1": {
"id": "48110458999000",
"item_type": "digital",
"description": "Monthly plan",
"price": "74,89",
"qty": "1",
"tax_vat_rate_included": "",
"period": "01 Nov 2025 - 01 Dec 2025"
}
},
"payment_data": {
"payment_link": "https://invoice.paymentservice.com/PAYMENT_ID"
},
}
}
# Response: PDF document ready instantly