Amili Docs
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
  1. send
  • Home
    • About
  • Debt.Collection
    • About
    • Collection API
      • CallBanqSoft
        • banqsoft
      • Batches
        • Get all batches
        • Get organization batches
        • Get batch by ID
      • Collections
        • Retrieve cases for an organization
      • Invoice
        • Create a new invoice
        • Get organization invoices
        • Get invoice by ID
        • Get invoice documents by invoice id
        • Get invoice history by invoice id
        • Get invoice payments by invoice id
        • Pause invoice
        • Withdraw invoice
        • Resume invoice
      • Payment
        • Create new payments
      • Api Status
        • Ping the server
        • Ping the server to check if authorized
        • Check the status of the API health
      • Organizations
        • Get reports on a organization
      • Settlement
        • Retrieve settlements from an organization
    • AutoCollect
      • Attachment
        • /webapi/api/Attachment
      • Batch
        • /webapi/api/Batch
        • /webapi/api/Batch
      • Ping
        • /webapi/api/Ping
  • Accounts Receivable
    • About
    • ARM API
      • Health
        • Check API health
      • ArItems
        • Get one AR item
        • Get a list of AR items
        • Put (update) ar item details
      • Documents
        • Get one document
        • POST (create) a batch of documents
        • POST (create) one document
        • Get a list of documents
      • AutoPostings
        • POST (create) one or more auto postings
      • GlItems
        • Get one GL item
        • Get a list of GL items
      • Customers
        • Get one customer
        • Delete a customer
        • POST (create) a batch of customers
        • PUT (update) a batch of customers
        • PUT (update) one customer
        • GET a list of customers
        • POST (create) one customer
      • Batches
        • Get one batch
      • PaymentReservations
        • Creates a new payment reservation
      • Files
        • POST (upload) one or more OS files
  • Distribution
    • About
    • Invoice API
      • send
        • Add a new B2B EHF/PEPPOL creditnote
          POST
        • Add a new B2B EHF/PEPPOL invoice
          POST
        • Add a new B2C invoice
          POST
        • Add a new B2C letter
          POST
        • Add a new B2C Swedish invoice
          POST
        • Add a new B2C Danish invoice
          POST
        • Check invoice status
          GET
        • Check invoice status
          POST
      • lookup
        • Get invoice lookup link
      • organization
        • Add a new company
        • Check company status
      • bankAgreement
        • Register new bank agreement
        • Check status of bank agreement
    • Partner API
      • Companies
        • Get available companies
      • Files
        • List all bundles/files within a specific period with FromDate/ToDate and CompanyId
        • Get a summary of all bundles/files within a specific period with FromDate/ToDate and CompanyId
        • List invoices based on filename
      • Invoice
        • Get a summary of all invoices within a specific period with FromDate/ToDate and CompanyId
      • Invoices
        • List invoices based on InvoiceNumber or specific DateTime (period)
      • InvoiceView
        • Look up invoice with TransactionRid and CompanyId
        • Look up invoice with InvoiceNumber and CompanyId
      • Receipt
        • Get receipt for invoice with TransactionRid and CompanyId
      • Token
        • Request a token.
  • Identity.Api
    • Identity
      • /token
      • /refresh
      • /verify
      • /health
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
  1. send

Add a new B2C Swedish invoice

POST
/send/swe/invoice

Request

Body Params application/jsonRequired

Examples

Responses

🟢202Accepted
application/json
accepted operation
Body

🟠400Bad Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/send/swe/invoice' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Invoice": {
        "Channel": "EINVOICE",
        "ChannelSettings": {
            "Kivra": {
                "SenderId": "1234567"
            },
            "Email": {
                "SenderName": "Company AS",
                "SenderEmailAddress": "no-reply@company.com",
                "Subject": "Invoice from Company AS"
            },
            "Print": {
                "Postaltype": "A"
            }
        },
        "DocumentCode": "380",
        "DueDate": "2019-11-25",
        "ExternalUrl": "https://amili.no",
        "FreeText": "PDF_attachment_encoded_in_Base64",
        "LayoutID": "",
        "Note": "",
        "Identifier": "unique_invoice_identifier",
        "LanguageID": "SV",
        "InvoiceDate": "2019-10-25",
        "Invoicee": {
            "OrganizationNumber": "",
            "Bankcode": "",
            "CustomerNo": "6854984",
            "EinvoiceRef": "1245",
            "NationalId": "198704xxxxxx",
            "Name": "Thomas Hansen",
            "Address1": "Enbackagarden 191",
            "Address2": "Enbackagarden 191",
            "Address3": "Enbackagarden 191",
            "City": "Borrby",
            "PostCode": "270 52",
            "CountryCode": "Sweden",
            "Email": "thomash@gmail.com",
            "Mobile": "4604144015029"
        },
        "InvoiceNo": "7500788961",
        "Invoicer": {
            "CompanyRegNo": "98741562",
            "FUI": "0000000.98741562.NB.SE",
            "Name": "Invoicer AS",
            "Address1": "Nasakersv 658",
            "City": "Oje",
            "PostCode": "403 93",
            "CountryCode": "Sweden",
            "Email": "contact@company.se",
            "Phone": "4608909909",
            "WebAddress": "www.company.se"
        },
        "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",
                "Bankcode": "",
                "Girocode": ""
            },
            "PaymentAmount": {
                "CurrencyId": "SEK",
                "Amount": "3941.00"
            },
            "PaymentTermsText": "House rent"
        },
        "Summary": {
            "CurrencyId": "SEK",
            "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"
    }
}'
Response Response Example
202 - Example 1
{
    "RequestId": "unique_invoice_identifier",
    "Message": "unique_invoice_identifier is accepted."
}
Modified at 2025-09-23 11:10:15
Previous
Add a new B2C letter
Next
Add a new B2C Danish invoice
Built with