Plans

Add a price to a plan

Add a price in a specific currency to a plan. Each plan can have one price per currency.

post/api/plans/{id}/prices

Path parameters

idstring required

Plan ID

Request body

currencystring required

ISO currency code

amountnumber required

Price amount

Example request

{
  "currency": "NGN",
  "amount": 9999.99
}

Response

Price added to plan

idstring required
planIdstring required
currencystring required
amountstring required

Decimal amount as string

isActiveboolean required
createdAtstring required
updatedAtstring required

Example response

{
  "id": "clx1234567890",
  "planId": "clxplan123",
  "currency": "USD",
  "amount": "49.9900",
  "isActive": true
}

Changes

Changed in 1 of the 2 revisions of this API.1

    • added the media type application/json for the response with the status 201

      response-media-type-added