API Version
Product Catalog
Library
Payment schedules for an invoice refer to a payment structure where the amount_due on an invoice is divided into smaller, more manageable parts, each of which is paid over a specified period. Payment schedule scheme is a configuration or set of rules for creating payment schedules. After creating a payment schedule scheme, you can use it to generate payment schedules for multiple invoices.

Sample payment schedule scheme [ JSON ]

{ "id": "__dev__HvFwO7xUND2MBa3x", "number_of_schedules": 3, "period_unit": "month", "period": 1, "created_at": 1709371975, "updated_at": 1709371975, "resource_version": 1709371975988, "object": "payment_schedule_scheme" }

API Index URL GET

https://{site}.chargebee.com/api/v2/payment_schedule_schemes

Model Class

id
string, max chars=40
An auto-generated unique identifier for the payment schedule scheme.
name
optional, string, max chars=100
The name of a payment schedule scheme.
description
optional, string, max chars=200
A brief description for this payment schedule scheme.
number_of_schedules
integer, min=1, max=52
Specifies the total number of payment schedules for the invoice. The maximum number_of_schedules varies based on the period_unit:
  • Day: Up to 30 schedules
  • Week: Up to 52 schedules
  • Month: Up to 12 schedules

period_unit
enumerated string
Defines the time unit for intervals between payment schedules. Possible values are: day, week, and month.
Possible values are
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
Show all values[+]
period
optional, integer, min=1, max=30
The time period between the effective dates of two consecutive payment schedules, expressed in period_units. Use this parameter to have fixed intervals between payment schedules. The maximum period varies based on the period_unit:
  • Day: Up to 30 days
  • Week: Up to 6 weeks
  • Month: Up to 6 months

created_at
timestamp(UTC) in seconds
The timestamp at which the payment_schedule_scheme was created.
resource_version
optional, long
Version number of this resource. The resource_version is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
updated_at
optional, timestamp(UTC) in seconds
Defines the timestamp when the config was last updated
id id
string, max chars=40
An auto-generated unique identifier for the payment schedule scheme.
name name
optional, string, max chars=100
The name of a payment schedule scheme.
description description
optional, string, max chars=200
A brief description for this payment schedule scheme.
number_of_schedules number_of_schedules
integer, min=1, max=52
Specifies the total number of payment schedules for the invoice. The maximum number_of_schedules varies based on the period_unit:
  • Day: Up to 30 schedules
  • Week: Up to 52 schedules
  • Month: Up to 12 schedules

period_unit period_unit
enumerated string
Defines the time unit for intervals between payment schedules. Possible values are: day, week, and month.
Possible values are
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
Show all values[+]
period period
optional, integer, min=1, max=30
The time period between the effective dates of two consecutive payment schedules, expressed in period_units. Use this parameter to have fixed intervals between payment schedules. The maximum period varies based on the period_unit:
  • Day: Up to 30 days
  • Week: Up to 6 weeks
  • Month: Up to 6 months

created_at created_at
timestamp(UTC) in seconds
The timestamp at which the payment_schedule_scheme was created.
resource_version resource_version
optional, long
Version number of this resource. The resource_version is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
updated_at updated_at
optional, timestamp(UTC) in seconds
Defines the timestamp when the config was last updated
Creates a payment schedule scheme. After creating a payment schedule scheme, you can use it to generate payment schedules for multiple invoices.

Notes

Sample Request
Try in API Explorer
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes \
     -u {site_api_key}:\
     -d name="Scheme2" \
     -d number_of_schedules=3 \
     -d period_unit="MONTH" \
     -d period=1
copy
Click to Copy
Create 3 payment schedules collected monthly
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes \
     -u {site_api_key}:\
     -d name="Scheme2" \
     -d number_of_schedules=3 \
     -d period_unit="MONTH" \
     -d period=1

Sample Response [ JSON ]

Show more...
{
    "payment_schedule_scheme": {
        "id": "__dev__HvFwO7xUND2MBa3x",
        "number_of_schedules": 3,
        "period_unit": "month",
        "period": 1,
        "created_at": 1709371975,
        "updated_at": 1709371975,
        "resource_version": 1709371975988,
        "object": "payment_schedule_scheme"
    }
}

