Number of days before expiry date to send reminder notification
image_url
string
Image url of subscription
number_of_orders
number(optional)
Valid upto order (number) optional if not given valid to unlimited no of orders
description
string
Description of plan
is_active
number (optional)
1 for active 0 for in active
auto_assign
number(optional)
1 for assign plan to new customers for free
Request
Body Params application/json
Example
{"api_key":{{apikey}},"plan_name":"Gold Plan","amount":1420,"plan_duration":180,"reminder_days":15,"image_url":"@/home/user/Downloads/test.jpeg","number_of_orders":1,"description":"With Gold Plan You Can Have Unlimited Access For 180 Days","is_active":0,"auto_assign":1}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.yelo.red/open/customerSubscription/create' \
--header'Content-Type: application/json' \
--data-raw'{
"api_key" : {{apikey}} ,
"plan_name" : "Gold Plan" ,
"amount" : 1420 ,
"plan_duration" : 180 ,
"reminder_days" : 15 ,
"image_url" : "@/home/user/Downloads/test.jpeg" ,
"number_of_orders": 1 ,
"description" : "With Gold Plan You Can Have Unlimited Access For 180 Days" ,
"is_active" : 0 ,
"auto_assign" : 1
}'