Checkout 2.0
GetInvoiceDetails
POST /CheckOut2Api/GetInvoiceDetails

Returns detailed invoice information about a single purchase identified by a Purchase ID. Intended use is for merchants that wants to print and distribute their own invoices.

Input Parameters

NameData TypeDefault valueDescription
PurchaseIdStringNone. Must be specifiedThe ID obtained during the negotiation phase that identified the purchase.

Example request

{
  "PurchaseId": "19ac0d1ee909c302d212b4324d9194b5"
}

Output parameters

The method returns invoice details for merchants that wants to print and distribute their invoices them selfs. Method returns values for completed purchases with payment type Invoice, Loan, Part Payment or Direct invoice.

NameData TypeDescriptionInvoiceLoanCard paymentDirect payment
PurchaseIDStringUnique key to the purchase.Check markCheck mark
InvoicingFirstNameStringThe first name of the customer on the invoicing address.Check markCheck markCheck markCheck mark
InvoicingLastNameStringThe last name of the customer on the invoicing address.Check markCheck markCheck markCheck mark
InvoicingAddressLine1StringThe first line of the invoicing address.Check markCheck markCheck markCheck mark
InvoicingAddressLine2StringThe second line of the invoicing address.Check markCheck markCheck markCheck mark
InvoicingZipStringThe ZIP code on the invoicing address.Check markCheck markCheck markCheck mark
InvoicingCityStringThe city on the invoicing address.Check markCheck markCheck markCheck mark
CompletedStringDate and time for completed checkout purchase.Check markCheck markCheck markCheck mark
TotalAmountDecimalInvoice AmountCheck markCheck markCheck markCheck mark
StateEnumeration CheckOutPurchaseStateThe current state of the purchase.Check markCheck markCheck markCheck mark
TotalAuthorizedAmountDecimalTotalAutorizedAmount inclusive eventual tolerance.Check markCheck markCheck markCheck mark
MinimumAmountToPayDecimalMinimum amount to pay. Customer will be rolled over to account.Check markCheck markCheck markCheck mark
DueDateDateTimeinvoice due dateCheck markCheck markCheck markCheck mark
InvoiceDateDateTimeinvoice issued dateCheck markCheck markCheck markCheck mark
BankAccountStringAvarda bank account where to pay the invocie.Check markCheck markCheck markCheck mark
DebitItemsClass List of ItemsPurchase itemsCheck markCheck markCheck markCheck mark
CreditItemsClass List of ItemsCredit / return itemsCheck mark
AliasAccountStringPaymentReference for double invocie
AccountNumberStringPaymentReference
ReceiverStringPayment receiver – Avarda

Response Value example

{
  "PurchaseId": "22d27ed7947d3b8ba3d122fe581c9f7b",
  "State": 2,
  "InvoicingFirstName": "FirstName",
  "InvoicingLastName": "LastName",
  "InvoicingAddressLine1": "InvoiceAddreeLine1",
  "InvoicingAddressLine2": "InvoiceAddreeLine2",
  "InvoicingZip": "65226",
  "InvoicingCity": "City",
  "Completed": "2019-08-30T13:20:32.177",
  "TotalAmount": 10.55,
  "TotalAuthorizedAmount": 31.84,
  "MinimumAmountToPay": 70.0,
  "BankAccount": "475 20 04-4",
  "DueDate": "2019-09-29T13:20:54.297",
  "InvoiceDate": "2019-08-30T13:20:54.297",
  "AccountNumber": "123456789",
  "AliasAccount": "123456789",
  "Receiver": "Avarda",
  "DebitItems": [
    {
      "Description": "Description",
      "Notes": "Notes",
      "Amount": 10.55,
      "TaxCode": null,
      "TaxAmount": 10.45
    }
  ],
  "CreditItems": []
}