RapidAPI logo

Stripe

FREE
By dimashirokov
Updated 6 months ago
Payments
5.8/10
Popularity Score
166ms
Latency
-
Success Rate

Stripe API Documentation

Accept, process and manage online payments & subscriptions.

View API Details
POSTcancelSubscription
POSTcaptureCharge
POSTcloseDispute
POSTcreateAccount
POSTcreateBankAccount
POSTcreateBankAccountToken
POSTcreateCard
POSTcreateCardToken
POSTcreateCharge
POSTcreateCoupon
POSTcreateCustomer
POSTcreateFeeRefund
POSTcreateFileUpload
POSTcreateInvoice
POSTcreateInvoiceItem
POSTcreateOrder
POSTcreatePiiToken
POSTcreatePlan
POSTcreateProduct
POSTcreateReceiver
POSTcreateRefund
POSTcreateSKU
POSTcreateSubscription
POSTcreateTransfer
POSTcreateTransferReversal
POSTdeleteAccount
POSTdeleteBankAccount
POSTdeleteCard
POSTdeleteCoupon
POSTdeleteCustomer
POSTdeleteCustomerDiscount
POSTdeleteInvoiceItem
POSTdeletePlan
POSTdeleteProduct
POSTdeleteSKU
POSTdeleteSubscriptionDiscount
POSTgetAccount
POSTgetAccountBalance
POSTgetAccountList
POSTgetApplicationFee
POSTgetApplicationFeeList
POSTgetBalanceHistory
POSTgetBalanceTransaction
POSTgetBankAccount
POSTgetBankAccountList
POSTgetCard
POSTgetCardList
POSTgetCharge
POSTgetChargesList
POSTgetCountrySpec
POSTgetCountrySpecsList
POSTgetCoupon
POSTgetCouponList
POSTgetCustomer
POSTgetCustomerList
POSTgetDispute
POSTgetDisputes
POSTgetEvent
POSTgetEventList
POSTgetFeeRefund
POSTgetFeeRefundList
POSTgetInvoice
POSTgetInvoiceItem
POSTgetInvoiceItemsList
POSTgetInvoiceLineItems
POSTgetInvoiceList
POSTgetOrder
POSTgetOrderList
POSTgetOrderReturn
POSTgetOrderReturnList
POSTgetPlan
POSTgetPlanList
POSTgetProduct
POSTgetProductList
POSTgetReceiver
POSTgetReceiverList
POSTgetRefund
POSTgetRefundList
POSTgetSKU
POSTgetSKUList
POSTgetSubscription
POSTgetSubscriptionList
POSTgetToken
POSTgetTransfer
POSTgetTransferList
POSTgetTransferReversal
POSTgetTransferReversalList
POSTpayInvoice
POSTpayOrder
POSTrejectAccount
POSTreturnOrder
POSTupdateAccount
POSTupdateBankAccount
POSTupdateCard
POSTupdateCharge
POSTupdateCoupon
POSTupdateCustomer
POSTupdateDispute
POSTupdateFeeRefund
POSTupdateInvoice
POSTupdateInvoiceItem
POSTupdateOrder
POSTupdatePlan
POSTupdateProduct
POSTupdateRefund
POSTupdateSKU
POSTupdateSubscription
POSTupdateTransfer
POSTupdateTransferReversal
POSTwebhookEvent
POSTcancelSubscription

Cancels a customer's subscription. If you set the atperiodend parameter to true, the subscription will remain active until the end of the period, at which point it will be canceled and not renewed.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Stripe.
subscriptionIdSTRING
REQUIREDID of subscription to retrieve.
Optional Parameters
atPeriodEndSELECT
OPTIONALA flag that if set to true will delay the cancellation of the subscription until the end of the current period.
Code Snippet
unirest.post("https://StripedimashirokovV1.p.rapidapi.com/cancelSubscription")
.header("X-RapidAPI-Host", "StripedimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://StripedimashirokovV1.p.rapidapi.com/cancelSubscription
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://StripedimashirokovV1.p.rapidapi.com/cancelSubscription")
.header("X-RapidAPI-Host", "StripedimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication