Skip to main content
GET
/
partner
/
v1
/
customers
/
{customerNumber}
/
contracts
Get contracts for given customer (number)
curl --request GET \
  --url https://api.rabot-charge.de/partner/v1/customers/{customerNumber}/contracts \
  --header 'Authorization: Bearer <token>'
{
  "isSuccess": true,
  "message": null,
  "error": [
    {
      "severity": "Error",
      "code": "validation-failed",
      "message": "First name is required for non-business customers.",
      "details": null
    }
  ],
  "refUri": "<string>",
  "data": [
    {
      "contractNumber": "<string>",
      "tariffName": "Rabot.smart",
      "contractState": "Open",
      "name": "Home",
      "deliveryAddress": {
        "title": "Dr.",
        "firstName": "Thomas",
        "lastName": "Mustermann",
        "businessName": null,
        "gender": "Male",
        "extension": null,
        "streetName": "Grüner Weg",
        "houseNumber": "42",
        "city": "Berlin",
        "postCode": "14109",
        "countryCode": "DE"
      },
      "billingAddress": {
        "title": "Dr.",
        "firstName": "Thomas",
        "lastName": "Mustermann",
        "businessName": null,
        "gender": "Male",
        "extension": null,
        "streetName": "Grüner Weg",
        "houseNumber": "42",
        "city": "Berlin",
        "postCode": "14109",
        "countryCode": "DE"
      },
      "bankDetail": {
        "accountHolder": "Thomas Heinrich Mustermann",
        "iban": "DE89370400440532013000",
        "bic": "DEUTDEFF",
        "bankName": "Deutsche Bank",
        "hasAcceptedDirectDebit": true
      },
      "meterNumber": "12LN6786454",
      "meLoIdentifier": "DE12345678901234567890",
      "maLoIdentifier": "99987999749",
      "actualDateOfDelivery": "2025-03-01",
      "endDateOfDelivery": null,
      "cancellationPeriod": 1,
      "cancellationPeriodUnit": "Month",
      "durationPeriod": 1,
      "durationPeriodUnit": "Month",
      "renewalPeriod": 1,
      "renewalPeriodUnit": "Month",
      "expectedAnnualConsumptionInKwhPerYear": 3500,
      "accountingMethod": "IMSy (TAF7)",
      "distributionSystemOperatorCode": "9907248000001",
      "distributionSystemOperatorName": "SWM Infrastruktur GmbH & Co. KG",
      "previousSupplierCode": "9910660000004",
      "previousSupplierName": "Octopus Energy Germany",
      "paragraph14AInfo": {
        "isModule1InUse": true,
        "isModule2InUse": true,
        "isModule3InUse": true
      }
    }
  ],
  "count": 10,
  "hasMoreItems": true
}
This endpoint allows you to retrieve all contracts for a particular customer. A contract is only listed here after it has been confirmed, i.e. the contract confirmation has been sent out to the customer and a date for the start of delivery has been set. By default, the API returns only the first 10 records. Use offset and limit request parameters for paging.
Requires role:application, role:customer-support or role: finance-reporting scope or Linked relation on customer level.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerNumber
string
required

Customer number

Query Parameters

offset
integer<int32>
default:0

Offset of the page.

limit
integer<int32>
default:10

Size of the page.

Response

200 - application/json

OK

API response DTO with a list of items.

isSuccess
boolean

Success status of the operation based on status code (2xx range).

Example:

true

message
string | null

Optional message to provide additional information about the operation result.

Example:

null

error
object[] | null

Optional error details in case of an error(s).

refUri
string<uri> | null

Optional reference URI to point to the resulting resource.

data
object[]

Returned data instance.

count
integer<int32>

Number of items returned in the list.

Example:

10

hasMoreItems
boolean

Indicates, whether there are more items to be returned in the list, that are not included in the limit of this request.

Example:

true