Recurring Payments Service Payment Plans
Payment Plan Controller
customer key
customer name
list results in descending order, default is true
order list by
page number
page-size
payment amount
plan key
plan name
status
token associated with the plan
api-key-value
GET //rest/v2/payment-plans HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"code": 200,
"emvUrl": "text",
"exchange-id": "ID_38839393-3938383-484848484",
"gatewayUrl": "text",
"links": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
],
"page": {
"first": false,
"last": false,
"number": 4,
"number-of-elements": 102,
"size": 4,
"sort": {
"field": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"total-elements": 102,
"total-pages": 4
},
"payload": {
"payloadType": "text"
},
"signature": "text",
"status": "SUCCESS",
"urls": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"vaultUrl": "text"
}
api-key-value
customer assigned to the plan
cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0
customer assigned to the plan
John Doe
pass in if you would like to email a receipt when payment fires. If true, email-address is required for the customer or must be passed in when creating the payment plan.
day the plan will end. Max of 10 years to 1 plan
2021-08-10
How often the plan will run
MONTHLY
Possible values: day the plan will run. For monthly and yearly (day of month). For weekly day of week(1-7)
3
Month the plan will fire.
5
Only used in weekly plans. Week the plan will fire.
3
amount that will be charged to the card for EACH payment
200
unique identifier of a plan
plan_8383-38833-3333
name of plan
Test plan
Day the payment will start. If you pick a different day than the frequency day the plan will start on the next frequency day. For example If your frequency-day is 3 and your start date is 9/17/2016. It will start on 10/3/2016 as that is then next frequency day
2019-05-10
status of the plan
Active
Possible values: Date the status was updated
09/19/2016
Token represents the card or ACH data that will be used for this plan
11000393985851112
POST //rest/v2/payment-plans HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/json
Accept: */*
Content-Length: 589
{
"ach-payment-type": "text",
"customer-key": "cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0",
"customer-name": "John Doe",
"email-address": "[email protected]",
"email-receipt": false,
"end-date": "2021-08-10",
"frequency": "MONTHLY",
"frequency-day": 3,
"frequency-month": 5,
"frequency-week": 3,
"links": {
"link": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
]
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"payment-amount": 200,
"plan-key": "plan_8383-38833-3333",
"plan-name": "Test plan",
"start-date": "2019-05-10",
"status": "Active",
"status-date": "09/19/2016",
"token-id": 11000393985851112
}
{
"payloadType": "text",
"payment": {
"amount": 9,
"completed-time": "09/19/2016 04:11:3333",
"customer-key": "cust_e333-93994-33838388938933",
"fired-time": "09/19/2016 04:11:3333",
"last-four": 3345,
"links": {
"link": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
]
},
"original-exchange-id": "exchange-93994-33838388938933",
"payment-result": "APPROVED",
"payment-status": "APPROVED",
"payment-type": "Card",
"plan-key": "plan_8383-38833-3333",
"plan-name": "My Plan",
"transaction-id": "id",
"transaction-key": "id",
"transaction-type": "SALE"
}
}
paymentPlanKey
api-key-value
GET //rest/v2/payment-plans/{paymentPlanKey} HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"code": 200,
"emvUrl": "text",
"exchange-id": "ID_38839393-3938383-484848484",
"gatewayUrl": "text",
"links": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
],
"page": {
"first": false,
"last": false,
"number": 4,
"number-of-elements": 102,
"size": 4,
"sort": {
"field": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"total-elements": 102,
"total-pages": 4
},
"payload": {
"payloadType": "text"
},
"signature": "text",
"status": "SUCCESS",
"urls": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"vaultUrl": "text"
}
paymentPlanKey
api-key-value
customer assigned to the plan
cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0
customer assigned to the plan
John Doe
pass in if you would like to email a receipt when payment fires. If true, email-address is required for the customer or must be passed in when creating the payment plan.
day the plan will end. Max of 10 years to 1 plan
2021-08-10
How often the plan will run
MONTHLY
Possible values: day the plan will run. For monthly and yearly (day of month). For weekly day of week(1-7)
3
Month the plan will fire.
5
Only used in weekly plans. Week the plan will fire.
3
amount that will be charged to the card for EACH payment
200
unique identifier of a plan
plan_8383-38833-3333
name of plan
Test plan
Day the payment will start. If you pick a different day than the frequency day the plan will start on the next frequency day. For example If your frequency-day is 3 and your start date is 9/17/2016. It will start on 10/3/2016 as that is then next frequency day
2019-05-10
status of the plan
Active
Possible values: Date the status was updated
09/19/2016
Token represents the card or ACH data that will be used for this plan
11000393985851112
PUT //rest/v2/payment-plans/{paymentPlanKey} HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/json
Accept: */*
Content-Length: 589
{
"ach-payment-type": "text",
"customer-key": "cust_3bf809d2-b74d-4354-bbf9-a4af6328e6e0",
"customer-name": "John Doe",
"email-address": "[email protected]",
"email-receipt": false,
"end-date": "2021-08-10",
"frequency": "MONTHLY",
"frequency-day": 3,
"frequency-month": 5,
"frequency-week": 3,
"links": {
"link": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
]
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"payment-amount": 200,
"plan-key": "plan_8383-38833-3333",
"plan-name": "Test plan",
"start-date": "2019-05-10",
"status": "Active",
"status-date": "09/19/2016",
"token-id": 11000393985851112
}
{
"payloadType": "text",
"payment": {
"amount": 9,
"completed-time": "09/19/2016 04:11:3333",
"customer-key": "cust_e333-93994-33838388938933",
"fired-time": "09/19/2016 04:11:3333",
"last-four": 3345,
"links": {
"link": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
]
},
"original-exchange-id": "exchange-93994-33838388938933",
"payment-result": "APPROVED",
"payment-status": "APPROVED",
"payment-type": "Card",
"plan-key": "plan_8383-38833-3333",
"plan-name": "My Plan",
"transaction-id": "id",
"transaction-key": "id",
"transaction-type": "SALE"
}
}
paymentPlanKey
end
start
api-key-value
GET //rest/v2/payment-plans/{paymentPlanKey}/expected-runs HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"code": 200,
"emvUrl": "text",
"exchange-id": "ID_38839393-3938383-484848484",
"gatewayUrl": "text",
"links": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
],
"page": {
"first": false,
"last": false,
"number": 4,
"number-of-elements": 102,
"size": 4,
"sort": {
"field": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"total-elements": 102,
"total-pages": 4
},
"payload": {
"payloadType": "text"
},
"signature": "text",
"status": "SUCCESS",
"urls": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"vaultUrl": "text"
}
planKey
api-key-value
DELETE //rest/v2/payment-plans/{planKey} HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"code": 200,
"emvUrl": "text",
"exchange-id": "ID_38839393-3938383-484848484",
"gatewayUrl": "text",
"links": [
{
"href": "/rest/v2/transactions?id=846512",
"id": 846512,
"rel": "transaction"
}
],
"page": {
"first": false,
"last": false,
"number": 4,
"number-of-elements": 102,
"size": 4,
"sort": {
"field": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"total-elements": 102,
"total-pages": 4
},
"payload": {
"payloadType": "text"
},
"signature": "text",
"status": "SUCCESS",
"urls": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"vaultUrl": "text"
}
Was this helpful?