POST /schedules/{scheduleId}/delete
The following is a BETA API and is subject to change.
If you are interested in integrating Schedules, please reach out to our Support team at support@payjunction.com or submit a ticket through our Developer Support request form for more information about our beta program.
Example Request
curl -X POST https://api.payjunction.com/schedules/10026/delete \
-u "login:password" \
-H "Accept:application/json" \
-H "X-PJ-Application-Key: YOUR_PRODUCTION_APP_KEY"
Example Response - Success
API version 2023-05-16 or above required to receive the surcharge object and fields in transaction response details. See how to use API versions here.
The surcharge object is only present if surcharge is enabled on the account.
Click here for more information regarding surcharge.
{
"scheduleId" : 10026,
"terminalId" : 10000,
"scheduleType" : "PERIODIC",
"interval" : "MONTH",
"intervalCount" : 1,
"amountBase": "10.00",
"amountSurcharge": "0.30",
"amountTotal": "10.30",
"surcharge" : {
"percentage" : 3.00000,
"status" : "APPLIED"
},
"vault" : {
"accountType" : "VISA",
"lastFour" : "0119",
"type" : "CARD"
},
"billing" : {
"email" : "support@payjunction.com"
},
"status" : "DELETED",
"startDate" : "2022-01-01",
"created" : "2021-10-14T15:26:44Z",
"lastModified" : "2021-10-27T14:58:51Z"
}