Create Token
API to create token provides a bearer token for subsequent eInvoice calls. Client sends Basic Auth credentials over HTTPS and receives a token with an expiry time.
POST
https://einvoice-api-sandbox.sepay.vn/v1/token-u "<USERNAME>:<PASSWORD>" \ -H "Content-Type: application/json"
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | Basic | Required | Use Basic Auth with the provided |
Note
Send the request with an empty body. The access token is valid for 86400 seconds (24h) for subsequent eInvoice APIs.
| 401 | Unauthorized Incorrect Username or Password | — |