> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-add-new-partner-apis.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Contract

> Get the contract details for the authenticated partner.



## OpenAPI

````yaml https://core-api-public-docs.b-cdn.net/docs/v3/PartnerPortal.json get /partner/contract
openapi: 3.0.0
info:
  title: bunny.net Partner Portal API
  version: 1.0.0
servers:
  - url: https://api.bunny.net
    description: bunny.net API Server
security:
  - AccessKey: []
tags:
  - name: Customers
  - name: Audit Log
  - name: Contract
  - name: Billing
  - name: Pricing
  - name: Products
paths:
  /partner/contract:
    get:
      tags:
        - Contract
      summary: Get Contract
      description: Get the contract details for the authenticated partner.
      operationId: GetPartnerContractEndpoint_GetContract
      responses:
        '200':
          description: Partner contract details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerCustomerContractModel'
        '401':
          description: The request authorization failed.
        '403':
          description: The authenticated user is not a reseller or MSP partner.
        '404':
          description: The partner has no contract configured.
      security:
        - AccessKey:
            - ResellerPartner
            - MSPPartner
        - bearer:
            - ResellerPartner
            - MSPPartner
components:
  schemas:
    PartnerCustomerContractModel:
      type: object
      additionalProperties: false
      properties:
        PartnerCustomerId:
          type: integer
          description: >-
            Id of the partner-customer relationship the contract applies to. Set
            for customer contracts, null for partner-level contracts
          format: int64
          nullable: true
        ContractValue:
          type: number
          description: Total contract value over the agreed period
          format: decimal
        MonthlyCommitmentValue:
          type: number
          description: >-
            Optional monthly commitment value displayed alongside usage charts.
            Null if no monthly commitment is agreed
          format: decimal
          nullable: true
        ContractStartDate:
          type: string
          description: Start date of the contract
          format: date-time
        ContractEndDate:
          type: string
          description: End date of the contract
          format: date-time
        ContractBillingType:
          description: Billing arrangement agreed with the customer
          oneOf:
            - $ref: '#/components/schemas/PartnerContractBillingType'
        Currency:
          description: Currency of the contract
          oneOf:
            - $ref: '#/components/schemas/PartnerCustomerContractCurrency'
        UpdatedByUserId:
          type: string
          description: User id of the user updating this contract
          nullable: true
        PartnerUserId:
          type: string
          description: >-
            User id of the partner this contract applies to. Set for
            partner-level contracts, null for customer contracts
          nullable: true
    PartnerContractBillingType:
      type: integer
      description: |-
        1 = PayAsYouGo
        2 = PostPaidPayAsYouGo
        3 = MonthlyPlan
      x-enumNames:
        - PayAsYouGo
        - PostPaidPayAsYouGo
        - MonthlyPlan
      enum:
        - 1
        - 2
        - 3
    PartnerCustomerContractCurrency:
      type: integer
      description: |-
        0 = USD
        1 = EUR
      x-enumNames:
        - USD
        - EUR
      enum:
        - 0
        - 1
  securitySchemes:
    AccessKey:
      type: apiKey
      description: API Access Key authorization header
      name: AccessKey
      in: header
    bearer:
      type: apiKey
      description: Bearer token authorization header
      name: Authorization
      in: header

````