Create Invoice Transaction Splitfee Invoice

Endpoint for a merchant to create Invoice transaction (Payment Link) via API. This API can also generate the Virtual Account Number and Payment Url for paying the transaction.

Create Invoice Transaction

POST https://pay-stg.netzme.com/api/v1/invoice/createTransaction

Headers

NameTypeDescription

User-Agent*

string

<client name;merchant_id>

Authorization*

string

custom <access token>

Content-Type*

string

application/json

Request Body

NameTypeDescription

merchant*

string

merchant ID

amount*

number

Amount that need to be paid

email*

string

Buyer's email

notes*

string

notes

phone_number*

string

Buyer's phone number

description*

string

Product description/Invoice description

image_url*

string

URL your company logo to put on the invoice

fullname*

string

Buyer's name. Must be alphabetic

amount_detail*

object

(Optional) If there is additional amount (i.e shippingAmount)

commission_percentage*

number

(Optional) Percentage commission value (0-100)

type*

string

Fill with "single" or "multiple". Default is "single"

payment_method*

string

Fill with "BANK_TRANSFER", "NETZME", "BCA" , "QRIS" , "RETAIL_OUTLET", "OVO" , "NETZME_SEAMLESS", "DANA" or "CREDIT_CARD"

fee_type*

String

Charge service fee type. Fill with "on_buyer" or "on_seller". Default is "on_seller"

partner_transaction_id

String

Partner transaction id register on partner netzme

apiSource

String

Filled topup_deposit for create invoice topup deposit on netzme. Don't provide this parameter if transaction invoice non topup deposit. For sample json request click here

terminal_id

String

(Optional) Qris terminal id A01-Z99 only used payment method QRIS. Default A01

isSplitFee*

boolean

Set this field to true to indicate that the invoice is a split fee transaction.

splitFees*

List<Object>

A list containing the split fees details for each merchant

{
    "result": {
        "id": "NETZ-INV-M_QLjyEqWF-20220111-032",
        "trxId": "fc841c08dcf04bfd914f68e1c57dd1dd",
        "paymentMethod": "BCA",
        "expiredTs": "2022-01-11T16:45:02.966+07:00",
        "paymentUrl": "https://dev.faspay.co.id/pws/100003/0830000010100000/1c9a6aed4c14c70908c3c082138d2f8c97908ebe?trx_id=3262670200007351&merchant_id=32626&bill_no=fc841c08dcf04bfd914f68e1c57dd1dd",
        "virtualAccountData": [
            {
                "bankCode": "BCA",
                "virtualAccountNo": "3262670200007351"
            }
        ],
        "qrImage": "data:image/png;base64," 
    },
    "status": true,
    "message": null,
    "statistic": [],
    "code": 200
}

Sample JSON Request

{
    "request": {
        "merchant": "M_Gq2HXf4z",
        "amount": 50000,
        "email": "testabc@gmail.com",
        "notes": "desc",
        "description": "description",
        "phone_number": "+62813293333333",
        "image_url": "",
        "fullname": "Tester",
        "amount_detail" : {
            "basicAmount" : 50000,
            "shippingAmount" : 0
        },
        "payment_method": "QRIS",
        "commission_percentage" : 0,
        "expire_in_second": 600,
        "fee_type" : "on_seller",
        "partner_transaction_id" : "aggregator202103031542100001",
        "isSplitFee": true,
        "splitFees": [
            {
                "merchantId": "M_Gq2HXf4z",
                "merchantType": "main",
                "amount": 25000
            },
            {
                "merchantId": "M_yEPSxTSq",
                "merchantType": "splitFee",
                "amount": 25000
            }
        ]
    }
}

Last updated