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

Đăng nhập lấy token

POST /<provider>/sign-in

API dùng để xác thực và lấy token truy cập cho các yêu cầu tiếp theo.

Headers

NameRequiredDescription
Content-Typeapplication/json
X-Tax-CodeMã số thuế người bán (cửa hàng...)

Body Parameters

NameRequiredDescription
usernameTên đăng nhập
passwordMật khẩu

Response

NameDescription
successAPI thực thi thành công hay không
tokenThông tin token truy cập vào hệ thống
messageThông báo tổng quan (nếu có)
error_codeMã lỗi (nếu có)
errorsDanh sách lỗi (nếu có)
curl --location 'https://stag-invoice-hub.atomsolution.vn/m-invoice/sign-in' \
--header 'x-tax-code: 0106026495-998' \
--header 'Content-Type: application/json' \
--data-raw '{"username":"ATOM","password":"Kythuat@123"}'