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
  • 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.
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 letter

POST
/send/letter

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/letter' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Letter": {
        "Channel": "PRINT",
        "ChannelSettings": {
            "Digipost": {
                "SenderId": "1234567"
            },
            "Email": {
                "SenderName": "Company AS",
                "SenderEmailAddress": "no-reply@company.com",
                "Subject": "Information from Company AS"
            },
            "Kivra": {
                "SenderId": "1234567"
            }
        },
        "ExternalUrl": "https://amili.no",
        "FreeText": "PDF_attachment_encoded_in_Base64",
        "LayoutID": "",
        "Note": "",
        "Identifier": "unique_invoice_identifier",
        "LanguageID": "NO",
        "Invoicee": {
            "OrganizationNumber": "",
            "CustomerNo": "6854984",
            "NationalId": "010572xxxxx",
            "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"
        },
        "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"
        },
        "OtherReferences": [
            {
                "Type": "urn:no:ccn:einvoice:latepayment:fee",
                "Value": "70.00"
            }
        ]
    },
    "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 invoice
Next
Add a new B2C Swedish invoice
Built with