Quote Expansion
POST
/v1/subscription/expansions
const url = 'https://api.vocapable.com/v1/subscription/expansions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"target_class":"engage","request_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/subscription/expansions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "target_class": "engage", "request_key": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ExpansionQuoteRequest
object
target_class
required
Target Class
string
request_key
required
Request Key
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ExpansionQuoteResponse
Customer figures only; provider IDs and commercial evidence stay private.
object
id
required
Id
string
status
required
Status
string
source_plan_id
required
Source Plan Id
string
target_plan_id
required
Target Plan Id
string
source_class
required
Source Class
string
target_class
required
Target Class
string
term
required
Term
string
amount_due_minor
required
Amount Due Minor
integer
currency
required
Currency
string
source_monthly_minor
required
Source Monthly Minor
integer
target_monthly_minor
required
Target Monthly Minor
integer
total_inbound_connections
required
Total Inbound Connections
integer
total_outbound_sessions
required
Total Outbound Sessions
integer
minute_rate_minor
required
Minute Rate Minor
string
attempt_fee_minor
required
Attempt Fee Minor
string
volume_ladder_applies
required
Volume Ladder Applies
boolean
expires_at
required
Expires At
string format: date-time
checkout_available
Checkout Available
boolean
payment_received
Payment Received
boolean
Example
{ "source_class": "engage", "target_class": "engage", "term": "mtm", "checkout_available": false, "payment_received": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}