Amount
{
"vat": "12313",
"discount": "1000",
"shipping": "11"
}
Parameter | Description |
|---|---|
vat Integer Required from 0 - 99999999999 | Tax amount |
discount | Discount amount in positive integer |
shipping | Shipping amount |
NoteProduct gross amount total + VAT + shipping - discount should not be less than 0
Customer Details
{
"id": "customer_id",
"name": "merchant A",
"email": "[email protected]",
"phone": "82313123123"
}
Parameter | Description |
|---|---|
Id String(36) Optional | Id of the customer |
Name | Name of the customer |
Email | Email of the customer |
Phone | Phone number of the customer and not start with “0” |
Payment Link
{
"is_custom_expiry": true,
"enabled_payments": [
"bca_va"
],
"credit_card": {
"secure": true,
"type": "authorize",
"bank": "bni",
"whitelist_bins": [
"48111111"
],
"installment": {
"required": true,
"terms": {
"mandiri": [
3
],
"bca": [
3
],
"bni": [
3
],
"bri": [
3
],
"cimb": [
3
],
"maybank": [
3
],
"offline": [
3
]
}
}
},
"bca_va": {
"number": "12345678901",
"free_text": {
"inquiry": [
{
"id": "id inquiry",
"en": "en inquiry"
}
],
"payment": [
{
"id": "id payment",
"en": "en payment"
}
]
}
},
"bni_va": {
"number": "12312312312"
},
"permata_va": {
"number": "12312312312",
"recipient_name": "name"
},
"bri_va": {
"number": "12312312312"
},
"cimb_va": {
"number": "12312312312"
},
"expiry": {
"unit": "months",
"duration": 1,
"start_time": "2025-02-21 09:48:29 +0700"
}
}Parameter | Description |
|---|---|
Is_custom_expiry Boolean, default: false | Indicate payment link to use custom expiry. If false then the payment link expiry will be same as invoice due_date |
Enabled_payments | Payment methods that will be used in payment link. Please refer to here for the available payments. |
bca_va | BCA VA properties for payment link. Please refer to here for more details. (Note: sub_company_code will not be used). |
bni_va | BNI VA properties for payment link. Please refer to here for more details. |
permata_va | Permata VA properties for payment link. Please refer to here for more details. |
bri_va | BRI VA properties for payment link. Please refer to here for more details. |
cimb_va | CIMB VA properties for payment link. Please refer to here for more details. |
Expiry | Payment link expiry property. Please refer to here for more details. (Note: either duration or start_time must be 2 years or 730 days from now) |
credit_card | Payment link credit card property. Please refer to here for more details. |
Virtual Account
{
"name": "bca_va",
"number": "12345678901"
}Parameter | Description |
|---|---|
Name String Required | Bank provider name, should be either |
Number | Custom va number with different min and max length for each bank provider |
Item Detail
{
"item_id": "SKU1111",
"description": "midtrans pillow",
"quantity": 1,
"price": 2000
}
Parameter | Description |
|---|---|
Item_id String(30) Optional | Id of the item |
Description | Name or description of the item |
Quantity | Number of items (max: 99999999) |
Price | Price of items (max: 99999999) |