Cancels the customer's subscription
The unsubscribe url for the subscription to be canceled
Contains the data:
{
code: number;
subscription: string;
operation: string = "unsubscribe";
description: string;
status: string = "pending";
timestamp: number;
}
Changes the subscription plan for a given asset.
Subscribes to a given asset. Use this method ONLY if the accessFee.type === 'subscription'. Otherwise please use InPlayer.Payment.createPayment()
Contains the data:
{
code: 202,
message: "Submitted for payment"
}
Process a request for direct debit subscribe
Contains the data:
{
code: 200,
message: "Submitted for payment"
}
Gets the default credit card per currency used for subscription rebills
Contains the data:
{
cards: [{
number: number;
card_name: string;
exp_month: string;
exp_year: string;
}];
}
Gets subscription details for a given user by id
The subscription id.
Contains the data:
{
cancel_token: string;
status: string;
description: string;
asset_title: string;
asset_id: number;
formatted_amount: string;
amount: number;
currency: string;
merchant_id: number;
created_at: number;
updated_at: number;
next_billing_date: number;
unsubscribe_url: string;
}
Gets all subscriptions for a given user
The current page number. If it is not set the starting page will be returned.
The number of items per page. If it is not set the number of items per page will be 15.
The subscription status. It it is not set the regular active subscriptions will be returned.
Contains the data:
{
total: number;
page: number;
offset: number;
limit: number;
collection: [{
cancel_token: string;
status: string;
description: string;
asset_title: string;
asset_id: number;
formatted_amount: string;
amount: number;
currency: string;
merchant_id: number;
created_at: number;
updated_at: number;
next_billing_date: number;
unsubscribe_url: string;
}];
}
Process a request for start ideal subscribe
Contains the data:
{
code: 200,
message: "Submitted for payment"
}
Sets card per currency as default card that is to be used for further subscription rebills
Contains the data:
{
number: number;
card_name: string;
exp_month: number;
exp_year: number;
}
Generated using TypeDoc
Contains all Requests connected with subscriptions