Purchase Commitments
Purchase cloud commitments to optimize costs for your customers using the Archera Partner API
Use the Archera Partner API to programmatically purchase cloud commitments for your customers.
Prerequisites:
Partner API key and the customer organization ID from onboarding
Customer organization must be onboarded with cloud integration complete
Customer billing data must be synced (typically 24-48 hours after onboarding)
Base URL: https://api.archera.ai/v2
Authentication: Include x-api-key: YOUR_PARTNER_API_KEY header in all requests.
The examples use shell variables. Set them once, with your real values, before you run any command:
export PARTNER_API_KEY="your-partner-api-key"
export CHILD_ORG_ID="customer-organization-id"Step 1: Get the recommended commitment plan
Retrieve Archera's recommended commitment plan for the customer. provider is required and is aws or azure:
curl -H "x-api-key: $PARTNER_API_KEY" \
"https://api.archera.ai/v2/org/$CHILD_ORG_ID/partners/purchase-plans-v2/recommended?provider=aws"Response: the recommended plan for that provider, including its id, name, dates, projected savings, and line items. A 204 No Content response means no recommendation exists yet, usually because billing data is still syncing.
Save from response: id. The next step uses it as PLAN_ID:
export PLAN_ID="id-from-the-response"Step 2: Purchase the commitment plan
Execute the purchase for the plan:
Parameters:
email- The user who executes the purchase. Archera records this user as the purchaser and gives them admin access to the customer organization if they do not have it yet.
The API executes the commitment purchase in the customer's cloud account and returns the purchased plan.
What the API Enables
The Partner API provides:
Archera recommendations for optimal commitment purchases based on usage patterns
Programmatic purchasing without navigating cloud provider consoles
Automated optimization that continuously finds savings opportunities
White-label capabilities to embed in your platform
Use Cases
By integrating commitment purchasing into your platform, you can:
Deliver enterprise-grade cloud cost optimization as a native feature
Create new revenue streams while keeping customers in your ecosystem
Automate savings recommendations and execution on a schedule
Build dashboards showing ROI and lifetime savings to customers
Last updated
Was this helpful?

