cURL
curl --request POST \ --url https://api.gofermata.com/v1/companies/{company_id}/plans \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Test Plan", "renewal_denomination": "USD", "refill_cadence": "MONTHLY", "renewals": { "MONTHLY": { "amount": 1000 }, "YEARLY": { "amount": 1100 } }, "balances": { "tokens": { "amount": 500 }, "credits": { "amount": 0, "variable_amount_cost": 200 } }, "flags": { "no_watermark": true } }'
To authenticate against the API, use HTTP Basic Authentication with your customer ID as the username and API key as the password.
OK