Convert invoice
PUT/v2/invoices/:id/convert
Convert invoice
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
- application/json
Body
Converter name
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
Buyer's Name | Purchasing Unit. Required if it is a warehouse release note
Possible values: <= 255 characters
Customer name
Possible values: <= 14 characters
Customer tax code. Required if it is a warehouse release note
Possible values: <= 255 characters
Customer address. Required if it is a warehouse release note
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
Customer email
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
]
Possible values: [VND
, USD
]
Exchange rate
Economic Contract Number: Only applicable for warehouse release note sent to agents and is required
Transporter's Full Name:Only applicable for warehouse release note. Required for warehouse release note sent to agents.
Contract Number: Only applicable for warehouse release note
Issuer's Full Name: Only applicable for warehouse release note
Transportation Vehicle: Only applicable for warehouse release note. Required for internal warehouse release note
Internal Transfer Order: Only applicable for internal warehouse release note
{
"authority_status": "NOT_SUBMITTED",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"consumer": {
"code": "string",
"organization_name": "string",
"name": "string",
"tax_code": "string",
"address": "string",
"citizen_identification": "string",
"phone": "string",
"buyer_name": "string",
"bank_account": "string",
"email": "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",
"payment_currency": "VND",
"exchange_rate": 0,
"digital_economic_contract": "string",
"deliverer": "string",
"contract_no": "string",
"consignee": "string",
"means_of_transportation": "string",
"order": "string"
}
Not Authorized
Not Allowed