Update a SaaS contract
Replace the contract configuration for the given SaaS. All prices must be expressed for one billing period defined by billingFrequency (not annualized).
flat_rate mode — a single recurring amount covers the whole subscription:
flatRatePricemust be set.unlicensedPricePerSeat,unlicensedMinimumSeatsBilled,licenses[].pricePerSeatandlicenses[].minimumSeatsBilledmust all benull.
per_licence mode — pricing is broken down per license type:
flatRatePricemust benull.unlicensedPricePerSeat,unlicensedMinimumSeatsBilled,licenses[].pricePerSeatandlicenses[].minimumSeatsBilledmust all be set.
The licenses array must exactly match the licenses defined in the SaaS: every entry must have the same id as the corresponding SaaS license (retrieve them via getSaasById).
Key: Write Scope: CompanyDocumentation Index
Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Body
Contract pricing mode. Use flat_rate for one recurring amount or per_licence for license-based pricing.
per_licence, flat_rate ISO currency code used for all contract prices.
EUR, GBP, USD, CHF, CAD Billing period used by every price in this contract: monthly, quarterly, or annual.
monthly, quarterly, annual Recurring flat-rate amount billed for one billing period defined by billingFrequency. Not annualized. Required when pricingMode is flat_rate; must be null when pricingMode is per_licence.
Price billed per unlicensed seat for one billing period defined by billingFrequency. Not annualized. Required when pricingMode is per_licence; must be null when pricingMode is flat_rate.
Minimum number of unlicensed seats billed during one billing period. Required when pricingMode is per_licence; must be null when pricingMode is flat_rate.
0 <= x <= 9007199254740991Priced contract lines, one entry per SaaS license. Required when pricingMode is per_licence; all pricePerSeat and minimumSeatsBilled values must be null when pricingMode is flat_rate. The list must exactly match the licenses defined in the SaaS (same id for every entry).
Response
Billing contract currently configured for this SaaS.
Derived financial metrics computed from the configured contract.
SaaS license catalog — all available licenses for this SaaS application.
All groups available in this SaaS application. Use id when provisioning.
All roles available in this SaaS application. Use id when provisioning.
All organization units available in this SaaS application. Use id when provisioning.