Update Invoice
PUT/api/accounting/invoice/:id
Update Invoice
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
number string
order_number string
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
status DocumentStatusEnum (string)required
Possible values: [draft
, sent
, paid
]
contact_id number
Geçerli bir company_id olması gerekiyor
contact_name string
contact_tax_number string
contact_phone number
contact_email string
contact_address string
issued_at time
due_at time
type DocumentTypeEnum (string)
Possible values: [invoice
, bill
]
Eğer invoice isteniyorsa invoice, bill isteniyorsa bill
discount_type DiscountTypeEnum (string)
Possible values: [fix
, percent
]
discount string
total number
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
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
{
"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...