Update The Capped Amount Of Recurring Application Charge

Updates the capped amount for a recurring application charge. The capped amount must be greater than the original maximum.

This API is especially useful for:

  • Adjusting the capped amount for recurring charges based on new usage requirements.
  • Dynamically updating billing constraints for subscription plans.
  • Ensuring the capped amount aligns with increased usage or consumption.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

NameTypeRequiredDescriptionExample
recurring_charge_idstringYesThe ID of the recurring application charge.372269669345671159

Body Parameters

NameTypeRequiredDescriptionExample
capped_amountfloatYesThe maximum usage fee. Must be greater than the original maximum.50.0

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

Field Type Example Description
recurring_application_charge.
id
string 372269669345671159 Unique identifier of the recurring application charge.
recurring_application_charge.
name
string "test" Name of the recurring application charge.
recurring_application_charge.
price
string "100" The recurring charge price.
recurring_application_charge.
activated_on
string "2024-04-23T00:00:00Z" Activation date of the recurring application charge in ISO 8601 format.
recurring_application_charge.
billing_on
string "2024-05-23T00:00:00Z" The next billing date of the recurring application charge in ISO 8601 format.
recurring_application_charge.
cancelled_on
string null Cancellation date of the recurring application charge, if applicable.
recurring_application_charge.
capped_amount
string "10" The terms and conditions of usage based billing charges. Must be present in order to create usage charges, for example when the capped_amount property is provided. Presented to the merchant when they approve an app's usage charges.
recurring_application_charge.
return_url
string " Redirect URL after payment.
recurring_application_charge.
status
string "active" Current status of the recurring application charge.
recurring_application_charge.
terms
string "terms" The terms and conditions of usage based billing charges. Must be present in order to create usage charges, for example when the capped_amount property is provided. Presented to the merchant when they approve an app's usage charges.
recurring_application_charge.
test
boolean false Indicates whether this is a test charge.
recurring_application_charge.
trial_days
integer 0 Trial period in days for the recurring application charge.
recurring_application_charge.
trial_ends_on
string null End date of the trial period in ISO 8601 format, if applicable.
recurring_application_charge.
update_capped_amount_url
string " URL to confirm the update of the capped amount.
recurring_application_charge.
created_at
string "2024-04-23T06:26:46Z" Creation timestamp of the recurring application charge in ISO 8601 format.
recurring_application_charge.
updated_at
string "2024-04-23T06:40:51Z" Last update timestamp of the recurring application charge in ISO 8601 format.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "Record not found"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
404Not FoundThe recurring_charge_idi s not found."Record not found"
422Unprocessable EntityThe recurring_charge_idis is empty."RecurringChargeId is required"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!