Create Invoice
Testing
Testing Env
https://taccounting.vodoerp.com
Testing Env
https://taccounting.vodoerp.com
POST
/api/v5/sales-invoices
Last modified:2025-05-26 13:47:14
Body | description |
---|---|
user_id | required string the id of the customer who has added to the invoice you can get the id of him from: https://vodoerp.apidog.io/show-customer-or-supplier-16374832e0 |
due_date | string date the due date of the invoice must be: YYYY-MM-DD |
quote_number | string the quote number of the invoice |
billing_address | int the currency of the transaction |
description | string the description of the invoice |
created_date | date the creation date of the transaction it should be in Y-m-d 2024-04-04 |
description | string the description of the transaction |
bank_id | string the bank to store the invoice for |
branch_id | string the branch id of the invoice |
currency_id | int the currency of the transaction |
tax_inclusive | required string the tax inclusive should be 1 for inclusive or 0 un inclusive |
item_qty | array of int the quantity of item |
item_price | array of int the price of item |
account_id | array of int the account you need to store the invoice to it |
item_tax_id | array of int the tax of item |
account_id
is passed an account: Fixed assets, at cost => the fixedAsset_id
will be required you need to get it from the fixed assets collectionaccount_id
is passed an account: Intangible assets, at cost => the intangibleAsset_id
will be required you need to get it from the intangible assets collectionaccount_id
is passed an account: Capital Accounts => the capitalAccount_id
will be required you need to get it from the capital accounts collection and sub_capitalAccount_id
will be required alsoaccount_id
is passed an account: Special Accounts => the specialAccount_id
will be required you need to get it from the special accounts collectionRequest Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://taccounting.vodoerp.com/api/v5/sales-invoices' \
--header 'user-token: ' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'lang: en' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": "string",
"tax_inclusive": "string",
"item_qty": [
0
],
"item_price": [
0
],
"account_id": [
"string"
]
}'
Response Response Example
200 - Success
{
"status": true,
"message": "تم انشاء سند القبض بنجاح",
"data": {
"currency_id": 126,
"created_date": "2025-05-18",
"paid_received_type": 1,
"account_id": 11,
"status": "1",
"cleared_date": null,
"payee_payer_type": 1,
"payee_payer_id": 2627,
"description": null,
"tax_inclusive": true,
"total": 200,
"advanced_payment": 0,
"purchase_order_id": null,
"rate_value": 0,
"uuid": "df9c467e-5c49-48fa-ab7e-2a1151559543",
"business_id": 259,
"reference": 1165,
"type": "1",
"created_by": 999,
"updated_at": "2025-05-18T11:51:55.000000Z",
"created_at": "2025-05-18T11:51:55.000000Z",
"id": 1366,
"account": {
"id": 11,
"uuid": "ff85352b-0242-11f0-877b-fa163e094c0f",
"business_id": 259,
"currency_id": 126,
"type": "cash",
"name": "sasa hassan test",
"bank_account_name": "",
"code": "",
"credit_imit": 0,
"iban_num": "",
"address": "",
"started_balance": "",
"balance": null,
"representative_id": 0,
"POS_account": "0",
"main_account": 0,
"created_at": "2024-08-26T01:20:45.000000Z",
"updated_at": "2025-04-30T13:02:24.000000Z"
}
},
"errors": []
}
Request
Header Params
user-token
string
required
Example:
{{user_token}}
secure-business-key
string
required
Example:
{{secure_business_key}}
lang
string
optional
Example:
{{lang}}
Body Params application/json