Tagih.id

Create Member

Create Member adalah layanan dari Tagih.id  is a service from Tagih.id that simplifies the process of create member.

Sebelum Integrasi
Make sure you have received the credentials from the Espay team.
 
Langkah Integrasi

You can use the following steps to integrate with Create Member.

1. Generate Signature

Every request you send will be validated by Tagih.id using your generated signature parameter. Learn how to make a  Tagih.id | Hash-Based Signature.

2. Enkripsi Data

Data encryption converts information into an unreadable form to make it more secure. For every transaction, you must encrypt the values of the sent parameters. The list of encrypted parameters can be found in the Request Parameters and Response Parameters sections. Learn how to encrypt data on Tagih.id | AES-256-CBC Encryption.

3. Membuat Create Member

Flow

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

API URL

Environment URL
Sandbox
https://sandbox-api.espay.id/rest/tagihid/createmember
Production
https://api-merchant.espay.id/rest/tagihid/createmember

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 Enkripsi Keterangan
rq_uuid
String (255)
Y
N
Request identifier. A unique ID used to identify messages.

Contoh:
123ABC-DEF456
rq_datetime
String (19)
Y
N
Date and time of the transaction request from the merchant's server.

Format:
YYYY-MM-DD HH:MM:SS

Contoh:
2024-12-16 14:30:45
signature
String (64)
Y
N
Code used to validate transactions. Learn how to make a Tagih.id | Hash-Based Signature
sender_id
String (32)
Y
N
Merchant ID provided by the Espay team.
comm_code
String (32)
Y
Y
Merchant code from Espay team..
members
JSON
Y
Y
members.

Example:
{ "comm_code": "SGWALLTAGIHREVAMP", "data": { "MEMBER1024": { "comm_code": "SGWALLTAGIHREVAMP", "member_name": "Mixed Delimiter 4", "contacts": { "email": "[email protected];[email protected],[email protected]", "phone": "081111111111#081222222222", "wa_number": "081333333333;081444444444" } } } }
total_members
String (3)
Y
Y
Total member sent in JSON format.

Contoh:
1
Y: Yes, O: Optional, C: Conditional, N: No

Parameter Respons

Parameter Tipe Mandatory Enkripsi Keterangan
rq_uuid
String (255)
Y
N
Request identifier. A unique ID used to identify messages.
rs_datetime
String (19)
Y
N
Date and time of the transaction request from the merchant's server.

Format:
YYYY-MM-DD HH:MM:SS

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

Example:
  • Success: 0000
  • Failure: XXXX
error_message
String
C
Y
Response description.
members_success
JSON
Y
Y
Successful members.

Format:
  • Success:0000
  • Failure: Other

Example:
{"MEMBER1024":{"error_code":"0000","error_message":"Success"}}
members_failed
JSON
Y
Y
Failed Members.

Format:
  • Success: 0000
  • Failure: Other
total_success
String
Y
Y
Total successful member.

Example:
15
total_failed
String
Y
Y
Total failed member.

Example:
20
Y: Yes, O: Optional, C: Conditional, N: No
























































Contoh Permintaan - Plain Text

{
    "rq_uuid": "b2d1766d-e08b-5eb1-a0c7-e517326f364c",
    "rq_datetime": "2026-08-10 09:00:00",
    "sender_id": "SGWALLTAGIHREVAMP",
    "comm_code": "SGWALLTAGIHREVAMP",
    "members": "{"comm_code":"SGWALLTAGIHREVAMP","data":{"MEMBER1024":{"comm_code":"SGWALLTAGIHREVAMP","member_name":"Mixed Delimiter 4","contacts":{"email":"[email protected];[email protected],[email protected]","phone":"081111111111#081222222222","wa_number":"081333333333;081444444444"}}}}",
    "total_members": "1"
}

           


Contoh Permintaan - Setelah Enkripsi

rq_uuid=TESTMEKA001&rq_datetime=2020-02-25 17:42:26&signature=73600f75ddc7f9496bd661d88029daceb45af3df1af08a64f5cd6aaa39807495&sender_id=SGWALLTAGIHREVAMP&comm_code=by0MGvhDNy6II1cirwfq9hSTVWJTcPGsKr6Vavoq3Vg=&members=ZwK33K1i6OR5+P6iC1Ccz79vFKs5Ax8B2NsdiUzbzjwlZNwsz0ndObNwbUFWg6bNf8XuPb9AUOAh5u9qyeDfG4bD9xh1HnFo/qGINFmP0o4j5Jd/Pg/4XIspu/vlEs/gF8RmCYLZq3PF0FXi14I4HQDIwXK8rnVFYsJIqDSGuaFH3JyPzEVEZuU2DX7wahHxdTDondcymssKUaUadplYWr7BPLOGPcLFAodovW42Th+B2fu/vyU8QhCRNnIIoBwB6YMZf2ScqMNWVw6Zk8M7xzX2y/tXbSa8/ITTJQttgDk=&total_members=ySnhwSPCpq2/hc2A1R1Xbg==

           



























