curl --request POST \
--url https://api.paygentic.io/v0/plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"invoiceDisplayName": "<string>",
"description": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"billingInterval": "monthly",
"price": "<string>",
"paymentOptions": {
"outOfBand": true,
"payAsYouGo": true,
"prePaid": false,
"postPaid": false,
"credits": ""
},
"currency": "USD",
"tax": {},
"prices": [
"<string>"
]
}'
{
"id": "<string>",
"object": "plan",
"name": "<string>",
"paymentOptions": {
"outOfBand": true,
"payAsYouGo": true,
"prePaid": false,
"postPaid": false,
"credits": ""
},
"invoiceDisplayName": "<string>",
"description": "<string>",
"billingInterval": "<string>",
"currency": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"walletNamespaceId": "<string>",
"tax": {},
"prices": [
{
"id": "<string>",
"object": "price",
"billableMetricId": "<string>",
"model": "standard",
"invoiceDisplayName": "<string>",
"properties": {
"unitPrice": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
curl --request POST \
--url https://api.paygentic.io/v0/plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"invoiceDisplayName": "<string>",
"description": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"billingInterval": "monthly",
"price": "<string>",
"paymentOptions": {
"outOfBand": true,
"payAsYouGo": true,
"prePaid": false,
"postPaid": false,
"credits": ""
},
"currency": "USD",
"tax": {},
"prices": [
"<string>"
]
}'
{
"id": "<string>",
"object": "plan",
"name": "<string>",
"paymentOptions": {
"outOfBand": true,
"payAsYouGo": true,
"prePaid": false,
"postPaid": false,
"credits": ""
},
"invoiceDisplayName": "<string>",
"description": "<string>",
"billingInterval": "<string>",
"currency": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"walletNamespaceId": "<string>",
"tax": {},
"prices": [
{
"id": "<string>",
"object": "price",
"billableMetricId": "<string>",
"model": "standard",
"invoiceDisplayName": "<string>",
"properties": {
"unitPrice": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Plan created successfully
The response is of type object
.