Skip to main content
POST
Create a usage plan

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Optional request key. Plan code is the durable duplicate-prevention key within the shop and mode; changed terms for the same code conflict.

Body

application/json
code
string
required
currency
string
required
includedCredits
string
required
monthlyPrice
string
required
Pattern: ^(0|[1-9]\d{0,19})(\.\d{1,18})?$
name
string
required
overageUnitPrice
string
required
Pattern: ^(0|[1-9]\d{0,19})(\.\d{1,18})?$
unit
string
required

Response

The scoped resource. Duplicate creates return the original resource.

data
object
required