Get Token

URL Endpoint

Environment
Method
URL

Request Get Token

No
Name
Type
Mandatory
Min Length
Max Length
Description

1

reqDtime

String

M

1

14

Format yyyymmddhh24iiss (GMT+7)

2

requestType

String

M

1

8

Fill with 'getToken'

3

transNumber

String

M

1

100

Unique transaction ID from the partners (mitra)

4

signature

Alphanumeric(64)

M

1

64

Signature algorithm

Sample Request

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

Response Get Token

No
Name
Type
Mandatory
Min Length
Max Length
Description

1

statusCode

String

M

3

5

000 indicates success

2

statusDesc

String

M

1

100

Description of statusCode

3

tokenID

String

M

1

100

The Token obatained for accessing other APIs

4

tokenExpiry

String

M

1

18

tokenID validity period, format DD-MMM-YY HH24:MI:SS

5

processingTime

Float

M

1

20

API processing time in seconds

Sample Response

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.

Last updated