Send Invoice and Generate Virtual Account

Description: Partner mengirimkan beberapa invoice yang akan dibayarkan. Maksimal invoice yang dapat dikirim dalam service ini adalah 500 invoice.

Sender: Espay Partner

Receiver: Espay System

API URL

Endpoint Development: https://sandbox-api.espay.id/rest/virtualaccount/sendinvoice
Endpoint Production: https://api.espay.id/rest/virtualaccount/sendinvoice

Contoh Request:
Nama Field Atribut Mandatory Keterangan
rq_uuid ANS 255 TRUE Request Identifier. ID unik untuk mengidentifikasi request message tersebut dengan message lainnya.
Ex : 123ABC-DEF456
rq_datetime ANS 19 TRUE Tanggal dan waktu di server aplikasi client pada saat message di kirim.
Format : YYYY-MM-DD HH:MM:SS
Ex : 2014-12-17 12:30:45
signature ANS 64 TRUE Signature (lihat Signature Algorithm)
comm_code AN 32 TRUE Community Code
ccy AN 3 TRUE Mata uang transaksi
invoices JSON TRUE Maksimum 500 baris JSON
Contoh:
{
"INVZSKSK022": {
"member_code":"18032018",
"member_name":"Arief",
"amount":20000,
"total_amount":20000,
"jumlah_cicilan":"12",
"amount_cicilan":"2000000",
"pelunasan_amount":"2000000",
"description":"Test Pembayaran VA",
"tanggal_penagihan":"05"
},
"INVZSKSK023": {
"member_code":"18032019",
"member_name":"Sahid",
"amount":30000,
"total_amount":30000,
"jumlah_cicilan":"12",
"amount_cicilan":"3000000",
"pelunasan_amount":"3000000",
"description":"Test Pembayaran VA",
"tanggal_penagihan":"05"
}
}
Detail: {"doc_no":{"member_code":"18032018","member_name":"Arief (Tidak mandatory)",
"amount":20000,"total_amount":20000,"jumlah_cicilan":"12",
"amount_cicilan":"2000000","pelunasan_amount":"2000000 (Tidak mandatory)","description":"Test
Pembayaran VA (Tidak mandatory)","tanggal_penagihan":"05"}}
total_invoices N 3 TRUE Maksimum 500 baris JSON
Jumlah baris invoices harus sama dengan total_invoices.
Contoh: 500

Contoh Repsonse:
Nama Field Atribut Mandatory Keterangan
rq_uuid ANS 255 TRUE Request Identifier. ID unik untuk mengidentifikasi request message tersebut dengan message lainnya.
Ex : 123ABC-DEF456
rs_datetime ANS 19 TRUE Tanggal dan waktu di server aplikasi server pada saat request dari client di response.
Format : YYYY-MM-DD HH:MM:SS
Ex : 2014-12-17 12:30:45
error_code AN TRUE Kode Error
error_message ANS FALSE Deskripsi Error
invoices JSON TRUE Keterangan invoices
Contoh:
{
"INVZSKSK022": {
"error_code":"0002",
"error_msg":"Data tidak terdaftar = Document No",
"doc_ref_no":""
},
"INVZSKSK023": {
"error_code":"0000",
"error_msg":"success",
"doc_ref_no":"DOC010101",
"list_va": {
"008": {
"bank_code": "008",
"va_number": "6280615238775939",
"expired": "2018-05-17 14:00:00",
"description": "Test Pembayaran VA"
},
"009": {
"bank_code": "009",
"va_number": "8871215238775939",
"expired": "2018-05-17 14:00:00",
"description": "Test Pembayaran VA"
}
}
}
}
- 0000 = Success
- else = Fail
invoices_success JSON TRUE Keterangan invoices
Contoh:
{
"INVZSKSK022": {
"error_code":"0002",
"error_msg":"Data tidak terdaftar = Document No",
"doc_ref_no":""
},
"INVZSKSK023": {
"error_code":"0000",
"error_msg":"success",
"doc_ref_no":"DOC010101",
"list_va": {
"008": {
"bank_code": "008",
"va_number": "6280615238775939",
"expired": "2018-05-17 14:00:00",
"description": "Test Pembayaran VA"
},
"009": {
"bank_code": "009",
"va_number": "8871215238775939",
"expired": "2018-05-17 14:00:00",
"description": "Test Pembayaran VA"
}
}
}
}
- 0000 = Success
- else = Fail
invoices_error JSON TRUE Keterangan invoices
Contoh:
{
"INVZSKSK024" : {
"doc_ref_no" : "",
"error_code" : "0001",
"error_msg" : "Mandatory field dikosongkan = Tanggal Penagihan"
},
"INVZSKSK025" : {
"doc_ref_no" : "",
"error_code" : "0002",
"error_msg" : "Data sudah terdaftar = Document No"
}
}
total_invoice ANS TRUE Jumlah baris invoices yang sudah diproses