POST
/
plans
/
{public_id}
/
premiums
cURL
curl --request POST \
  --url https://sandbox.withclasp.com/plans/{public_id}/premiums \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "coverage_type": "member",
    "tobacco_usage": true,
    "relationship_category": "member",
    "age": "<string>",
    "amount": "<string>"
  }
]'
[
  {
    "coverage_type": "member",
    "tobacco_usage": true,
    "relationship_category": "member",
    "age": "<string>",
    "amount": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API Key authentication with required prefix "Bearer"

Path Parameters

public_id
string
required

Body

The body is of type object[].

Response

200 - application/json

The response is of type object[].