curl -X POST "https://app.carierp.com/api/open/v1/invoices" \
-H "Authorization: Bearer $CARIERP_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: siparis-10452" \
-d '{
"type": "satis",
"contact": {
"name": "Ayşe Yılmaz",
"first_name": "Ayşe",
"last_name": "Yılmaz",
"tax_number": "11111111111",
"email": "[email protected]",
"billing_address": {
"line": "Atatürk Cad. No: 5",
"district": "Çankaya",
"city": "Ankara"
}
},
"series": "WHM",
"order_no": "WHMCS-10452",
"prices_include_vat": false,
"lines": [
{
"description": "Profesyonel hosting (06.11.2026 - 05.11.2027)",
"quantity": "1",
"unit_price": "1200.00",
"vat_rate": "20"
}
],
"issue": true,
"send": true,
"payment": {
"account_id": "3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e01",
"method": "kredi_karti"
}
}'
{
"id": "3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e01",
"object": "invoice",
"type": "satis",
"status": "odendi",
"number": "WHM2026000000123",
"series": "WHM",
"issue_date": "2026-11-06",
"issue_time": "12:30:00",
"due_date": "2026-11-06",
"currency": "TRY",
"exchange_rate": "1",
"contact": {
"id": "7b2e9c41-0d3a-4f5e-8b6c-1a2b3c4d5e6f",
"name": "Örnek Bilişim Ltd. Şti.",
"tax_number": "1234567890"
},
"order_no": "WHMCS-10452",
"notes": null,
"e_document_type": "earsiv",
"scenario": "EARSIVFATURA",
"ettn": "0f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a",
"totals": {
"subtotal": "1200.00",
"discount": "0.00",
"net": "1200.00",
"vat": "240.00",
"withholding": "0.00",
"total": "1440.00",
"payable": "1440.00",
"paid": "1440.00",
"remaining": "0.00"
},
"lines": [
{
"id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
"line_no": 1,
"product_id": null,
"description": "Profesyonel hosting (06.11.2026 - 05.11.2027)",
"quantity": "1",
"unit": "adet",
"unit_price": "1200.00",
"discount_amount": "0.00",
"net_amount": "1200.00",
"vat_rate": "20",
"vat_amount": "240.00",
"vat_exemption_code": null,
"withholding_code": null,
"withholding_amount": "0.00",
"total": "1440.00"
}
],
"e_document": {
"id": "3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e01",
"type": "earsiv",
"status": "kabul",
"status_label": "Raporlandı",
"provider_status": "kabul",
"number": "WHM2026000000123",
"ettn": "0f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a",
"scenario": "EARSIVFATURA",
"response_deadline": null,
"message": null,
"sent_at": "2026-11-06T09:30:00.000Z",
"updated_at": "2026-11-06T09:30:00.000Z"
},
"pdf_url": "https://app.carierp.com/api/open/v1/public/invoices/3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e01/pdf?s=Qm9yYy1hbGFjYWstaGVwLWd1bmNlbA",
"issued_at": "2026-11-06T09:30:00.000Z",
"sent_at": "2026-11-06T09:30:00.000Z",
"cancelled_at": null,
"cancel_reason": null,
"created_at": "2026-11-06T09:30:00.000Z",
"updated_at": "2026-11-06T09:30:00.000Z",
"send_error": null
}