Create Bill
POST/api/accounting/bill
Create Bill
Request
Header Parameters
- application/json
Body
Possible values: [EUR
, USD
, GBP
, TRY
]
Possible values: [draft
, sent
, paid
]
Geçerli bir company_id olması gerekiyor
Possible values: [invoice
, bill
]
Eğer invoice isteniyorsa invoice, bill isteniyorsa bill
Possible values: [fix
, percent
]
items
array
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [EUR
, USD
, GBP
, TRY
]
Possible values: [draft
, sent
, paid
]
Geçerli bir company_id olması gerekiyor
Possible values: [invoice
, bill
]
Eğer invoice isteniyorsa invoice, bill isteniyorsa bill
Possible values: [fix
, percent
]
items
array
required
company
get_company
Possible values: <= 25 characters
working_hours
object
employees
object[]
required
meta
object
required
pivot_working_hours
object
nullable
required
package
object
required
Possible values: [yearly
, monthly
]
Possible values: [subscription
, email
, sms
]
{
"number": "string",
"order_number": "string",
"currency": "EUR",
"status": "draft",
"contact_id": 0,
"contact_name": "string",
"contact_tax_number": "string",
"contact_phone": 0,
"contact_email": "string",
"contact_address": "string",
"issued_at": "string",
"due_at": "string",
"type": "invoice",
"discount_type": "fix",
"discount": "string",
"created_by_id": "string",
"created_at": "string",
"updated_at": "string",
"id": "string",
"total": 0,
"items": [
null
],
"company": {
"id": "string",
"whitelabel_id": 0,
"code": "string",
"slug": "string",
"name": "string",
"about": "string",
"address": "string",
"email": "string",
"created_at": "string",
"updated_at": "string",
"country_id": 0,
"package_id": 0,
"valid_until": "string",
"phone": 0,
"full_phone": 0,
"cf_vendor": {},
"cf_customer": {},
"settings": {},
"cf_reservation": {},
"modules": [
"string"
],
"city": "string",
"working_hours": {
"monday": "07:30-18:00",
"tuesday": "07:30-18:00",
"wednesday": "07:30-18:00",
"thursday": "07:30-18:00",
"friday": "07:30-18:00",
"saturday": "07:30-18:00",
"sunday": "07:30-18:00"
},
"last_payment": "2024-08-12T09:09:28.099Z",
"employees": [
{
"id": "1",
"email": "[email protected]",
"name": "Test",
"surname": "User 1",
"language": "en",
"phone_number": "+90123123213",
"remember_me_token": true,
"birthday": "1990-01-01",
"created_at": "2024-02-20T19:18:45.782+03:00",
"updated_at": "2024-04-11T01:11:24.889+03:00",
"timezone": "Europe/Istanbul",
"meta": {
"pivot_working_hours": {
"monday": "07:30-18:00",
"tuesday": "07:30-18:00",
"wednesday": "07:30-18:00",
"thursday": "07:30-18:00",
"friday": "07:30-18:00",
"saturday": "07:30-18:00",
"sunday": "07:30-18:00"
},
"pivot_company_id": "string",
"pivot_user_id": "string",
"pivot_is_admin": true,
"pivot_is_active": true,
"pivot_created_at": "string",
"pivot_updated_at": "string"
}
}
],
"package": {
"id": 0,
"name": "string",
"price": 0,
"currency": "string",
"whitelabel_id": 0,
"modules": [
"string"
],
"created_at": "2024-08-12T09:09:28.099Z",
"updated_at": "2024-08-12T09:09:28.099Z",
"interval": "yearly",
"type": "subscription",
"code": "string",
"quantity": 0
}
}
}