Invoices
GET/api/accounting/invoice
Invoices
Request
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
meta
object
required
total numberrequired
per_page numberrequired
current_page numberrequired
last_page numberrequired
first_page numberrequired
first_page_url stringrequired
last_page_url stringrequired
next_page_url stringnullablerequired
previous_page_url stringnullablerequired
data
object[]
required
number stringnullablerequired
order_number stringnullablerequired
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
status DocumentStatusEnum (string)required
Possible values: [draft
, sent
, paid
]
contact_id numbernullablerequired
Geçerli bir company_id olması gerekiyor
contact_name stringnullablerequired
contact_tax_number stringnullablerequired
contact_phone numbernullablerequired
contact_email stringnullablerequired
contact_address stringnullablerequired
issued_at timenullablerequired
due_at timenullablerequired
type DocumentTypeEnum (string)nullablerequired
Possible values: [invoice
, bill
]
Eğer invoice isteniyorsa invoice, bill isteniyorsa bill
discount_type DiscountTypeEnum (string)nullablerequired
Possible values: [fix
, percent
]
discount stringnullablerequired
created_by_id stringnullablerequired
created_at timerequired
updated_at stringrequired
id stringrequired
total numbernullablerequired
{
"meta": {
"total": 0,
"per_page": 0,
"current_page": 0,
"last_page": 0,
"first_page": 0,
"first_page_url": "string",
"last_page_url": "string",
"next_page_url": "string",
"previous_page_url": "string"
},
"data": [
{
"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
}
]
}
Loading...