Import Invoice
POST
https://merchantapi-demo.bill24.io/billflow/v1/Bill24Operation/Invoice/Import
Request
Header Params
Content-Type
string
required
Example:
application/json
Accept
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {{access_token}}
Body Params application/json
array of:
refId
string
optional
refNumber
string
required
date
string
required
dueDate
string
required
description
string
optional
currency
string
required
USD
or KHR
totalAmount
number
required
of Bill
paidAmount
number
optional
customer
object
required
code
string
required
name
string
required
address
string
optional
phone
string
optional
moc
string
optional
vat
string
optional
email
string
optional
totalTax
number
optional
exchangeRateKhr
number
optional
totalAmountKhr
number
optional
details
array [object {6}]
optional
itemName
string
optional
description
string
optional
quantity
number
optional
price
number
optional
amount
number
optional
taxAmount
number
optional
Example
[
{
"refId": "101",
"refNumber": "24062101",
"date": "2024-06-22T02:41:55.350Z",
"dueDate": "2024-06-30T06:50:55.350Z",
"description": "upload bills",
"currency": "USD",
"totalAmount": 10,
"paidAmount": 0,
"customer": {
"code": "00001",
"name": "Nim",
"address": "Phnom Penh",
"phone": "011345789",
"moc": "100014",
"vat": "A102-110003031",
"email": "testing001@gmail.com"
},
"totalTax": 0,
"exchangeRateKhr": 4120,
"totalAmountKhr": 41200,
"details": [
{
"itemName": "A001",
"description": "Hello",
"quantity": 2,
"price": 5,
"amount": 10,
"taxAmount": 0
}
]
}
]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://merchantapi-demo.bill24.io/billflow/v1/Bill24Operation/Invoice/Import' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"refId": "101",
"refNumber": "24062101",
"date": "2024-06-22T02:41:55.350Z",
"dueDate": "2024-06-30T06:50:55.350Z",
"description": "upload bills",
"currency": "USD",
"totalAmount": 10,
"paidAmount": 0,
"customer": {
"code": "00001",
"name": "Nim",
"address": "Phnom Penh",
"phone": "011345789",
"moc": "100014",
"vat": "A102-110003031",
"email": "testing001@gmail.com"
},
"totalTax": 0,
"exchangeRateKhr": 4120.0,
"totalAmountKhr": 41200,
"details": [
{
"itemName": "A001",
"description": "Hello",
"quantity": 2,
"price": 5,
"amount": 10,
"taxAmount": 0
}
]
}
]'
Responses
🟢200Success
application/json
Body
id
string
required
totalRecord
string
required
status
string
required
Example
{
"id": 70,
"totalRecord": 1,
"status": 1
}
Modified at 2025-03-04 09:12:24