Creates Bulk Drafts
Last updated
Last updated
var options = new RestClientOptions("//ebill/Draft/CreateBulk")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer {{bearerToken}}");
var body = @"{" + "\n" +
@" ""Bills"": [" + "\n" +
@" {" + "\n" +
@" ""Bill"": {" + "\n" +
@" ""BillInfo"": {" + "\n" +
@" ""UUID"": ""<uuid>""," + "\n" +
@" ""TemplateUUID"": ""<uuid>""," + "\n" +
@" ""TemplateBase64String"": ""<string>""," + "\n" +
@" ""BillSerieOrNumber"": ""<string>""," + "\n" +
@" ""IssueDate"": ""<dateTime>""," + "\n" +
@" ""CurrencyCode"": ""<string>""," + "\n" +
@" ""ExchangeRate"": ""<double>""," + "\n" +
@" ""RelatedDocument"": {" + "\n" +
@" ""Type"": ""EFATURA""," + "\n" +
@" ""Code"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""ValidityPeriod"": {" + "\n" +
@" ""StartDate"": ""<dateTime>""," + "\n" +
@" ""EndDate"": ""<dateTime>""" + "\n" +
@" }" + "\n" +
@" }," + "\n" +
@" ""CompanyInfo"": {" + "\n" +
@" ""TaxNumber"": ""<string>""," + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""TaxOffice"": ""<string>""," + "\n" +
@" ""PartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""AgentPartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""CustomerInfo"": {" + "\n" +
@" ""TaxNumber"": ""<string>""," + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""TaxOffice"": ""<string>""," + "\n" +
@" ""PartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""AgentPartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""SellerInfo"": {" + "\n" +
@" ""User"": ""<string>""," + "\n" +
@" ""TableNo"": ""<string>""," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""BillLines"": [" + "\n" +
@" {" + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""Quantity"": ""<double>""," + "\n" +
@" ""UnitType"": ""<string>""," + "\n" +
@" ""Price"": ""<double>""," + "\n" +
@" ""KDVPercent"": ""<double>""," + "\n" +
@" ""KDVTotal"": ""<double>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""Quantity"": ""<double>""," + "\n" +
@" ""UnitType"": ""<string>""," + "\n" +
@" ""Price"": ""<double>""," + "\n" +
@" ""KDVPercent"": ""<double>""," + "\n" +
@" ""KDVTotal"": ""<double>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Notes"": [" + "\n" +
@" ""<string>""," + "\n" +
@" ""<string>""" + "\n" +
@" ]" + "\n" +
@" }," + "\n" +
@" ""Tags"": [" + "\n" +
@" ""<uuid>""," + "\n" +
@" ""<uuid>""" + "\n" +
@" ]," + "\n" +
@" ""SpecialCode"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""Bill"": {" + "\n" +
@" ""BillInfo"": {" + "\n" +
@" ""UUID"": ""<uuid>""," + "\n" +
@" ""TemplateUUID"": ""<uuid>""," + "\n" +
@" ""TemplateBase64String"": ""<string>""," + "\n" +
@" ""BillSerieOrNumber"": ""<string>""," + "\n" +
@" ""IssueDate"": ""<dateTime>""," + "\n" +
@" ""CurrencyCode"": ""<string>""," + "\n" +
@" ""ExchangeRate"": ""<double>""," + "\n" +
@" ""RelatedDocument"": {" + "\n" +
@" ""Type"": ""EFATURA""," + "\n" +
@" ""Code"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""ValidityPeriod"": {" + "\n" +
@" ""StartDate"": ""<dateTime>""," + "\n" +
@" ""EndDate"": ""<dateTime>""" + "\n" +
@" }" + "\n" +
@" }," + "\n" +
@" ""CompanyInfo"": {" + "\n" +
@" ""TaxNumber"": ""<string>""," + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""TaxOffice"": ""<string>""," + "\n" +
@" ""PartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""AgentPartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""CustomerInfo"": {" + "\n" +
@" ""TaxNumber"": ""<string>""," + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""TaxOffice"": ""<string>""," + "\n" +
@" ""PartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""AgentPartyIdentifications"": [" + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""SchemeID"": ""<string>""," + "\n" +
@" ""Value"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""SellerInfo"": {" + "\n" +
@" ""User"": ""<string>""," + "\n" +
@" ""TableNo"": ""<string>""," + "\n" +
@" ""Address"": ""<string>""," + "\n" +
@" ""District"": ""<string>""," + "\n" +
@" ""City"": ""<string>""," + "\n" +
@" ""Country"": ""<string>""," + "\n" +
@" ""PostalCode"": ""<string>""," + "\n" +
@" ""Phone"": ""<string>""," + "\n" +
@" ""Fax"": ""<string>""," + "\n" +
@" ""Mail"": ""<string>""," + "\n" +
@" ""WebSite"": ""<string>""" + "\n" +
@" }," + "\n" +
@" ""BillLines"": [" + "\n" +
@" {" + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""Quantity"": ""<double>""," + "\n" +
@" ""UnitType"": ""<string>""," + "\n" +
@" ""Price"": ""<double>""," + "\n" +
@" ""KDVPercent"": ""<double>""," + "\n" +
@" ""KDVTotal"": ""<double>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""Name"": ""<string>""," + "\n" +
@" ""Quantity"": ""<double>""," + "\n" +
@" ""UnitType"": ""<string>""," + "\n" +
@" ""Price"": ""<double>""," + "\n" +
@" ""KDVPercent"": ""<double>""," + "\n" +
@" ""KDVTotal"": ""<double>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Notes"": [" + "\n" +
@" ""<string>""," + "\n" +
@" ""<string>""" + "\n" +
@" ]" + "\n" +
@" }," + "\n" +
@" ""Tags"": [" + "\n" +
@" ""<uuid>""," + "\n" +
@" ""<uuid>""" + "\n" +
@" ]," + "\n" +
@" ""SpecialCode"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '//ebill/Draft/CreateBulk',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"Bills": [
{
"Bill": {
"BillInfo": {
"UUID": "<uuid>",
"TemplateUUID": "<uuid>",
"TemplateBase64String": "<string>",
"BillSerieOrNumber": "<string>",
"IssueDate": "<dateTime>",
"CurrencyCode": "<string>",
"ExchangeRate": "<double>",
"RelatedDocument": {
"Type": "EFATURA",
"Code": "<string>"
},
"ValidityPeriod": {
"StartDate": "<dateTime>",
"EndDate": "<dateTime>"
}
},
"CompanyInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"CustomerInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"SellerInfo": {
"User": "<string>",
"TableNo": "<string>",
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"BillLines": [
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
},
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
}
],
"Notes": [
"<string>",
"<string>"
]
},
"Tags": [
"<uuid>",
"<uuid>"
],
"SpecialCode": "<string>"
},
{
"Bill": {
"BillInfo": {
"UUID": "<uuid>",
"TemplateUUID": "<uuid>",
"TemplateBase64String": "<string>",
"BillSerieOrNumber": "<string>",
"IssueDate": "<dateTime>",
"CurrencyCode": "<string>",
"ExchangeRate": "<double>",
"RelatedDocument": {
"Type": "EFATURA",
"Code": "<string>"
},
"ValidityPeriod": {
"StartDate": "<dateTime>",
"EndDate": "<dateTime>"
}
},
"CompanyInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"CustomerInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"SellerInfo": {
"User": "<string>",
"TableNo": "<string>",
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"BillLines": [
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
},
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
}
],
"Notes": [
"<string>",
"<string>"
]
},
"Tags": [
"<uuid>",
"<uuid>"
],
"SpecialCode": "<string>"
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept: application/json',
'Authorization: Bearer {{bearerToken}}'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
const axios = require('axios');
let data = JSON.stringify({
"Bills": [
{
"Bill": {
"BillInfo": {
"UUID": "<uuid>",
"TemplateUUID": "<uuid>",
"TemplateBase64String": "<string>",
"BillSerieOrNumber": "<string>",
"IssueDate": "<dateTime>",
"CurrencyCode": "<string>",
"ExchangeRate": "<double>",
"RelatedDocument": {
"Type": "EFATURA",
"Code": "<string>"
},
"ValidityPeriod": {
"StartDate": "<dateTime>",
"EndDate": "<dateTime>"
}
},
"CompanyInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"CustomerInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"SellerInfo": {
"User": "<string>",
"TableNo": "<string>",
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"BillLines": [
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
},
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
}
],
"Notes": [
"<string>",
"<string>"
]
},
"Tags": [
"<uuid>",
"<uuid>"
],
"SpecialCode": "<string>"
},
{
"Bill": {
"BillInfo": {
"UUID": "<uuid>",
"TemplateUUID": "<uuid>",
"TemplateBase64String": "<string>",
"BillSerieOrNumber": "<string>",
"IssueDate": "<dateTime>",
"CurrencyCode": "<string>",
"ExchangeRate": "<double>",
"RelatedDocument": {
"Type": "EFATURA",
"Code": "<string>"
},
"ValidityPeriod": {
"StartDate": "<dateTime>",
"EndDate": "<dateTime>"
}
},
"CompanyInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"CustomerInfo": {
"TaxNumber": "<string>",
"Name": "<string>",
"TaxOffice": "<string>",
"PartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "<string>",
"Value": "<string>"
},
{
"SchemeID": "<string>",
"Value": "<string>"
}
],
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"SellerInfo": {
"User": "<string>",
"TableNo": "<string>",
"Address": "<string>",
"District": "<string>",
"City": "<string>",
"Country": "<string>",
"PostalCode": "<string>",
"Phone": "<string>",
"Fax": "<string>",
"Mail": "<string>",
"WebSite": "<string>"
},
"BillLines": [
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
},
{
"Name": "<string>",
"Quantity": "<double>",
"UnitType": "<string>",
"Price": "<double>",
"KDVPercent": "<double>",
"KDVTotal": "<double>"
}
],
"Notes": [
"<string>",
"<string>"
]
},
"Tags": [
"<uuid>",
"<uuid>"
],
"SpecialCode": "<string>"
}
]
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '//ebill/Draft/CreateBulk',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {{bearerToken}}'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
POST /ebill/Draft/CreateBulk HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 1469
{
"Bills": [
{
"Bill": {
"BillInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateBase64String": "text",
"BillSerieOrNumber": "text",
"IssueDate": "2025-04-28T11:09:04.532Z",
"CurrencyCode": "text",
"ExchangeRate": 1,
"RelatedDocument": {
"Type": "EFATURA",
"Code": "text"
},
"ValidityPeriod": {
"StartDate": "2025-04-28T11:09:04.532Z",
"EndDate": "2025-04-28T11:09:04.532Z"
}
},
"CompanyInfo": {
"TaxNumber": "text",
"Name": "text",
"TaxOffice": "text",
"PartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text"
},
"CustomerInfo": {
"TaxNumber": "text",
"Name": "text",
"TaxOffice": "text",
"PartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text"
},
"SellerInfo": {
"User": "text",
"TableNo": "text",
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text"
},
"BillLines": [
{
"Name": "text",
"Quantity": 1,
"UnitType": "text",
"Price": 1,
"KDVPercent": 1,
"KDVTotal": 1
}
],
"Notes": [
"text"
]
},
"Tags": [
"123e4567-e89b-12d3-a456-426614174000"
],
"SpecialCode": "text"
}
]
}
[
"text"
]