Create an invoice for customer
Body Required
-
order_type string
Values are
course
ororder
. -
Resource ID
-
options array[object]
POST
/customer_invoices
curl \
-X POST https://api.zooza.app/v1/customer_invoices \
-H "Content-Type: application/json" \
-d '{"order_type":"course","options":[{}]}'
Request examples
{
"order_type": "course",
"options": [
{}
]
}
Response examples (200)
{
"id": 42,
"invoice_no": 42,
"order_id": 42,
"order_type": "course",
"company_id": 42,
"box_id": 42,
"faktury_online_error_code": 42,
"faktury_online_code": "string",
"created": "2024-05-04T09:42:00+00:00",
"updated": "2024-05-04T09:42:00+00:00",
"options": {
"date": "2024-05-04",
"text": "string",
"payment_method": "hotovost"
},
"invoice_data": {
"d": {
"d_name": "string",
"d_street": "string",
"d_city": "string",
"d_state": "string",
"d_zip": "string",
"d_ico": "string",
"d_dic": "string",
"d_icdph": "string",
"d_vatpayer": "string",
"d_viewpayer": "string",
"d_iban": "string",
"d_email": "string",
"d_web": "string",
"d_phone": "string"
},
"o": {
"o_name": "string",
"o_street": "string",
"o_email": "string",
"o_phone": "string"
},
"f": {
"f_number": 42,
"f_vs": 42,
"f_qr": 42,
"f_payment": "string",
"f_paid": 42,
"f_date_issue": "2024-05-04",
"f_date_delivery": "2024-05-04"
},
"p": [
{
"p_text": "string",
"p_quantity": 42,
"p_unit": "string",
"p_price": 42
}
],
"key": "string",
"email": "string"
}
}