curl "https://api.ideardev.com/api/v1/pricing_agreements" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"
Negotiated pricing
Tiered postpaid agreements with clients. Superusers only.
apihttps://api.ideardev.com/api/v1curl "https://api.ideardev.com/api/v1/pricing_agreements/44" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"
Creates an agreement.
api.ideardev.com
namebodybase_fee_usdbodyincluded_creditsbodybilling_daybodytiersbodycurl -X POST "https://api.ideardev.com/api/v1/pricing_agreements" \
-H "Authorization: Bearer $IDEARDEV_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Client A",
"base_fee_usd": 200,
"included_credits": 5000,
"billing_day": 1,
"tiers": [
{
"from_units": 0,
"to_units": 10000,
"unit_price_usd": 0.02
},
{
"from_units": 10000,
"to_units": null,
"unit_price_usd": 0.015
}
]
}'curl -X PATCH "https://api.ideardev.com/api/v1/pricing_agreements/44" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"
curl -X DELETE "https://api.ideardev.com/api/v1/pricing_agreements/44" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"
curl "https://api.ideardev.com/api/v1/pricing_agreements/44/periods" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"
Calculates the charge for a volume without saving anything.
api.ideardev.com
unitsbodycurl -X POST "https://api.ideardev.com/api/v1/pricing_agreements/simulate" \
-H "Authorization: Bearer $IDEARDEV_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"units": 25000
}'curl "https://api.ideardev.com/api/v1/pricing_agreements/clients" \ -H "Authorization: Bearer $IDEARDEV_TOKEN"