Contoh Respons - Plain Text

{
    "rq_uuid": "TESTMEKA001",
    "rs_datetime": "2026-08-19 17:49:14",
    "error_code": "0000",
    "error_message": "Success",
    "members_success": {
        "MEMBER1024": {
            "error_code": "0000",
            "error_message": "Success"
        }
    },
    "members_failed": [],
    "total_success": 1,
    "total_failed": 0
}
              


Contoh Respons - Enkripsi

{
    "rq_uuid": "TESTMEKA001",
    "rs_datetime": "2026-08-19 17:49:14",
    "error_code": "VBYV6K7uV3vzHEC+0rtDng==",
    "error_message": "M1hTloYv2wgUCGuu5DEudg==",
    "members_success": "ZwK33K1i6OR5+P6iC1Ccz1eky3aLzffH5v4CWH+aRV4hwkZo4CKDgDuM3Jneqr/j9W0KdWJBh6Q7hnBekbohMA==",
    "members_failed": "Hfcrplcy95QDvYnSdIknWA==",
    "total_success": "alif3koI8eVBaExbsh/6Mg==",
    "total_failed": "JRUtTwaFPVmimIYQGXzQzw==",
    "signatureString": "##TESTMEKA001##2020-02-25 17:42:26##SGWALLTAGIHREVAMP##0bageq6qrq1b6dy9##CreateMemberTagih##"
}
              


HTTP

POST /rest/tagihid/createmember HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Cookie: sl-session=j/U2CadQiGoJEXgEaUFEMw==
Content-Length: 593

rq_uuid=TESTMEKA001&rq_datetime=2020-02-25%2017%3A42%3A26&signature=73600f75ddc7f9496bd661d88029daceb45af3df1af08a64f5cd6aaa39807495&sender_id=SGWALLTAGIHREVAMP&comm_code=by0MGvhDNy6II1cirwfq9hSTVWJTcPGsKr6Vavoq3Vg%3D&members=ZwK33K1i6OR5%2BP6iC1Ccz79vFKs5Ax8B2NsdiUzbzjwlZNwsz0ndObNwbUFWg6bNf8XuPb9AUOAh5u9qyeDfG4bD9xh1HnFo%2FqGINFmP0o4j5Jd%2FPg%2F4XIspu%2FvlEs%2FgF8RmCYLZq3PF0FXi14I4HQDIwXK8rnVFYsJIqDSGuaFH3JyPzEVEZuU2DX7wahHxdTDondcymssKUaUadplYWr7BPLOGPcLFAodovW42Th%2BB2fu%2FvyU8QhCRNnIIoBwB6YMZf2ScqMNWVw6Zk8M7xzX2y%2FtXbSa8%2FITTJQttgDk%3D&total_members=ySnhwSPCpq2%2Fhc2A1R1Xbg%3D%3D
               


CURL

curl --location 'https://sandbox-api.espay.id/rest/tagihid/createmember' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: sl-session=j/U2CadQiGoJEXgEaUFEMw==' \
--data-urlencode 'rq_uuid=TESTMEKA001' \
--data-urlencode 'rq_datetime=2020-02-25 17:42:26' \
--data-urlencode 'signature=73600f75ddc7f9496bd661d88029daceb45af3df1af08a64f5cd6aaa39807495' \
--data-urlencode 'sender_id=SGWALLTAGIHREVAMP' \
--data-urlencode 'comm_code=by0MGvhDNy6II1cirwfq9hSTVWJTcPGsKr6Vavoq3Vg=' \
--data-urlencode 'members=ZwK33K1i6OR5+P6iC1Ccz79vFKs5Ax8B2NsdiUzbzjwlZNwsz0ndObNwbUFWg6bNf8XuPb9AUOAh5u9qyeDfG4bD9xh1HnFo/qGINFmP0o4j5Jd/Pg/4XIspu/vlEs/gF8RmCYLZq3PF0FXi14I4HQDIwXK8rnVFYsJIqDSGuaFH3JyPzEVEZuU2DX7wahHxdTDondcymssKUaUadplYWr7BPLOGPcLFAodovW42Th+B2fu/vyU8QhCRNnIIoBwB6YMZf2ScqMNWVw6Zk8M7xzX2y/tXbSa8/ITTJQttgDk=' \
--data-urlencode 'total_members=ySnhwSPCpq2/hc2A1R1Xbg=='
               
Scroll to Top