Invoices

Add asset to invoice from stream. If assetId is supplied and an asset already exists with the given ID, then asset will be patched with the supplied data. If assetId is supplied and no asset with the given ID exists, then the created asset will be assigned the supplied assetId. If assetId is empty, a new asset will be created and assigned a guid as ID.

Add new invoice asset from stream

post/api/Invoices/{invoiceId}/AddAsset

Request

  • Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
  • URL: https://api.omnium.no/api/Invoices/{invoiceId}/AddAsset
  • Auth: API key in header Authorization

Path parameters

invoiceIdstring required

Query parameters

fileNamestring required
assetIdstring nullable

Response

Asset added successfully

idstring nullable

Invoice ID

urlstring nullable

Invoice URL (invoice PDF or other external url)

invoiceNumberstring nullable

Invoice number

invoiceTypestring nullable

Invoice type [Ingoing, Outgoing, ]

invoiceDatestring date-time

Invoice date

customerIdstring nullable

Customer ID

customerNamestring nullable

Customer name

customerEmailstring nullable

Customer email

customerTypestring nullable

Customer type (Business / Private)

invoiceDueDatestring date-time

Invoice due date

kidstring nullable

Invoice KID-number (Norwegian customer identification number)

commentstring nullable

Invoice comment

orderIdstring nullable

Original order Id

projectIdstring nullable

Id of related project

deliveryDatestring date-time

Deliver date

amountnumber

In the order currency, typically USD, SEK, NOK.

amountExcludingTaxnumber

Amount excluding tax

amountRoundoffnumber

Amount of round off to nearest integer

amountOutstandingnumber

The amount outstanding

currencystring nullable

Invoice currency

isCreditNoteboolean

True if invoice is a credit note

originstring nullable

Where the invoice originated (Which system provided the ID)

storeIdstring nullable

Invoice store ID

marketIdstring nullable

Invoice market ID

modifiedstring date-time

Modified date

createdstring date-time

Created date

paymentMethodNamestring nullable

Payment method

Changes

No recorded changes to this operation across all 1 revision of this API.