Skip to main content

Get Token

URL Endpoint

EnvironmentMethodURL
DevelopmentPOSThttps://demos.finnet.co.id/apicobrand/security/getToken
ProductionPOST

Request Get Token

NoNameTypeMandatoryMin LengthMax LengthDescription
1 reqDtimeStringM114Format yyyymmddhh24iiss (GMT+7)
2 requestTypeStringM18Fill with 'getToken'
3 transNumberStringM1100Unique transaction ID from the partners (mitra)
4 signatureAlphanumeric(64)M164Signature algorithm

Sample Request

{ 
"reqDtime": "20240821142750",
"requestType": "getToken",
"transNumber": "TKN212418241627519329",
"signature": "C851DDC730549FEAFDFFD486AC11F3BF0C9CE44F0190C7DDC5FFDC622782E91D"
}

Response Get Token

NoNameTypeMandatoryMin LengthMax LengthDescription
1 statusCodeStringM35000 indicates success
2 statusDescStringM1100Description of statusCode
3 tokenIDStringM1100The Token obatained for accessing other APIs
4 tokenExpiryStringM118tokenID validity period, format DD-MMM-YY HH24:MI:SS
5 processingTimeFloatM120API processing time in seconds

Sample Response

{ 
"statusCode": "000",
"statusDesc": "Berhasil",
"tokenID": "20240821162411771B7219C0DB6E6374075F8E7D28D89AE9F7905E73E01202365345C5A965574D",
"tokenExpiry": "24-AUG-24 16:23:30",
"processingTime": 0.11939597129821777
}

Obtaining a Token

  1. Perform a POST request to the getToken endpoint in the staging environment to obtain a tokenID.
  2. If you receive a response with a false signature, copy the response, insert the true signature into the body, and then resend the request.