Import an invoice.

Creates an invoice from another system. Will capture/activate payment if applicable.
Read more about the method here.

Request
Request Body schema:

Invoice

ClientOrderRef
required
integer <int32>

Reference basket/quotation id.

CurrencyCode
required
string

Currency code, e.g. SEK. Max length: 3

ErpOrderNo
required
string

Reference ERP order number.

InvoiceDate
required
string <DateTime>

Invoice creation date.

InvoiceNo
string

Invoice identification number. Must be unique.

AddressLine1
string

First line of receiver's address.

AddressLine2
string

Second line of receiver's address.

ApplicationKey
string <Guid>

Application identifier.

Attention
string

Receiver attention.

CareOf
string

Receiver care of.

City
string

Receiver's city.

Comment
string

Client comment.

Country
string

Receiver's country.

CountryCode
string

Country code (e.g. 'SE') explicit set for invoice to be forwarded to PSP.

CreditedInvoiceNo
string

Invoice number of the invoice to credit (Only mandatory for credits).

CultureCode
string

Culture code (e.g. 'sv-SE') explicit set for invoice to be forwarded to PSP.

DeliveryDate
string <DateTime>

Date when order was shipped.

Gln
string

Global location number. Identifier for company/customer.

GroupCode
string

Code used for grouping of invoices (for partial invoicing).

InvoiceDueDate
string <DateTime>

Last date for invoice payments.

InvoiceRoundOff
number

Total invoice round off.

IsLastInvoiceForOrder
boolean

Determines if all invoices already received in case of partial payments. Null is considered as true.

Array of objects <InvoiceItem> (InvoiceItem)

List of invoiced order items. Mandatory for PSP capture.

Name
string

Receiver name

object <Payment> (Payment)

Represents successful payment reservation. Either PaymentCode or PaymentRef must be provided.

PaymentMethodCode
string

Code for payment method used (for receipts).

PaymentMethodName
string

Name of payment method used (for receipts).

Region
string

Receiver's region.

SuppressPspCall
boolean

Set to true to suppress a PSP call for this invoice. Invoice will be stored as information only.

TotalAmount
number

Deprecated

Vat
number

VAT amount

VatRoundOff
number

Deprecated

ZipCode
string

Receiver's zip code.

Responses
200

Success

400

Bad Request

500

Internal Server Error

post/Order/CreateInvoice
Request samples
{
  • "ClientOrderRef": 0,
  • "CurrencyCode": "string",
  • "ErpOrderNo": "string",
  • "InvoiceDate": "string",
  • "InvoiceNo": "string",
  • "AddressLine1": "string",
  • "AddressLine2": "string",
  • "ApplicationKey": "string",
  • "Attention": "string",
  • "CareOf": "string",
  • "City": "string",
  • "Comment": "string",
  • "Country": "string",
  • "CountryCode": "string",
  • "CreditedInvoiceNo": "string",
  • "CultureCode": "string",
  • "DeliveryDate": "string",
  • "Gln": "string",
  • "GroupCode": "string",
  • "InvoiceDueDate": "string",
  • "InvoiceRoundOff": 0,
  • "IsLastInvoiceForOrder": true,
  • "Items": [
    ],
  • "Name": "string",
  • "Payment": {
    },
  • "PaymentMethodCode": "string",
  • "PaymentMethodName": "string",
  • "Region": "string",
  • "SuppressPspCall": true,
  • "TotalAmount": 0,
  • "Vat": 0,
  • "VatRoundOff": 0,
  • "ZipCode": "string"
}