Auto Direct Debit
Light Mode
Authorization
POST
{{bill24_domain}}/direct_debit/security/authorizeBill24 Implement this endpoint.
:::note
This endpoint is used to authorize users to obtain a token for accessing the API. if token expired you can use refreshToken
to get new token.
:::
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
token
string
required
Merchant token (provide by bill24)
clientId
string
required
Client id (provide by bill24)
secret
string
required
Client secret (provide by bill24)
refreshToken
string
optional
RefreshToken use to extend expireation date
Example
{
"token": "3687203e-1cf4-43de-8a1c-c2192248132a",
"clientId": "supplier_client",
"secret": "q<8X8Eu4,Lr[4sxn",
"refreshToken": ""
}
Request samples
Responses
Success(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: 3 months ago