Bill24 Hosted
Light Mode
Authorization
POST
https://merchantapi-demo.bill24.io/merchantsecurity/authorizeThis endpoint is used to authorize users to obtain a token for accessing the API.
:::note
Merchant is required to initiate an authorization process to obtain a token for accessing all API endpoints.
if token expired you can use refreshToken
to get new token.
Required fields: client_id
secret
refreshToken
Request
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
Body Params application/json
token
string
required
Merchant token (provided by Bill24
clientId
string
required
ClientId (provided by Bill24)
secret
string
required
Secret (provided by Bill24)
refreshToken
string
optional
RefreshToken use to extend expiration date
Example
{
"token": "3687203e-1cf4-43de-8a1c-c2192248132a",
"clientId": "supplier_client",
"secret": "q<8X8Eu4,Lr[4sxn",
"refreshToken": ""
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
optional
message
string
optional
data
object
optional
issuer
string
required
token
string
required
refreshToken
string
required
tokenExpireTime
string
required
Example
{
"code": 200,
"message": "",
"data": {
"issuer": "http://192.168.197.18:23030",
"token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjZCOUY3RDZBMjA2MTQxQzkzQ0I2NEVFNjRGOTBBNUQwQTQzO",
"refreshToken": "65EE30E135B51D343F077738345CBDEEA66A3A796494F172DCF2EE6C9C1E0B7B",
"tokenExpireTime": "2024-06-24T14:46:07.8930774+07:00"
}
}
Last modified: 4 months ago