The available versions for this api are v1.0 and v2.0.
POST
https://tokoapisnap-stg.netzme.com/api/
{version}
/invoice/create
Parameter | Data Type | Description |
---|
| | |
| | API request identifier from the user's system, unique for each request |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | Currency of shippingAmount |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
{
"custIdMerchant": "M_TB1NMLig",
"partnerReferenceNo": "testing20210409144959687",
"amount": {
"value": "50000.00",
"currency": "IDR"
},
"amountDetail": {
"basicAmount": {
"value": "50000.00",
"currency": "IDR"
},
"shippingAmount": {
"value": "9000.00",
"currency": "IDR"
}
},
"commissionPercentage": 0,
"additionalInfo": {
"email": "testabc@gmail.com",
"notes": "desc",
"description": "description",
"phoneNumber": "+62813293333333",
"imageUrl": "",
"fullname": "Tester 2"
}
}
Parameter | Data Type | Description |
---|
| | (HTTP status code + service code + case code) |
| | Description of responseCode |
| | API request identifier from the user's system |
| | |
| | |
| | |
| | |
Response Body
{
"responseCode": "2000000",
"responseMessage": "Successful",
"partnerReferenceNo": "testing20210409144959687",
"additionalInfo": {
"invoiceId": "NETZ-INV-M_TB1NMLig36136158886034181yS5",
"status": true
}
}
Header | Value |
---|
| |
| |
| e.g 41807553358950093184162180797837 |
| Client id e.g TokoNetmeClientId |
| |
| Client's current local time in yyyy-MM-ddTHH:mm:ssTZD |
| |
curl --location --request POST 'http://localhost:9007/api/v1.0/invoice/create' \
--header 'X-TIMESTAMP: 2022-08-10T00:00:00+07:00' \
--header 'X-SIGNATURE: 2100e98c9b222c6ed5a90d0f61946360a1586f81732056c828c22188dbe687a59e02e692038a8355b00cb22c5ce3b469cd2f8d83a7013175e50b8e4a480a5c2f' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Njk0OTE5OTcsImlhdCI6MTY2OTQzNzk5NywiaXNzIjoiYnNuYXAifQ.W22-JQ483h5iZ_wzUT-NlnwxXgrPX_58ftxrnXZe0gfHh3NViNawDyLtTmRh8e8ODUbznolc0iWUsdokfHXalw' \
--header 'X-PARTNER-ID: TokoNetmeClientId' \
--header 'X-EXTERNAL-ID: 41807553358950093184162180797837' \
--header 'CHANNEL-ID: 95221' \
--data-raw '{
"custIdMerchant": "M_uUByxy5E",
"partnerReferenceNo": "testing1234",
"payMethods": [
"BANK_TRANSFER"
],
"amount": {
"value": "100.00",
"currency": "IDR"
},
"additionalInfo": {
"email": "testabc@gmail.com",
"notes": "desc",
"description": "description",
"phoneNumber": "+62813293333333",
"imageUrl": "",
"fullname": "Tester 2"
},
"amountDetail": {
"basicAmount": {
"value": "100.00",
"currency": "IDR"
},
"shippingAmount": {
"value": "50.00",
"currency": "IDR"
}
},
"commissionPercentage": 0
}'
Last updated