Tagih.id

Flow

You send the required parameters to make a request, and Tagih.id will respond in JSON format.

API URL

Environment URL
Sandbox
Port of HTTPS (443)
https://sandbox-api.espay.id/rest/pgtools/shortlink
Production
Port of HTTPS (443)
https://api-merchant.espay.id/rest/pgtools/shortlink

HTTP Header

Key Value
Method
POST
HTTP Version
HTTP/1.1
Accept
*/*
Content-Type
application/x-www-form-urlencoded
Content-Length
<dynamic>

Parameter Permintaan

Parameter Tipe Mandatory Keterangan
rq_uuid
String (64)
Y
Request identifier.Request identifier. A unique ID used to identify messages.

Format:
Recommendation UUID V.4
rq_datetime
String
Y
Date and time of the transaction request.

Format:
Y-m-d H:i:s

Example:
2024-12-16 14:30:45
data
String
Y
request data
comm_code
String (32)
Y
Merchant code from Espay team.

Example:
SGWYESSISHOP
id
String (32)
C
ID response shortlink.
This ID can be used by partners to update data.
Y: Yes, O: Optional, C: Conditional

Parameter Respons

Parameter Tipe Mandatory Keterangan
rq_uuid
String (64)
Y
Request identifier. A unique ID used to identify messages.
rs_datetime
String
Y
Date and time of the transaction response..

Format:
Y-m-d H:i:s

Example:
2024-12-16 14:30:45
error_code
String (4)
Y
Response code..

Format:
  • Success: 0000
  • Failure: XXXX
error_message
String
Y
Response description.
short_link
JSON
Y
The short_link used for the transaction.
This ID can be used by partners to update data.
Y: Yes, O: Optional, C: Conditional




































Contoh Permintaan - Setelah Enkripsi

POST /rest/pgtools/shortlink HTTP/1.1
Host: sandbox-api.espay.id
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Accept: */*

rq_uuid=TEST001&
rq_datetime=2025-06-30 08:31:06&
data=orderid%3DbU1YRlgwOW1Tb2U5dWw0TmpDQk5sZz09%26commcode%3DOE1IVDZuMzY2TzVUbVV6Nkx4ZVo2dz09%26amount%3DVHQzN2lpVnZ0RVFNSHM5Rng5eVA5Zz09%26datetime%3DWEVnZ1pxMWR1THJ5TTFoUzVLOEptVE03WTlDUGhmUHJrNG0xWFFFeFo4bz0%26detail%3DSHJuM2QrdlE4M3ViaDNNbHBweXpHRXBkenZkS2JhbjlOK1BjcnVGMEcyK3JUd0htcGVXVVcwUHVYblFoeit2S3FBNXZUcEh3UnRvbmdwa2dMRHNmWFRNaXhZdGZqMlpuL01xRVkyaG0zM1NCVUpDWS94MzhubDdJdXdKOG4xR2ZvbmNPSVhBTndEWTVtQ05HUnRDWk5RPT0%253D%26backurl%3DenZCRHFwRVlFdzNHanpSTHB4VzhQa3hVT2c3RmlaaTFVMWxZajA4TTZJTT0%253D%26signature%3DQUUrSWVDdGxXdFZ3VlN2SXZ0c0o2L2pVRUY5OHo1ejFFcEhJOU44aHpNZmJYSE5OcHpoS04vOXd1QlJwM0RMTWt1SjMvUmJqUlQ0ekxqQVBkOC9jK29kUU1qeE5BMWVqT0NOalJ5WXZIaDA9
password=4rfdtuywebGWDerZ7kqQgS5FUwrJskeM&
comm_code=SGWAUTOPEDIA
           


















Contoh Respons

{
    "rq_uuid": "TEST001",
    "rs_datetime": "2026-06-29 16:32:24",
    "error_code": "0000",
    "error_message": "",
    "short_link": "https://sandbox-portal.espay.id/paylink?id=3uqfuluut7"
}
              


Scroll to Top