POST
https://api.gofermata.com
/
v1
/
companies
/
{company_id}
/
plans
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
  }
}'

Authorizations

Authorization
string
header
required

To authenticate against the API, use HTTP Basic Authentication with your customer ID as the username and API key as the password.

Path Parameters

company_id
string
required

Body

application/json

Response

200

OK