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
| Field | R | Type | Description |
|---|---|---|---|
| CountryCode | * | String | Country code for the customer, e.g. NO for Norway. |
| FullName | - | String | Customer full name as it should appear on the agreement. |
| StreetAddress | - | String | Street address of the customer. |
| PostalCode | - | String | Postal code for the customer's address. |
| City | - | String | City for the customer's address. |
| OrderCreatedDate | - | DateTime | Date and time when the original order was created. Used in the agreement text. |
| TotalAmount | - | Decimal | Total amount for the order the agreement refers to. |
| NationalId | - | String | National identification number for the customer. (Norwegian personal ID number.) |
Output
GetInvoiceCreditAgreementPdfResponse
| Field | R | Type | Description |
|---|---|---|---|
| Accepted | * | Boolean | Indicates if the request was accepted. |
| ErrorMessage | - | String | Populated if the request failed. |
| ResultCode | * | Integer | See Result Code table. |
| FileLengthInBytes | - | Long | Length of the generated PDF file in bytes. |
| FileBinaryDataBase64 | - | String | The PDF file contents, Base64-encoded. Decode this value to get the raw PDF bytes. |
Response:
Accepted = trueResultCode = 1FileBinaryDataBase64with the Base64‐encoded PDFFileLengthInBytes