Allows a subscriber (human or agent) to purchase a payment plan using crypto or fiat.
cURL
curl --request POST \ --url http://sandbox.mintlify.com/plan/{planId}/order \ --header 'Authorization: Bearer <token>'
{ "txHash": "<string>", "balance": { "isSubscriber": true, "total": 123, "used": 123, "remaining": 123 } }
const orderResult = await payments.orderPlan(planId)
{ "txHash": "string", "balance": { "isSubscriber": true, "total": "number", "used": "number", "remaining": "number" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the plan to order
Order successful
Show child attributes