Retrieves details about a specific payment plan by its ID.
cURL
curl --request GET \ --url http://sandbox.mintlify.com/plan/{planId} \ --header 'Authorization: Bearer <token>'
{ "planId": "<string>", "metadata": { "name": "<string>", "description": "<string>" }, "price": { "priceType": "<string>", "tokenAddress": "<string>", "amounts": [ 123 ], "receivers": [ "<string>" ] }, "credits": { "creditsType": "<string>", "amount": 123, "durationOfThePlan": 123 }, "nftAddress": "<string>" }
const plan = await payments.getPlan(planId)
{ "planId": "string", "metadata": { "name": "string", "description": "string" }, "price": { "priceType": "FIXED_PRICE", "tokenAddress": "string", "amounts": ["number"], "receivers": ["string"] }, "credits": { "creditsType": "FIXED", "amount": "number", "minAmount": "number", "maxAmount": "number", "durationOfThePlan": "number" }, "nftAddress": "string?" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the plan to retrieve
Plan information
Show child attributes