Skip to main content

Get Invoice Credit Agreement PDF

GetInvoiceCreditAgreementPdf

GetInvoiceCreditAgreementPdf generates a Norwegian invoice credit agreement as a PDF document, encoded as Base64. The method returns the binary contents of the agreement so you can present it for the end customer.

Note:

  • This method is only available for Invoice (faktura) client IDs.
  • It's intended for Norwegian invoice credit agreements.

Input

GetInvoiceCreditAgreementPdfRequest

FieldRTypeDescription
CountryCode*StringCountry code for the customer, e.g. NO for Norway.
FullName-StringCustomer full name as it should appear on the agreement.
StreetAddress-StringStreet address of the customer.
PostalCode-StringPostal code for the customer's address.
City-StringCity for the customer's address.
OrderCreatedDate-DateTimeDate and time when the original order was created. Used in the agreement text.
TotalAmount-DecimalTotal amount for the order the agreement refers to.
NationalId-StringNational identification number for the customer. (Norwegian personal ID number.)

Output

GetInvoiceCreditAgreementPdfResponse

FieldRTypeDescription
Accepted*BooleanIndicates if the request was accepted.
ErrorMessage-StringPopulated if the request failed.
ResultCode*IntegerSee Result Code table.
FileLengthInBytes-LongLength of the generated PDF file in bytes.
FileBinaryDataBase64-StringThe PDF file contents, Base64-encoded. Decode this value to get the raw PDF bytes.

Response:

  • Accepted = true
  • ResultCode = 1
  • FileBinaryDataBase64 with the Base64‐encoded PDF
  • FileLengthInBytes