Skip to main content
PATCH
Update the purchasing settings
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
orderEmail
string<email> | null

Email that receives the order notifications. null removes it; left out, the stored one stays.

Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
defaultDeviceDecommissioningYears
enum<number>

Default lifetime of a device, in years: 2, 3, 4 or 5. Left out, the stored one stays.

Available options:
2,
3,
4,
5
updateDecommissioningDateOfAllDevices
boolean

true also rewrites the refresh date of every existing device that has a purchase date, to that date plus defaultDeviceDecommissioningYears, which must then be given. Left out or false, only the devices purchased from now on get the new lifetime.

Response

default - application/json
orderEmail
string | null
required

Email that receives the order notifications, null when none is set.

defaultDeviceDecommissioningYears
number
required

Default lifetime of a device, in years: the refresh date (decommissioningDate) Primo gives a device is its purchase date plus this.

appleCareEnterpriseEnrollmentId
string | null
required

AppleCare Enterprise enrollment ID of the company, null when it is not enrolled.

appleCareEnterpriseDurationYears
enum<number>
required

AppleCare Enterprise coverage duration, in years. It only applies once an enrollment ID is set.

Available options:
3,
4