URL Format POST

https://{site}.chargebee.com/api/v2/payment_schedule_schemes

Method

number_of_schedules[]
required, integer, min=1, max=52
Specifies the total number of payment schedules for the invoice. The maximum number_of_schedules varies based on the period_unit:
  • Day: Up to 30 schedules
  • Week: Up to 52 schedules
  • Month: Up to 12 schedules
period_unit[]
required, enumerated string
Defines the time unit for intervals between payment schedules. Possible values are: day, week, and month.
Possible values are
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
dayWhen the time unit for intervals between payment schedules is set as dayweekWhen the time unit for intervals between payment schedules is set as weekmonthWhen the time unit for intervals between payment schedules is set as month
Show all values[+]
period[]
optional, integer, min=1, max=30
The time period between the effective dates of two consecutive payment schedules, expressed in period_units. Use this parameter to have fixed intervals between payment schedules. The maximum period varies based on the period_unit:
  • Day: Up to 30 days
  • Week: Up to 6 weeks
  • Month: Up to 6 months
name[]
required, string, max chars=100
The name of a payment schedule scheme.
flexible_schedules[period][0..n]
optional, integer, min=0, max=52
The interval after which this payment schedule should be collected.
flexible_schedules[amount_percentage][0..n]
optional, bigdecimal, min=1, max=100
The percentage amount that this specific payment schedule should collect.
payment_schedule_scheme payment_schedule_scheme
always returned
Resource object representing payment_schedule_scheme

Sample admin console URL

https://{site}.chargebee.com/admin-console/payment_schedule_schemes/123x
This endpoint retrieves an existing payment schedule.

Notes

Sample Request
Try in API Explorer
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes/__dev__HvFwO7xUND2MBa3x \
     -u {site_api_key}:
copy
Click to Copy
Retrieve a payment schedule scheme
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes/__dev__HvFwO7xUND2MBa3x \
     -u {site_api_key}:

Sample Response [ JSON ]

Show more...
{
    "payment_schedule_scheme": {
        "id": "__dev__HvFwO7xUND2MBa3x",
        "number_of_schedules": 3,
        "period_unit": "month",
        "period": 1,
        "created_at": 1709371975,
        "updated_at": 1709371975,
        "resource_version": 1709371975988,
        "object": "payment_schedule_scheme"
    }
}

URL Format GET

https://{site}.chargebee.com/api/v2/payment_schedule_schemes/{payment-schedule-scheme-id}

Method

payment_schedule_scheme payment_schedule_scheme
always returned
Resource object representing payment_schedule_scheme

Sample admin console URL

https://{site}.chargebee.com/admin-console/payment_schedule_schemes/123x
This endpoint deletes a payment schedules created for an invoice.

Notes

Sample Request
Try in API Explorer
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes/__dev__HvFwO7xUND2MBa3x/delete \
     -X POST  \
     -u {site_api_key}:
copy
Click to Copy
Delete a payment schedule scheme
curl  https://{site}.chargebee.com/api/v2/payment_schedule_schemes/__dev__HvFwO7xUND2MBa3x/delete \
     -X POST  \
     -u {site_api_key}:

Sample Response [ JSON ]

Show more...
{
    "payment_schedule_scheme": {
        "id": "__dev__HvFwO7xUND2MBa3x",
        "number_of_schedules": 3,
        "period_unit": "month",
        "period": 1,
        "created_at": 1709371975,
        "updated_at": 1709371975,
        "resource_version": 1709371975988,
        "object": "payment_schedule_scheme"
    }
}

URL Format POST

https://{site}.chargebee.com/api/v2/payment_schedule_schemes/{payment-schedule-scheme-id}/delete

Method

payment_schedule_scheme payment_schedule_scheme
always returned
Resource object representing payment_schedule_scheme

Sample admin console URL

https://{site}.chargebee.com/admin-console/payment_schedule_schemes/123x