Create invoice
This endpoint is deprecated.
POST
/api/RPC.common.Api.FinDoc.createIncomeFinDoc?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Financial document ID |
typerequired | String | Financial document type |
for_date | String | Financial document date |
document_date | String | Tax date |
period | String | Payment terms (days) |
creator | String | Employee |
currency | String | Currency |
num | String | Document # |
office_namerequired | String | Office name |
tax_deal_coderequired | String | Tax template |
pay_typerequired | String | Payment method |
advance | Boolean | Advance Invoice |
partnerrequired | Object | Partner object. |
partner.id | String | Customer ID |
partner.is_company | Boolean | Customer is a company |
partner.client_type | String | Customer type |
partner.namerequired | String | Name |
partner.eik | String | UIC |
partner.egn | String | ID |
partner.dds_num | String | VAT Number |
partner.email | String | |
partner.phone | String | Phone |
rowsrequired | Object | Rows object. |
rows.skurequired | String | Item SKU |
rows.skurequired | String | Service ID |
rows.allocation_name | String | Revenue category |
rows.tax_instance_name | String | Tax Rate |
rows.quantityrequired | String | Quantity |
rows.measure_code | String | Unit of measurement ID |
rows.pricerequired | String | Unit price |
rows.description | String | Description |
rows.discount | String | Discount % |
Request example
Create Income Invoice:
{
"data" : [
{
"type" : "liability",
"tax_deal_code" : 6,
"partner" : {
"mail" : "medmag@medmagbg.com",
"is_company" : 1,
"eik" : 203982121,
"name" : "MEDMAC"
},
"pay_type" : "rev",
"office_name" : "WholeSales",
"rows" : [
{
"quantity" : 3,
"price" : "54.00",
"sku" : 777970
},
{
"quantity" : 4,
"price" : "78.00",
"sku" : 10156
},
{
"sku" : 98765432,
"quantity" : 1,
"price" : "38.00"
}
]
}
]
}cURL
Create Income Invoice:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "type" : "liability", "tax_deal_code" : 6, "partner" : { "mail" : "medmag@medmagbg.com", "is_company" : 1, "eik" : 203982121, "name" : "MEDMAC" }, "pay_type" : "rev", "office_name" : "WholeSales", "rows" : [ { "quantity" : 3, "price" : "54.00", "sku" : 777970 }, { "quantity" : 4, "price" : "78.00", "sku" : 10156 }, { "sku" : 98765432, "quantity" : 1, "price" : "38.00" } ] } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.FinDoc.createIncomeFinDoc?token=<TOKEN>"Response example