Chuyển tới nội dung chính
Phiên bản: Next

Ký hóa đơn

POST /<provider>/sign-contract

API dùng để ký hóa đơn gửi sang Cơ quan thuế.

Headers

NameRequiredDescription
AuthorizationBearer token_truy_cap
Content-Typeapplication/json
X-Tax-CodeMã số thuế của người bán.

Body Parameters

NameRequiredDescription
idsid hóa đơn (trả về trong từng phần tử của danh sách hóa đơn).
inv.staxMã số thuế người bán.
inv.start_dateNgày xuất hóa đơn.
inv.end_dateNgày xuất hóa đơn.
curl --location 'https://stag-invoice-hub.atomsolution.vn/m-invoice/sign-contract' \
--header 'authorization: Bearer O87316arj5+Od3Fqyy5hzdBfIuPk73eKqpAzBSvv8sY=' \
--header 'x-tax-code: 0106026495-998' \
--header 'Content-Type: application/json' \
--data '{
"id": "3a1baffc-e577-a496-8a02-35145559c213",
"inv": {
"stax": "0106026495-998",
"start_date": "2025-08-12",
"end_date": "2025-08-12"
}
}'