v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Recurring charge links

Create link

Creates a link between an active recurring charge plan and an account.

This endpoint generates a Recurring charge plan linked to account event.

NOTE: This endpoint requires an account token — an access token encoded with an account ID. Tokens can expire quickly, which can result in a 401 Unauthorized message.

post/v1/recurring-charge-plans/{recurring_charge_plan_id}/accounts/{account_id}

Path parameters

recurring_charge_plan_idinteger required
Example:98660282

ID of the recurring charge plan

account_idinteger required
Example:6912345

Account ID

Headers

x-cidstring

The Correlation IDentifier field is used to link related API requests and events. The x-cid can help the Pismo engineering team track everything related to a call. You can find the x-cid field in the response header from an API endpoint call.

If this field isn't passed, one is automatically generated.

Request body

descriptionstring

A description of the scheduled charge that's linked to the account. Use counter to specify where the cycle count should be placed. Example: "Annuity {counter}" generates "Annuity 2/12" for the second of twelve annutities. If counter is not present, the counter is placed at the end of the description. If no description is configured, the description of the transaction type is used, and the counter is not shown.

tracking_idstring required

Customer created tracking ID. Must consist of alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), and colons (:), with a length from 1 to 128. The Pismo platform uses this field to implement idempotency and prevent duplicates.

post_installment_charge_on_current_cycleboolean

When it's true, the charge will be apply on the current cycle otherwise, it will be apply on the next cycle

start_installment_charge_ininteger

Indicates when to start applying the charge. For example, if start_installment_charge_in is 3, then the charge is applied starting with cycle 3. It's not applied to cycles 1 and 2. If post_installment_charge_on_current_cycle is true, start_installment_charge_in should be null. If post_installment_charge_on_current_cycle is false, start_installment_charge_in is required. In this case, it must be greater than or equal to the current cycle and less than or equal to number_of_cycles.

renewboolean

When it's true the migration has a renovation

Example request

{
  "description": "Link between an account and a recurring charge plan",
  "tracking_id": "3368328d-e4c6-4c75-99a9-9d59f3501d8c",
  "post_installment_charge_on_current_cycle": true,
  "start_installment_charge_in": 4,
  "renew": true
}

Response

OK - Indicates that the server accepted the request and created the link.

recurring_charge_link_idinteger

ID of recurring charge link

account_idinteger

Account ID

recurring_charge_plan_idinteger

ID of recurring charge plan

org_idstring

Organization ID

created_atstring date-time

Datetime program calendar strategy was created. Format = YYYY-MM-DDTHH:MM:SS:MM.

descriptionstring

A description of the scheduled charge that's linked to the account. Use counter to specify where the cycle count should be placed. Example: "Annuity {counter}" generates "Annuity 2/12" for the second of twelve annutities. If counter is not present, the counter is placed at the end of the description. If no description is configured, the description of the transaction type is used, and the counter is not shown.

tracking_idstring

Customer created tracking ID. Must consist of alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), and colons (:), with a length from 1 to 128. The Pismo platform uses this field to implement idempotency and prevent duplicates.

creation_cidstring

CID for the creation event

post_installment_charge_on_current_cycleboolean

When it's true, the charge will be apply on the current cycle otherwise, it will be apply on the next cycle

start_installment_charge_ininteger

Indicates when to start applying the charge. For example, if start_installment_charge_in is 3, then the charge is applied starting with cycle 3. It's not applied to cycles 1 and 2. If post_installment_charge_on_current_cycle is true, start_installment_charge_in should be null. If post_installment_charge_on_current_cycle is false, start_installment_charge_in is required. In this case, it must be greater than or equal to the current cycle and less than or equal to number_of_cycles.

renewboolean

When it's true the migration has a renovation

Example response

{
  "recurring_charge_link_id": 98660282,
  "account_id": 6912345,
  "recurring_charge_plan_id": 115563,
  "org_id": "TN-cc8f8b89-233a-4582-9f36-63ee85278d6d",
  "created_at": "2024-09-12T16:46:16.43663522",
  "description": "Link between an account and a recurring charge plan",
  "tracking_id": "3368328d-e4c6-4c75-99a9-9d59f3501d8c",
  "creation_cid": "3ea22692-a209-11eb-89a2-f73e179dcbc2",
  "post_installment_charge_on_current_cycle": true,
  "start_installment_charge_in": 4,
  "renew": true
}