Bills
Create Bill
Create a new bill.
POST
/
api
/
v1
/
bills
Create Bill
curl --request POST \
--url https://vinmake-erp.onrender.com/api/v1/bills \
--header 'Content-Type: application/json' \
--data '
{
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>"
}
'import requests
url = "https://vinmake-erp.onrender.com/api/v1/bills"
payload = {
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
billNumber: '<string>',
billType: '<string>',
supplierId: '<string>',
clientId: '<string>',
employeeName: '<string>',
employeeId: '<string>',
linkedPoId: '<string>',
purchaseOrderId: '<string>',
managementAccountId: '<string>',
currency: '<string>',
subtotal: 123,
taxRate: 123,
taxAmount: 123,
totalAmount: 123,
paidAmount: 123,
remainingBalance: 123,
dueDate: '<string>',
status: '<string>',
sourceOfFunds: '<string>',
notes: '<string>'
})
};
fetch('https://vinmake-erp.onrender.com/api/v1/bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vinmake-erp.onrender.com/api/v1/bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billNumber' => '<string>',
'billType' => '<string>',
'supplierId' => '<string>',
'clientId' => '<string>',
'employeeName' => '<string>',
'employeeId' => '<string>',
'linkedPoId' => '<string>',
'purchaseOrderId' => '<string>',
'managementAccountId' => '<string>',
'currency' => '<string>',
'subtotal' => 123,
'taxRate' => 123,
'taxAmount' => 123,
'totalAmount' => 123,
'paidAmount' => 123,
'remainingBalance' => 123,
'dueDate' => '<string>',
'status' => '<string>',
'sourceOfFunds' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vinmake-erp.onrender.com/api/v1/bills"
payload := strings.NewReader("{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vinmake-erp.onrender.com/api/v1/bills")
.header("Content-Type", "application/json")
.body("{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vinmake-erp.onrender.com/api/v1/bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"supplierName": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"purchaseOrderDocumentId": "<string>",
"purchase_order": {},
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>",
"createdAt": "<string>",
"glPosted": true,
"postedAt": "<string>",
"grnId": "<string>",
"matchStatus": "<string>",
"priceVarianceAmount": 123,
"taxInvoiceReceivedDate": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Response
Successful Response
Previous
Search BillsSearch bills by query string (matching bill number, employee name, supplier name, client name, or PO document ID).
Next
⌘I
Create Bill
curl --request POST \
--url https://vinmake-erp.onrender.com/api/v1/bills \
--header 'Content-Type: application/json' \
--data '
{
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>"
}
'import requests
url = "https://vinmake-erp.onrender.com/api/v1/bills"
payload = {
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
billNumber: '<string>',
billType: '<string>',
supplierId: '<string>',
clientId: '<string>',
employeeName: '<string>',
employeeId: '<string>',
linkedPoId: '<string>',
purchaseOrderId: '<string>',
managementAccountId: '<string>',
currency: '<string>',
subtotal: 123,
taxRate: 123,
taxAmount: 123,
totalAmount: 123,
paidAmount: 123,
remainingBalance: 123,
dueDate: '<string>',
status: '<string>',
sourceOfFunds: '<string>',
notes: '<string>'
})
};
fetch('https://vinmake-erp.onrender.com/api/v1/bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vinmake-erp.onrender.com/api/v1/bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billNumber' => '<string>',
'billType' => '<string>',
'supplierId' => '<string>',
'clientId' => '<string>',
'employeeName' => '<string>',
'employeeId' => '<string>',
'linkedPoId' => '<string>',
'purchaseOrderId' => '<string>',
'managementAccountId' => '<string>',
'currency' => '<string>',
'subtotal' => 123,
'taxRate' => 123,
'taxAmount' => 123,
'totalAmount' => 123,
'paidAmount' => 123,
'remainingBalance' => 123,
'dueDate' => '<string>',
'status' => '<string>',
'sourceOfFunds' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vinmake-erp.onrender.com/api/v1/bills"
payload := strings.NewReader("{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vinmake-erp.onrender.com/api/v1/bills")
.header("Content-Type", "application/json")
.body("{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vinmake-erp.onrender.com/api/v1/bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"billNumber\": \"<string>\",\n \"billType\": \"<string>\",\n \"supplierId\": \"<string>\",\n \"clientId\": \"<string>\",\n \"employeeName\": \"<string>\",\n \"employeeId\": \"<string>\",\n \"linkedPoId\": \"<string>\",\n \"purchaseOrderId\": \"<string>\",\n \"managementAccountId\": \"<string>\",\n \"currency\": \"<string>\",\n \"subtotal\": 123,\n \"taxRate\": 123,\n \"taxAmount\": 123,\n \"totalAmount\": 123,\n \"paidAmount\": 123,\n \"remainingBalance\": 123,\n \"dueDate\": \"<string>\",\n \"status\": \"<string>\",\n \"sourceOfFunds\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"billNumber": "<string>",
"billType": "<string>",
"supplierId": "<string>",
"supplierName": "<string>",
"clientId": "<string>",
"employeeName": "<string>",
"employeeId": "<string>",
"linkedPoId": "<string>",
"purchaseOrderId": "<string>",
"purchaseOrderDocumentId": "<string>",
"purchase_order": {},
"managementAccountId": "<string>",
"currency": "<string>",
"subtotal": 123,
"taxRate": 123,
"taxAmount": 123,
"totalAmount": 123,
"paidAmount": 123,
"remainingBalance": 123,
"dueDate": "<string>",
"status": "<string>",
"sourceOfFunds": "<string>",
"notes": "<string>",
"createdAt": "<string>",
"glPosted": true,
"postedAt": "<string>",
"grnId": "<string>",
"matchStatus": "<string>",
"priceVarianceAmount": 123,
"taxInvoiceReceivedDate": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}