Create Invoice Transaction Topup Deposit
The available versions for this api are v1.0 and v2.0.
POST
https://tokoapisnap-stg.netzme.com/api/
{version}
/invoice/create-transaction
Parameter | Data Type | Description |
---|---|---|
custIdMerchant | String | |
partnerReferenceNo | ||
amount | Object | |
value | String | |
currency | String | |
amountDetail | Object | |
basicAmount | Object | |
value | String | |
currency | String | |
shippingAmount | Object | |
value | String | |
currency | String | |
payMethod | String | |
commissionPercentage | String | |
expireInSecond | String | |
feeType | String | |
additionalInfo | Object | |
apiSource | String | |
String | ||
notes | String | |
description | String | |
phoneNumber | String | |
imageUrl | String | |
fullname | String |
Request Body
{
"custIdMerchant": "M_TB1NMLig",
"partnerReferenceNo": "testing20210409144959687",
"amount": {
"value": "50000.00",
"currency": "IDR"
},
"amountDetail": {
"basicAmount": {
"value": "50000.00",
"currency": "IDR"
},
"shippingAmount": {
"value": "0.00",
"currency": "IDR"
}
},
"payMethod": "BANK_TRANSFER",
"commissionPercentage": "0",
"expireInSecond": "600",
"feeType": "on_seller",
"additionalInfo": {
"apiSource": "topup_deposit",
"email": "testabc@gmail.com",
"notes": "desc",
"description": "description",
"phoneNumber": "+62813293333333",
"imageUrl": "a",
"fullname": "Tester"
}
}
Parameter | Data Type | Description |
---|---|---|
responseCode | String | (HTTP status code + service code + case code) |
responseMessage | String | Description of responseCode |
partnerReferenceNo | String | |
paymentMethod | Object | |
paymentUrl | String | |
additionalInfo | Object | |
expiredTs | String | |
id | String | |
retailOutletData | Array Object | |
trxId | Object | |
virtualAccountData | Array Object | |
bankCode | String | |
virtualAccountNo | String | |
statistic | Array Object | |
status | Boolean | |
Response Body
{
"responseCode": "2004700",
"responseMessage": "Successful",
"partnerReferenceNo": "testing20210409144959687",
"payMethod": "BANK_TRANSFER",
"paymentUrl": "https://checkout-staging.xendit.co/web/6359e0431ee3f73865035d8b",
"additionalInfo": {
"expiredTs": "2022-10-27T08:49:58.511+07:00",
"id": "NETZ-INV-M_TB1NMLig1666834498914aKh",
"retailOutletData": [],
"trxId": "db451a92-b18f-4bdc-9410-f5482d62d95f",
"virtualAccountData": [
{
"bankCode": "MANDIRI",
"virtualAccountNo": "8860832146006"
},
{
"bankCode": "BNI",
"virtualAccountNo": "880892444987"
},
{
"bankCode": "PERMATA",
"virtualAccountNo": "729318717506"
}
],
"statistic": [],
"status": true
}
}
Header | Value |
---|---|
Content-Type | application/json |
CHANNEL-ID | e.g 95221 |
X-EXTERNAL-ID | e.g 41807553358950093184162180797837 |
X-PARTNER-ID | Client id e.g TokoNetmeClientId |
X-SIGNATURE | Service’s signature (given at transactional signature) |
X-TIMESTAMP | Client's current local time in yyyy-MM-ddTHH:mm:ssTZD |
Authorization | Client`s access for protected resources (given at Authentication) |
curl --location --request POST 'https://tokoapisnap-stg.netzme.com/api/v1.0/invoice/create-transaction' \
--header 'X-TIMESTAMP: 2022-08-10T00:00:00+07:00' \
--header 'X-SIGNATURE: 71338937c805237a54221c29cd6f79732919f8a95ee286f928af11652e3384e38f0233c03cf9ec95e37780eb4d4215ab144a9b75e2651b75ee7213046c0870c5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjkzNDQ3NjMsImlhdCI6MTY2OTI5MDc2MywiaXNzIjoibG9rZXRkb3Rjb20ifQ.KdFbrQUDgRgZ5XKGAlxqlRCetEAYi1m73xlFYW2_VD8WJgfhx5__DahOPTkywsCU3NtwMqAxDCrfab74bNBCSg' \
--header 'X-PARTNER-ID: TokoNetmeClientId' \
--header 'X-EXTERNAL-ID: 41807553358950093184162180797837' \
--header 'CHANNEL-ID: 95221' \
--data-raw '{
"custIdMerchant": "M_VWXPXk6t",
"partnerReferenceNo": "testing2022112388888888012",
"amount": {
"value": "50000.00",
"currency": "IDR"
},
"amountDetail": {
"basicAmount": {
"value": "50000.00",
"currency": "IDR"
},
"shippingAmount": {
"value": "0.00",
"currency": "IDR"
}
},
"PayMethod": "BANK TRANSFER",
"commissionPercentage": "0",
"expireInSecond": "3600",
"feeType": "on_buyer",
"additionalInfo": {
"email": "testabc@gmail.com",
"notes": "desc",
"description": "description",
"phoneNumber": "+6285270427851",
"imageUrl": "a",
"fullname": "Tester",
"apiSource": "topup_deposit"
}
}'
Last updated