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.
| Parameter | Mandatory | Description |
|---|---|---|
| contractguid | No¹ | string Filter by contract identifier. |
| imported | No¹ | TBD — example: 1 Filter by imported value. The supplied example uses 1; accepted values and their meanings are TBD. |
| idnumber | No¹ | string Filter by identification number. Accepted identification formats are TBD. |
| customerguid | No¹ | 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 path | Mandatory | Description |
|---|---|---|
| [].creditorreferencecode | TBD | string Creditor reference code. |
| [].contractguid | TBD | string Unique contract identifier. |
| [].contractrefno | TBD | string Contract reference number. |
| [].description | TBD | string Description of the contract. |
| [].active | TBD | boolean Indicates whether the contract is active. |
| [].imported | TBD | integer Import status value. Meaning of 1 and other accepted values is TBD. |
| [].customerguid | TBD | string Identifier of the customer associated with the contract. |
| [].customerref | TBD | string Customer reference number. |
| [].intervaldays | TBD | integer Number of days in the contract invoicing interval. |
| [].intervaltype | TBD | integer Interval type code. Meaning of 1 and its mapping to request intervaltype values are TBD. |
| [].paymentcondition | TBD | integer Payment condition value. Whether it is a code or a number of days is TBD. |
| [].contractdate | TBD | string Contract date, shown as YYYY-MM-DD. |
| [].startdate | TBD | string Contract start date, shown as YYYY-MM-DD. |
| [].enddate | No | null — non-null type TBD Contract end date. The supplied response contains null; non-null format is TBD. |
| [].recurring | TBD | integer Recurrence flag or code. Meaning of 1 and other accepted values is TBD. |
| [].numremaninginvoices | TBD | integer Remaining invoice count (draft interpretation). Field name is preserved exactly as supplied. |
| [].maxnumunpaidinvoices | TBD | integer Maximum number of unpaid invoices. Behavior at this limit is TBD. |
| [].numberofpayments | TBD | integer Number of payments in the agreement. |
| [].currencycode | TBD | string Currency code for the contract; the example uses SEK. |
| [].invoiceItems | TBD | array Invoice items associated with the contract. |
| [].invoiceItems[].permanentitem | TBD | boolean Indicates whether the invoice item is permanent. Recurrence rules are TBD. |
| [].invoiceItems[].itemcount | No | null — non-null type TBD Item quantity or count. The supplied value is null; non-null type and calculation rules are TBD. |
| [].invoiceItems[].itemdescription | TBD | string Description of the invoice item. |
| [].invoiceItems[].amount | TBD | number Amount for the item. Tax treatment and calculation rules are TBD. |
| [].invoiceItems[].vattypecode | TBD | string VAT type code; the example uses SE25. |
| [].invoiceItems[].remainingcount | No | null — non-null type TBD Remaining item count. The supplied value is null; non-null type and counting rules are TBD. |
| [].invoiceItems[].interval | TBD | integer Item interval value. Unit and interaction with the contract interval are TBD. |
| [].invoices | No | null — 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.
