Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

API

URLs

Authorization

Every interaction with the API needs an Authorization Token. The token is generated per user. To obtain the subscription id of a purchase please configure an ITNS call (webhook) within the product itself. Please store the subscription id on your servers after receiving the webhook. The subscription id within the webhook is called aboid.

Change Subscription Plan

Request
POST /subscriptions/{subscription}/changeplan

  • {subscription} - The id of the subscription to upgrade
Body
{
	"product_id" : {product_id}
}
  • {product_id} - The id of the product you wish to subscribe to
Response
{
  "data": {
    "id": 19,
    "amount": 50000,
    "recurring_amount": 50000,
    "currency": "EUR",
    "starts_at": "2017-01-30T00:00:00+0100",
    "ends_at": "2017-01-30T00:00:00+0100",
    "due_at": "2017-03-02T00:00:00+0100",
    "purchased_at": "2017-01-30T14:09:44+0100",
    "min_cancel_date": "2017-01-29T11:32:10+0100",
    "transacted_at": "2017-01-30T00:00:00+0100"
  }
}


  • No labels