Skip to content

Get Contract ​

Retrieve contract information using at least one query parameter.

GET /v1/Services/contractinvoicing

Use the Test or Production base URL configured under Overview.

Query parameters ​

At least one of contractguid, imported, idnumber or customerguid must be supplied. One parameter is sufficient; no individual parameter is mandatory. How multiple filters are combined is TBD.

ParameterMandatoryDescription
contractguidNo¹string
Filter by contract identifier.
importedNo¹TBD — example: 1
Filter by imported value. The supplied example uses 1; accepted values and their meanings are TBD.
idnumberNo¹string
Filter by identification number. Accepted identification formats are TBD.
customerguidNo¹string
Filter by customer identifier.

¹ Optional individually; at least one of the four parameters is required. Field descriptions are draft interpretations of the supplied parameter names.

Headers and authentication ​

Use OAuth 2.0 Client Credentials and the Authorization header with a Bearer access token, as described under Overview.

Response fields ​

The response payload is an array of contracts. Descriptions are draft interpretations of the supplied payload. TBD: Success HTTP status and full response schema. Mandatory is No where the example contains null; other fields remain TBD because a single response does not establish null handling or guaranteed presence.

Response body ​

Field pathMandatoryDescription
[].creditorreferencecodeTBDstring
Creditor reference code.
[].contractguidTBDstring
Unique contract identifier.
[].contractrefnoTBDstring
Contract reference number.
[].descriptionTBDstring
Description of the contract.
[].activeTBDboolean
Indicates whether the contract is active.
[].importedTBDinteger
Import status value. Meaning of 1 and other accepted values is TBD.
[].customerguidTBDstring
Identifier of the customer associated with the contract.
[].customerrefTBDstring
Customer reference number.
[].intervaldaysTBDinteger
Number of days in the contract invoicing interval.
[].intervaltypeTBDinteger
Interval type code. Meaning of 1 and its mapping to request intervaltype values are TBD.
[].paymentconditionTBDinteger
Payment condition value. Whether it is a code or a number of days is TBD.
[].contractdateTBDstring
Contract date, shown as YYYY-MM-DD.
[].startdateTBDstring
Contract start date, shown as YYYY-MM-DD.
[].enddateNonull — non-null type TBD
Contract end date. The supplied response contains null; non-null format is TBD.
[].recurringTBDinteger
Recurrence flag or code. Meaning of 1 and other accepted values is TBD.
[].numremaninginvoicesTBDinteger
Remaining invoice count (draft interpretation). Field name is preserved exactly as supplied.
[].maxnumunpaidinvoicesTBDinteger
Maximum number of unpaid invoices. Behavior at this limit is TBD.
[].numberofpaymentsTBDinteger
Number of payments in the agreement.
[].currencycodeTBDstring
Currency code for the contract; the example uses SEK.
[].invoiceItemsTBDarray
Invoice items associated with the contract.
[].invoiceItems[].permanentitemTBDboolean
Indicates whether the invoice item is permanent. Recurrence rules are TBD.
[].invoiceItems[].itemcountNonull — non-null type TBD
Item quantity or count. The supplied value is null; non-null type and calculation rules are TBD.
[].invoiceItems[].itemdescriptionTBDstring
Description of the invoice item.
[].invoiceItems[].amountTBDnumber
Amount for the item. Tax treatment and calculation rules are TBD.
[].invoiceItems[].vattypecodeTBDstring
VAT type code; the example uses SE25.
[].invoiceItems[].remainingcountNonull — non-null type TBD
Remaining item count. The supplied value is null; non-null type and counting rules are TBD.
[].invoiceItems[].intervalTBDinteger
Item interval value. Unit and interaction with the contract interval are TBD.
[].invoicesNonull — non-null type TBD
Invoice information associated with the contract (draft interpretation). The example contains null; non-null structure is TBD.

Error responses ​

TBD: Error status codes and response fields have not been supplied.