Payment Plans

Get Payment Plan Details

get

Retrieve detailed information for a specific payment plan identified by the unique payment plan key.

Path parameters
paymentPlanKeystringRequired

Unique identifier of the payment plan.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Responses
chevron-right
200

ok

Payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customers
get
/rest/v2/payment-plans/{paymentPlanKey}

Update Payment Plan

put

Update the existing payment plan details identified by the specified payment plan key.

Path parameters
paymentPlanKeystringRequired

Unique identifier of the payment plan.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Body

Represents a recurring payment plan definition.

frequencystring · enumRequired

Frequency at which the payment plan runs.

Example: MONTHLYPossible values:
plan-keystringOptional

Unique identifier of the pricing or payment plan.

Example: plan_8383-38833-3333
plan-namestringOptional

Display name of the payment plan.

Example: Test plan
customer-keystringRequired

Unique identifier of the customer for whom the payment plan is created.

Example: cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0
customer-namestringOptional

Name of the customer associated with the payment plan.

Example: John Doe
email-addressstringOptional

The customer's email address.

Example: [email protected]
email-receiptstringOptional

Indicates whether an email receipt is sent when a payment is processed. If true, a valid email-address must exist on the customer or be provided in the payment plan request.

Example: false
token-idstringRequired

Identifier of the payment token used for the card or ACH to process payments for the plan.

Example: 11000393985851111
frequency-daystringOptional

Day on which the payment is processed. For monthly and yearly plans this is the day of the month; for weekly plans, day of week (1-7).

Example: 3
payment-amountstringRequired

Amount charged to the card for each payment cycle of the plan.

Example: 200.0
ach-payment-typestringOptional

Specifies the ACH payment type used for the plan.

Example: CCD
start-datestringRequired

Specifies the date on which the payment plan becomes effective. If the specified date does not align with the frequency-day, the first payment occurs on the next frequency occurrence.

Example: 2019-05-10
end-datestringRequired

Date on which the payment plan ends. Maximum of 10 years per plan.

Example: 2021-08-10
statusstring · enumOptional

Current status of the payment plan.

Example: ACTIVEPossible values:
status-datestringOptional

Date on which the current plan status was updated.

Example: 09/19/2016
frequency-monthstringOptional

Specifies the month of the year when the payment plan is executed. For example, 1 - January, 2 - February, and so on through 12 - December.

Example: 5
frequency-weekstringOptional

Specifies the week number within the selected month when the payment plan is executed. Required when frequency is set to WEEKLY.

Example: 3
Responses
chevron-right
200

ok

Payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customers
put
/rest/v2/payment-plans/{paymentPlanKey}

Search Payment Plans

get

Retrieve a list of payment plans for the specified search and filter criteria.

Query parameters
plan-namestringOptional

Filters payment plans by the plan name.

plan-keystringOptional

Filters results by the unique identifier of the payment plan.

customer-keystringOptional

Filters payment plans by the unique identifier of the associated customer.

customer-namestringOptional

Filters payment plans by the customer name.

token-idstringOptional

Filters payment plans by the token associated with the plan.

payment-amountnumberOptional

Filters payment plans by the payment amount.

statusstring · enumOptional

Filters payment plans by their current status.

Possible values:
pageintegerOptional

Specifies the page number of results to return when pagination is applied.

page-sizeintegerOptional

Specifies the number of results to return per page.

isDescendingbooleanOptional

Specifies the sort order of the results. Set to true for descending order. Default is true.

order-bystring · enumOptional

Specifies the field used to sort the results.

Possible values:
Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Responses
chevron-right
200

ok

payload

payloadTypestringOptional

Type of payload returned in the response.

Example: payment-plans
get
/rest/v2/payment-plans

Create Payment Plan

post

Create a new payment plan for a customer using the specified plan details.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Body

Represents a recurring payment plan definition.

frequencystring · enumRequired

Frequency at which the payment plan runs.

Example: MONTHLYPossible values:
plan-keystringOptional

Unique identifier of the pricing or payment plan.

Example: plan_8383-38833-3333
plan-namestringOptional

Display name of the payment plan.

Example: Test plan
customer-keystringRequired

Unique identifier of the customer for whom the payment plan is created.

Example: cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0
customer-namestringOptional

Name of the customer associated with the payment plan.

Example: John Doe
email-addressstringOptional

The customer's email address.

Example: [email protected]
email-receiptstringOptional

Indicates whether an email receipt is sent when a payment is processed. If true, a valid email-address must exist on the customer or be provided in the payment plan request.

Example: false
token-idstringRequired

Identifier of the payment token used for the card or ACH to process payments for the plan.

Example: 11000393985851111
frequency-daystringOptional

Day on which the payment is processed. For monthly and yearly plans this is the day of the month; for weekly plans, day of week (1-7).

Example: 3
payment-amountstringRequired

Amount charged to the card for each payment cycle of the plan.

Example: 200.0
ach-payment-typestringOptional

Specifies the ACH payment type used for the plan.

Example: CCD
start-datestringRequired

Specifies the date on which the payment plan becomes effective. If the specified date does not align with the frequency-day, the first payment occurs on the next frequency occurrence.

Example: 2019-05-10
end-datestringRequired

Date on which the payment plan ends. Maximum of 10 years per plan.

Example: 2021-08-10
statusstring · enumOptional

Current status of the payment plan.

Example: ACTIVEPossible values:
status-datestringOptional

Date on which the current plan status was updated.

Example: 09/19/2016
frequency-monthstringOptional

Specifies the month of the year when the payment plan is executed. For example, 1 - January, 2 - February, and so on through 12 - December.

Example: 5
frequency-weekstringOptional

Specifies the week number within the selected month when the payment plan is executed. Required when frequency is set to WEEKLY.

Example: 3
Responses
chevron-right
200

ok

Payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customers
post
/rest/v2/payment-plans

Get Payment Plan Expected Runs

get

Retrieve the scheduled payment run dates for a payment plan identified by the specified payment plan key.

Path parameters
paymentPlanKeystringRequired

Unique identifier of the payment plan.

Query parameters
startstring · dateRequired

Specifies the start date of the date range used to calculate expected payment runs. Format: YYYY-MM-DD.

endstring · dateRequired

Specifies the end date of the date range used to calculate expected payment runs. Format: YYYY-MM-DD.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Responses
chevron-right
200

ok

payload

payloadTypestringOptional

Type of payload returned in the response.

Example: expected-runs
get
/rest/v2/payment-plans/{paymentPlanKey}/expected-runs

Delete Payment Plan

delete

Delete an existing payment plan identified by the specified plan key.

Path parameters
planKeystringRequired

Unique identifier of the payment plan.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Responses
delete
/rest/v2/payment-plans/{planKey}

Last updated

Was this helpful?