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 B2B EHF/PEPPOL creditnote

POST
/send/ehf30/creditnote

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/ehf30/creditnote' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Creditnote": {
        "Identifier": "unique_invoice_identifier_ehf_invoice_20200301",
        "ID": "2019-112",
        "IssueDate": "2020-03-01",
        "DueDate": "2020-04-01",
        "Note": "Message to the receiver",
        "DocumentCurrencyCode": "NOK",
        "AccountingCost": "",
        "LanguageID": "NO",
        "BuyerReference": "ACE22",
        "InvoicePeriod": {
            "StartDate": "2020-11-01",
            "EndDate": "2020-11-30",
            "DescriptionCode": "35"
        },
        "OrderReference": {
            "ID": "PROSJEKT 574"
        },
        "BillingReference": [
            {
                "InvoiceDocumentReference": {
                    "ID": "inv123",
                    "IssueDate": ""
                }
            }
        ],
        "DespatchDocumentReference": {
            "ID": "401707115400000753022"
        },
        "ContractDocumentReference": {
            "ID": ""
        },
        "AdditionalDocumentReference": [
            {
                "ID": "2019-112-01",
                "DocumentDescription": "Commercial invoice",
                "Attachment": {
                    "EmbeddedDocumentBinaryObject": {
                        "MimeCode": "application/pdf",
                        "Filename": "Invoice_03_2020.pdf",
                        "Data": "JVBERi0xLjUNCiW1tbW1DQoxIDA...CjE3ODU4Mg0KJSVFT0Y="
                    },
                    "ExternalReference": {
                        "URI": ""
                    }
                }
            }
        ],
        "AccountingSupplierParty": {
            "Party": {
                "EndpointID": "5565268363",
                "SchemeID": "0088",
                "PartyIdentification": {
                    "ID": ""
                },
                "PartyName": {
                    "Name": "Compello AB"
                },
                "PostalAddress": {
                    "StreetName": "Djupdalsvägen 18",
                    "CityName": "Sollentuna",
                    "PostalZone": "19251",
                    "Country": {
                        "IdentificationCode": "SE"
                    }
                },
                "PartyTaxScheme": [
                    {
                        "CompanyID": "SE556478655501",
                        "TaxScheme": {
                            "ID": "VAT"
                        }
                    }
                ],
                "PartyLegalEntity": {
                    "RegistrationName": "Compello AB",
                    "CompanyID": "962392687"
                },
                "Contact": {
                    "Name": "Ole Olsen",
                    "Telephone": "4699887766",
                    "ElectronicMail": "oleo@company.se"
                }
            }
        },
        "AccountingCustomerParty": {
            "Party": {
                "EndpointID": "5565268363",
                "SchemeID": "0088",
                "PartyIdentification": {
                    "ID": ""
                },
                "PartyName": {
                    "Name": "Compello AB"
                },
                "PostalAddress": {
                    "StreetName": "Djupdalsvägen 18",
                    "CityName": "Sollentuna",
                    "PostalZone": "19251",
                    "Country": {
                        "IdentificationCode": "SE"
                    }
                },
                "PartyTaxScheme": [
                    {
                        "CompanyID": "SE556478655501",
                        "TaxScheme": {
                            "ID": "VAT"
                        }
                    }
                ],
                "PartyLegalEntity": {
                    "RegistrationName": "Compello AB",
                    "CompanyID": "962392687"
                },
                "Contact": {
                    "Name": "Ole Olsen",
                    "Telephone": "4699887766",
                    "ElectronicMail": "oleo@company.se"
                }
            }
        },
        "Delivery": {
            "ActualDeliveryDate": "2020-03-28",
            "DeliveryLocation": {
                "Address": {
                    "StreetName": "Djupdalsvagen 18",
                    "CityName": "Sollentuna",
                    "PostalZone": "19251",
                    "Country": {
                        "IdentificationCode": "SE"
                    }
                },
                "ID": "1002000300045",
                "SchemeID": "0088"
            },
            "DeliveryParty": {
                "PartyName": {
                    "Name": "Compello AS"
                }
            }
        },
        "PaymentMeans": [
            {
                "PaymentMeansCode": "31",
                "PaymentID": "1000105906",
                "PayeeFinancialAccount": {
                    "ID": "NO8920852824280",
                    "Name": "AccountX",
                    "FinancialInstitutionBranch": {
                        "ID": "2085",
                        "FinancialInstitution": {
                            "ID": "SPTRNO22"
                        }
                    }
                }
            }
        ],
        "PaymentTerms": {
            "Note": "20 dager netto"
        },
        "AllowanceCharge": [
            {
                "ChargeIndicator": true,
                "AllowanceChargeReasonCode": "string",
                "AllowanceChargeReason": "string",
                "MultiplierFactorNumeric": 0,
                "Amount": 0,
                "BaseAmount": 0,
                "TaxCategory": {
                    "ID": "string",
                    "Percent": 0,
                    "TaxScheme": {
                        "ID": "string"
                    }
                }
            }
        ],
        "LegalMonetaryTotal": {
            "LineExtensionAmount": 400,
            "TaxExclusiveAmount": 400,
            "TaxInclusiveAmount": 400,
            "AllowanceTotalAmount": 400,
            "ChargeTotalAmount": 400,
            "PrepaidAmount": 0,
            "PayableRoundingAmount": 0,
            "PayableAmount": 400
        },
        "TaxTotal": {
            "TaxAmount": 0,
            "TaxSubTotal": [
                {
                    "TaxableAmount": 0,
                    "TaxAmount": 0,
                    "TaxCategory": {
                        "ID": "string",
                        "Percent": 0,
                        "TaxExemptionReasonCode": "string",
                        "TaxExemptionReason": "string",
                        "TaxScheme": {
                            "ID": "string"
                        }
                    }
                }
            ]
        },
        "CreditNoteLines": [
            {
                "ID": "1",
                "Note": "Varelinje 1",
                "Quantity": 1,
                "QuantityUnitCode": "EA",
                "LineExtensionAmount": 400,
                "AccountingCost ": "AccountingCost",
                "OrderLineReference": {
                    "LineID": "1"
                },
                "InvoicePeriod": {
                    "StartDate": "2020-11-01",
                    "EndDate": "2020-11-30"
                },
                "AllowanceCharge": {
                    "ChargeIndicator": false,
                    "AllowanceChargeReason": "Rabatt",
                    "Amount": "0.00"
                },
                "AllowanceChargeArray": [
                    {
                        "ChargeIndicator": true,
                        "AllowanceChargeReasonCode": "string",
                        "AllowanceChargeReason": "string",
                        "MultiplierFactorNumeric": 0,
                        "Amount": 0,
                        "BaseAmount": 0
                    }
                ],
                "Item": {
                    "Description": "string",
                    "Name": "string",
                    "SellersItemIdentification": {
                        "ID": "string"
                    },
                    "ClassifiedTaxCategory": {
                        "ID": "string",
                        "Percent": 0,
                        "TaxScheme": {
                            "ID": "string"
                        }
                    }
                },
                "Price": {
                    "PriceAmount": 400,
                    "BaseQuantity": 1
                }
            }
        ]
    },
    "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
About
Next
Add a new B2B EHF/PEPPOL invoice
Built with