Create Recurring Application Charge

Create a recurring charge for an application.

The Create Recurring Application Charge API is used to create a recurring charge for an application. This API is essential for developers implementing subscription-based billing workflows for their apps, allowing businesses to manage recurring charges with specific terms and limits.

This API is especially useful for:

  1. Setting up recurring billing for application usage.
  2. Defining usage-based billing terms and limits.
  3. Managing application subscription charges with trial periods and specific conditions.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
recurring_application_charge.namestringYesName of the recurring chargePremium Plan
recurring_application_charge.pricefloatYesPrice of the charge (must be positive number)19.99
recurring_application_charge.return_urlstringYesURL to redirect after charge confirmationhttps://example.com/return
recurring_application_charge.trial_daysint32NoNumber of trial days (0 for no trial)14
recurring_application_charge.capped_amountstringNoMaximum amount that can be charged (if applicable)100.00
recurring_application_charge.termsstringNoTerms of the recurring chargeMonthly subscription
recurring_application_charge.testbooleanNoWhether this is a test charge (default: false)true

Response Description

Public Response Fields

📘

Success Response

FieldTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response
data.recurring_application_chargesarray of objects[ {...}, {...} ]List of recurring charges
data.cursorstringnext_page_cursorCursor for next page
data.has_morebooleantrueWhether there are more pages available

Recurring Charge Object Structure

ParameterTypeExampleDescription
idstringrch_123456Unique identifier for the recurring charge
application_idstringapp_123456ID of the associated application
namestringPremium PlanName of the recurring charge
pricestring19.99Price of the charge
capped_amountstring100.00Maximum amount that can be charged
termsstringMonthly subscriptionTerms of the charge
return_urlstringhttps://example.com/returnURL to return after confirmation
confirmation_urlstringhttps://example.com/confirmURL to confirm the charge
statusstringactiveStatus of the charge
trial_daysint3214Number of trial days
activated_onstring2023-06-01T00:00:00ZDate when charge was activated (ISO 8601 format)
trial_ends_onstring2023-06-15T00:00:00ZDate when trial ends (ISO 8601 format)
billing_onstring2023-06-16T00:00:00ZDate when billing occurs (ISO 8601 format)
cancelled_onstring2023-06-30T00:00:00ZDate when charge was cancelled (ISO 8601 format)
cancel_sub_onstring2023-06-30T00:00:00ZDate when subscription was cancelled (ISO 8601 format)
testbooleanfalseWhether this is a test charge
created_atstring2023-05-01T00:00:00ZCreation time (ISO 8601 format)
updated_atstring2023-06-01T00:00:00ZLast modified time (ISO 8601 format)

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!