curl --location --request POST '/send/invoice' \
--header 'Content-Type: application/json' \
--data-raw '{
"Invoice": {
"Channel": "EINVOICE",
"ChannelSettings": {
"Digipost": {
"SenderId": "1234567"
},
"Email": {
"SenderName": "Company AS",
"SenderEmailAddress": "no-reply@company.com",
"Subject": "Invoice from Company AS"
}
},
"PaymentType": "",
"DocumentCode": "380",
"DueDate": "2019-11-25",
"ExternalUrl": "https://amili.no",
"FreeText": "PDF_attachment_encoded_in_Base64",
"LayoutID": "",
"Note": "",
"Identifier": "unique_invoice_identifier",
"LanguageID": "NO",
"InvoiceDate": "2019-10-25",
"Invoicee": {
"OrganizationNumber": "",
"CustomerNo": "6854984",
"EinvoiceRef": "1245",
"EinvoiceIdentifier": "123456789",
"NationalId": "010572xxxxx",
"BirthDate": "24121985",
"Name": "Thomas Hansen",
"Address1": "Drammensveien 30",
"Address2": "Drammensveien 302",
"Address3": "Drammensveien 303",
"City": "Oslo",
"PostCode": "0620",
"CountryCode": "NO",
"Email": "thomash@gmail.com",
"Mobile": "4799653241",
"Reference": "Ref00001"
},
"InvoiceNo": "7500788961",
"Invoicer": {
"CompanyRegNo": "98741562",
"Name": "Utleier AS",
"Address1": "Kongeveien 1",
"City": "Oslo",
"PostCode": "0580",
"CountryCode": "NO",
"Email": "contact@company.com",
"Phone": "4722556699",
"WebAddress": "www.company.com"
},
"LineDetails": [
{
"CurrencyId": "NOK",
"SupplierProductCode": "0010",
"SupplierProductText": "Vare",
"Quantity": "1.00",
"Price": "3941.00",
"LineTotExclTax": "788.20",
"LineTotInclTax": "788.20",
"LineTotTax": "788.20",
"TaxPercent": "25",
"Discounts": [
{
"Description": "string",
"DiscountBase": 0,
"DiscountPercent": 0,
"DiscountAmount": 0
}
],
"Note": "Note",
"PostingInformation": "Project 1234"
}
],
"MessageType": "B2C",
"OrderDescription": "House rental March 2020",
"OtherReferences": [
{
"Type": "urn:no:ccn:einvoice:latepayment:fee",
"Value": "70.00"
}
],
"PaymentInfo": {
"KID": "127734800100051",
"OtherPaymentInfo": [
{
"Type": "urn:no:ccn:einvoice:latepayment:fee",
"Value": "70.00"
}
],
"OverDuePercent": "25",
"PaymentAccountInfo": {
"AccountNumber": "8960050577452",
"Swiftcode": "NDEANOKK",
"IBANcode": "NO8960050577452"
},
"PaymentAmount": {
"CurrencyId": "NOK",
"Amount": "3941.00"
},
"PaymentTermsText": "Husleie"
},
"Summary": {
"CurrencyId": "NOK",
"Total": "3941.00",
"TotalInclTax": "3941.00",
"TotalExclTax": "3152.80",
"TotalTax": "788.20",
"TaxBase": "3152.80",
"TaxPercent": "25",
"TaxAmount": "788.20",
"RoundingAmount": "0",
"Discounts": [
{
"Description": "string",
"DiscountBase": 0,
"DiscountPercent": 0,
"DiscountAmount": 0
}
],
"Taxes": [
{
"TaxBase": 0,
"TaxPercent": 0,
"TaxAmount": 0
}
]
}
},
"Subscription": {
"SubscriptionId": "DYubVXsH5pkH5rNXMJm9zjNQWSjQ1wYr",
"StorageId": "267"
}
}'