LinkAja
Last updated
Last updated
DOKU API
Legacy DocumentationDOKU has partnered with various e-money providers and one of them is Link Aja to provide E-Money Payment. Learn more about how DOKU can help you integrate with Link Aja here.
Here is the overview of how to integrate with Link Aja:
Generate request
Complete payment in Link Aja App
Acknowledge payment result
To generate request, you will need to hit this API through your Backend :
API Request
Here is the sample of request header to create an order:
Here is a sample of request body to create an order:
Request Body Explanation
API Response
After hitting the above API request, DOKU will give the response.
Here is the sample of response body:
After the customer completed the payment, they will be redirected to the defined redirect.url that you set on the API request.
DOKU will send HTTP Notification to your defined Notification URL
. Learn how to handle the notification from DOKU:
Type | Value |
---|---|
Parameter | Description |
---|---|
Parameter | Type | Mandatory | Description |
---|---|---|---|
Type | Value |
---|---|
Parameter | Description |
---|---|
Parameter | Type | Mandatory | Description |
---|---|---|---|
HTTP Method
POST
API endpoint (Sandbox)
https://api-sandbox.doku.com/linkaja-emoney/v2/ServiceRequestPayment
API endpoint (Production)
https://api.doku.com/linkaja-emoney/v2 /ServiceRequestPayment
Client-Id
Client ID retrieved from DOKU Back Office
Request-Id
Unique random string (max 128 characters) generated from merchant side to protect duplicate request
Request-Timestamp
Timestamp request on UTC time in ISO8601 UTC+0 format. It means to proceed transaction on UTC+7 (WIB), merchant need to subtract time with 7. Ex: to proceed transaction on September 22th 2020 at 08:51:00 WIB, the timestamp should be 2020-09-22T01:51:00Z
Signature
Security parameter that needs to be generated on merchant Backend and placed to the header request to ensure that the request is coming from valid merchant. Please refer to this section to generate the signature
order.invoice_number
string
Mandatory
Merchant's designated transaction invoice number
Allowed chars: alphabetic, numeric, special chars
order.amount
number
Mandatory
Transaction amount
Allowed chars: numeric
order.callback_url
string
Mandatory
Merchant URL that will redirected to after the order completed
order.line_items
string
Mandatory
Information about customer's basket (item's name, price, and quantities)
customer.name
string
Optional
Information about customer's name
customer.email
string
Optional
Information about customer's email
customer.phone
number
Optional
Information about customer's phone
additional_info.override_notification_url
string
Optional
This parameter is intended to override the configured Notification URL with another URL. Click here for more information.
HTTP Status
200
Result
SUCCESS
Client-Id
Same as the request
Request-Id
Same as the request
Request-Timestamp
Timestamp Response on UTC with format ISO8601 UTC+0 from DOKU
Signature
Signature generated by DOKU based on the response body
order.invoice_number
string
Mandatory
Same as the request
order.amount
number
Mandatory
Same as the request
emoney_configuration.identifier
string
Mandatory
Merchant identifier by Link Aja
Max length: 15
Allowed chars: alphabetic, numeric
emoney_payment.redirect_method_http
string
Mandatory
HTTP redirect method by Link Aja
Max length: 8
Allowed chars: alphabetic, numeric
emoney_payment.redirect_url_http
string
Mandatory
Merchant's redirect URL
emoney_payment.status
string
Mandatory
Status of the create order request
Possible value: PENDING
, SUCCESS
.
emoney_payment.parameter
string
Mandatory
Custom message
additional_info.override_notification_url
string
Optional
Same as the request