/api/subscription/

%/{site.ampn./api/subscription/}

Create

Generate HeaderTest AJAX
POST /api/subscription/?
j=
{
"update":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"create":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns: subscription_id on success, -1 on failure.

Read

Generate HeaderTest AJAX
GET /api/subscription/?
i=
[
]
j=
{
"update":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"create":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns:

Update

Generate HeaderTest AJAX
POST /api/subscription/?
i=
[
]
j=
{
"update":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"create":
{
"cost":
{
"in_attr":
{
},
"label":
{
}
},
"interval":
{
"d":
{
"day":
{
},
"week":
{
},
"month":
{
},
"year":
{
}
},
"in_attr":
{
},
"label":
{
}
},
"entryName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns: 0 on success, -1 on failure.

Delete

Generate HeaderTest AJAX
POST /api/subscription/?
i=
[
]
Returns: 0 on success, -1 on failure.