Get invoice by identifier of submitted created request
POST/v2/ob/invoices/by-request-id/:id
Get invoice by identifier of submitted created request
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}
Identifier of submitted created request
Responses
- 200
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
Process result data if submitted request is SUCCESS
Possible values: [NOT_SUBMITTED
, SUBMITTED
, SUCCESS
, ERROR
, ACCEPTED
, REJECTED
, CANCELED
]
Tax authority submission status
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
]
Tax type: NONE | UNDECLARED | 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
]
The method used to pay the invoice: UNKNOWN | BANK_TRANSFER | CASH
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 of submitted request, is used for tracking processing status and fetch result of asynchronous processing
Possible values: [FAILED
, SUCCESS
, NEW
]
Submitted request processing status
error
object
Error is present if request is FAILED
{
"data": {
"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"
},
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "FAILED",
"error": {
"code": "string",
"message": "string"
}
}
Not Authorized
Not Allowed