---
title: "Get Contract"
method: GET
path: "/partner/contract"
tags: ["Contract"]
---

# Get Contract

`GET /partner/contract`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/partner/contract`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/docs/partner/contract/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the contract details for the authenticated partner.

## Response `200`

Partner contract details.

- PartnerCustomerContractModel
  - `PartnerCustomerId` integer, nullable: Id of the partner-customer relationship the contract applies to. Set for customer contracts, null for partner-level contracts
  - `ContractValue` number: Total contract value over the agreed period
  - `MonthlyCommitmentValue` number, nullable: Optional monthly commitment value displayed alongside usage charts. Null if no monthly commitment is agreed
  - `ContractStartDate` string, date-time: Start date of the contract
  - `ContractEndDate` string, date-time: End date of the contract
  - `ContractBillingType` 1 | 2: 1 = Pay As You Go 2 = Post Paid
  - `Currency` 0 | 1: 0 = US Dollar 1 = Euro
  - `UpdatedByUserId` string, nullable: User id of the user updating this contract
  - `PartnerUserId` string, nullable: User id of the partner this contract applies to. Set for partner-level contracts, null for customer contracts

## Other responses

- `401`: The request authorization failed.
- `403`: The authenticated user is not a reseller or MSP partner.
- `404`: The partner has no contract configured.

---

[API](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/revisions/daf325756630?raw)
