Notice: Undefined offset: 2 in /home2/icentarb/public_html/icentar/classes/class.permissions.php on line 735
# PowerShell skripta za slanje HTTP POST zahteva
$url = "http://127.0.0.1:3566/api/invoices"
$headers = @{
Authorization = "Bearer 0123456789abcdef0123456789abcdef"
ContentType = "application/json"
RequestId = "12345"
}
$body = @{
print = $false
email = "test@ofs.ba"
invoiceRequest = @{
invoiceType = "Normal"
transactionType = "Sale"
payment = @(
@{
amount = 100.00
paymentType = "Cash"
},
@{
amount = 200.00
paymentType = "Card"
}
)
items = @(
@{
name = "Artikl 1"
labels = @("F")
totalAmount = 100.00
unitPrice = 50.00
quantity = 2.000
},
@{
name = "Artikl 2"
labels = @("F")
totalAmount = 200.00
unitPrice = 200.00
quantity = 1.000
}
)
cashier