How to change subscription to "paid" and Start/end dates via API

  • IT LATAM
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 6 months ago #141692 by IT LATAM
Hello Tuan.

We need to change some subscriptions parameters via API like:
  • Status to PAID once we had received the payment
  • Start and End dates for subscriptions.
Is it possible using API?

Thanks
 

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #141694 by Tuan Pham Ngoc
Hello

The API is still very basic. However, Yes, you can make a post request to this URL:

domain.com/index.php?option=com_osmember...api_key=YOUR_API_KEY

In the post data, you pass the following data:

id: ID of the record you want to update data
published: 1
from_date: The start date of the subscription
to_date: The end date of the subscription

Please try that. It should work

Tuan

Please Log in or Create an account to join the conversation.