Tagih.id

Reject Billing Multiple

Reject Billing Multiple is a service from Tagih.id that simplifies the process of rejecting bulk invoices. With a single request, this service can reject up to 500 invoices at once.

Before Integration
Make sure you have received the credentials from the Espay team.
Integration Steps
You can use the following steps to integrate with Tagih.id – Send Billing Multiple:
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. Data Encryption
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. Create Reject Billing Multiple

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/rejectbilling
Production
https://api.espay.id/rest/tagihid/rejectbilling

HTTP Header

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

Request Parameter

Parameter Type Mandatory Encryption Description
rq_uuid
String (255)
Y
N
Request identifier. A unique ID used to identify messages.

Example:
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

Example:
2024-03-14 07:49:28
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.
invoices
JSON
Y
Y
Invoice details. The maximum is 500 JSON lines.

Format:
{"doc_no":{"member_code":"01S000118545"}}

Example:
{ "MT18200000361": { "member_code": "01S000118545" } }
   doc_no
Invoice number.

Example:
MT18200000361
  member_code
Member code.

Example:
01S000118545
total_invoices
String (3)
Y
Y
Total invoices sent. The maximum submission is 500 invoices in JSON format.

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

Response Parameters

Parameter Type Mandatory Encryption Description
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-03-14 07:49:28
error_code
String (4)
Y
Y
Response code.

Format:
  • Success: 0000
  • Failure: XXXX
error_message
String
C
Y
Response description.
invoices_success
JSON
Y
Y
Successful invoices.

Format:
  • Success:0000
  • Failure: Other

Example:
{"MT18200000360":"MT18200000360"}
invoices_failed
JSON
Y
Y
Failed invoices.

Format:
  • Success:0000
  • Failure: Other

Example:
{"MT18200000360":"MT18200000360"}
total_success
String
Y
Y
Total successful invoices.

Format:
15
total_failed
String
Y
Y
Total failed invoices.

Format:
20
total_row_execute
String
Y
Y
Total processed invoices.

Format:
35
Y: Yes, O: Optional, C: Conditional, N: No














































































































































HTTP

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

rq_uuid=SGWYESSISHOP973962&rq_datetime=2025-06-30%2008%3A31%3A06&signature=a50e23f466757dbe328e7057a39ce41679135b64d7a40a5b6348b09b2add3d98&sender_id=SGWYESSISHOP&comm_code=7ehJDLKEnDvhoTaI0Ao3Fg%3D%3D&ccy=XAgDOyFSyCxclKSInvWVcw%3D%3D&invoices=AKxBlnttnPYeN7Sgxyx4nnKX8TdReEucJox4i7poIizxAvfqodP5raJ4aplvOdFM4W2cVtUrmXaxYYUXEvHOoYRjTME0IChs1Ihm3FdB148Ef8Z%2BJMR2XZqbw338vpNtlR6tShTs1bFfERYvDyo1Epf9WRlTanU79K4Ri%2BOALy73QpPxZmfc1e%2Bvmq0JbHt10K63x4qbcWuQDPAxwN6klbmAzByCg8tRU3hDPtLOUrhUrvrFmDBvPGbotHQkaOPXqSyqTlvMOxOgA0i4T0aGcdWp0pjv1wSNI0m4IUTJmCT15Vhy88vyX5Wy8BtctN6LnbFRd4eD3rsCHwxUkldXDPWIfu1bbt70kDGT9Ij5gZhIyoaeaVkDnKznEPFjGwhe%2Fwfg24g9Rjkv21FQJiI6VvNV1pxTmvLOn63t9KGfQgGu%2FWJSrTe6AyqjsZiYdMqA%2F5pLR0dsG5RSC23NhLMFmVzuYujxAgmlRL5k5260oaCZ1Ps0RbD05VMXXDePMA8ZAIGVEiiMLbek3IN9hGlig26xJM2At1m6fesQlhhnOqtlXCDRSEsLkYqsIkA6sOr9DGLJcRE6mjK12GB6RUkfRZg73%2FlMvQ7WjjqQBtukk04sOWPUvxiCbMA75c7FbWDrgWF1yoYFuX6DZHrWzZgDmA%3D%3D&total_invoices=I3QGPJlhxrj9P2wjsQw%2FBw%3D%3D
               


CURL

curl --location 'https://sandbox-api.espay.id/rest/tagihid/sendbillingdigital' \
--header 'Connection:  keep-alive' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept:  */*' \
--data-urlencode 'rq_uuid=SGWYESSISHOP973962' \
--data-urlencode 'rq_datetime=2025-06-30 08:31:06' \
--data-urlencode 'signature=a50e23f466757dbe328e7057a39ce41679135b64d7a40a5b6348b09b2add3d98' \
--data-urlencode 'sender_id=SGWYESSISHOP' \
--data-urlencode 'comm_code=7ehJDLKEnDvhoTaI0Ao3Fg==' \
--data-urlencode 'ccy=XAgDOyFSyCxclKSInvWVcw==' \
--data-urlencode 'invoices=AKxBlnttnPYeN7Sgxyx4nnKX8TdReEucJox4i7poIizxAvfqodP5raJ4aplvOdFM4W2cVtUrmXaxYYUXEvHOoYRjTME0IChs1Ihm3FdB148Ef8Z+JMR2XZqbw338vpNtlR6tShTs1bFfERYvDyo1Epf9WRlTanU79K4Ri+OALy73QpPxZmfc1e+vmq0JbHt10K63x4qbcWuQDPAxwN6klbmAzByCg8tRU3hDPtLOUrhUrvrFmDBvPGbotHQkaOPXqSyqTlvMOxOgA0i4T0aGcdWp0pjv1wSNI0m4IUTJmCT15Vhy88vyX5Wy8BtctN6LnbFRd4eD3rsCHwxUkldXDPWIfu1bbt70kDGT9Ij5gZhIyoaeaVkDnKznEPFjGwhe/wfg24g9Rjkv21FQJiI6VvNV1pxTmvLOn63t9KGfQgGu/WJSrTe6AyqjsZiYdMqA/5pLR0dsG5RSC23NhLMFmVzuYujxAgmlRL5k5260oaCZ1Ps0RbD05VMXXDePMA8ZAIGVEiiMLbek3IN9hGlig26xJM2At1m6fesQlhhnOqtlXCDRSEsLkYqsIkA6sOr9DGLJcRE6mjK12GB6RUkfRZg73/lMvQ7WjjqQBtukk04sOWPUvxiCbMA75c7FbWDrgWF1yoYFuX6DZHrWzZgDmA==' \
--data-urlencode 'total_invoices=I3QGPJlhxrj9P2wjsQw/Bw=='
               
Scroll to Top