> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the purchasing settings

> Return the company's purchasing settings as JSON, the ones of the cockpit's Procurement settings page: `orderEmail`, the email that receives the order notifications (null when none is set); `defaultDeviceDecommissioningYears`, the default lifetime that sets a device's refresh date from its purchase date; `appleCareEnterpriseEnrollmentId` (null when the company is not enrolled) and `appleCareEnterpriseDurationYears`, its coverage duration. To change the email or the lifetime, use `updatePurchasingSettings`; for AppleCare Enterprise, `updateAppleCareEnterprise`. The countries open to orders are read with `getShippingCountries`, the policies with `getEquipmentPolicy` and `getPurchasingPolicy`, and the billing profiles with `getBillingProfiles`.

Key: ReadScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json get /purchasing-settings
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /purchasing-settings:
    get:
      tags:
        - PurchasingSettings
      summary: Get the purchasing settings
      description: >-
        Return the company's purchasing settings as JSON, the ones of the
        cockpit's Procurement settings page: `orderEmail`, the email that
        receives the order notifications (null when none is set);
        `defaultDeviceDecommissioningYears`, the default lifetime that sets a
        device's refresh date from its purchase date;
        `appleCareEnterpriseEnrollmentId` (null when the company is not
        enrolled) and `appleCareEnterpriseDurationYears`, its coverage duration.
        To change the email or the lifetime, use `updatePurchasingSettings`; for
        AppleCare Enterprise, `updateAppleCareEnterprise`. The countries open to
        orders are read with `getShippingCountries`, the policies with
        `getEquipmentPolicy` and `getPurchasingPolicy`, and the billing profiles
        with `getBillingProfiles`.
      operationId: getPurchasingSettings
      parameters: []
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchasingSettings_Output'
components:
  schemas:
    PurchasingSettings_Output:
      type: object
      properties:
        orderEmail:
          description: Email that receives the order notifications, null when none is set.
          anyOf:
            - type: string
            - type: 'null'
        defaultDeviceDecommissioningYears:
          type: number
          description: >-
            Default lifetime of a device, in years: the refresh date
            (`decommissioningDate`) Primo gives a device is its purchase date
            plus this.
        appleCareEnterpriseEnrollmentId:
          description: >-
            AppleCare Enterprise enrollment ID of the company, null when it is
            not enrolled.
          anyOf:
            - type: string
            - type: 'null'
        appleCareEnterpriseDurationYears:
          type: number
          description: >-
            AppleCare Enterprise coverage duration, in years. It only applies
            once an enrollment ID is set.
          enum:
            - 3
            - 4
      required:
        - orderEmail
        - defaultDeviceDecommissioningYears
        - appleCareEnterpriseEnrollmentId
        - appleCareEnterpriseDurationYears
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.