Get invoice by invoice id
POST/v2/ob/invoices/:id
Get invoice by invoice id
Request
Path Parameters
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Invoice Id
Responses
- 200
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [NOT_SUBMITTED
, SUBMITTED
, SUCCESS
, ERROR
, ACCEPTED
, REJECTED
, CANCELED
]
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Unique identifier for the invoice
consumer
object
Information about the consumer related to the invoice
Possible values: <= 255 characters
Customer code
Possible values: <= 255 characters
Customer name
Possible values: <= 14 characters
Customer tax code
Possible values: <= 255 characters
Customer address
Possible values: <= 12 characters
Customer citizen identification card
Possible values: <= 20 characters
Customer phone number
Possible values: <= 255 characters
Buyer's name
Possible values: <= 255 characters
Buyer's bank account information
Unique code for identifying the invoice, used to look up invoices
The date when the invoice was created
The serial number of the invoice
The date when the invoice was issued
invoice_lines
object[]
List of individual items or services included in the invoice
Possible values: <= 255 characters
Product code
Possible values: <= 500 characters
Product name
Possible values: <= 255 characters
Unit of Product
Product price
Number of products purchased
Total tax payable
Possible values: [UNDECLARED
, NONE
, ZERO
, FIVE
, EIGHT
, TEN
]
Amount = (price * quantity) - discount_amount
Discount money
Is promotional item
invoice_amount
object
The total amount for the invoice
amount_by_vat
object
Total amount grouped by VAT
tax_amount_by_vat
object
Tax amount grouped by VAT
Total tax amount
Total amount before tax
Total amount
The last date when the invoice was updated
Indicate whether the invoice has a code or not
Tax authority code
The full symbol representing the invoice
Possible values: [CASH
, BANK_TRANSFER
, UNKNOWN
]
{
"authority_status": "NOT_SUBMITTED",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"consumer": {
"code": "string",
"name": "string",
"tax_code": "string",
"address": "string",
"citizen_identification": "string",
"phone": "string",
"buyer_name": "string",
"bank_account": "string"
},
"code": "string",
"created_date": "2022-03-10T16:15:50Z",
"serial_number": "string",
"date_of_issue": "2022-03-10T16:15:50Z",
"invoice_lines": [
{
"code": "string",
"name": "string",
"unit": "string",
"price": 0,
"quantity": 0,
"tax_amount": 0,
"vat_rate": "UNDECLARED",
"amount": 0,
"discount_amount": 0,
"promoted": true
}
],
"invoice_amount": {
"amount_by_vat": {},
"tax_amount_by_vat": {},
"vat_amount": 0,
"subtotal": 0,
"total": 0
},
"updated_date": "2022-03-10T16:15:50Z",
"has_tax_authorities": true,
"tax_code_issued": "string",
"full_symbol": "string",
"payment_method": "CASH"
}
Not Authorized
Not Allowed