Cancel a submission
Cancels a form submission and returns it with orderStatus: canceled. A cancel is final and cannot be undone. A canceled submission no longer counts toward "Prevent duplicate submissions", so the same customer can submit the form again, and its files leave the customer portal. Optional sendCancellationEmail emails the customer. Fires the submission.canceled webhook.
/v1/submissions/:submissionId/cancelAuthorization
api_key_auth API key authentication. Use "Bearer YOUR_API_KEY" format.
In: header
Path Parameters
The ID of the form submission to cancel.
^[0-9a-fA-F]{24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.checkoutpage.com/v1/submissions/:submissionId/cancel" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{
"data": {
"id": "6812fe6e9f39b6760576f01c",
"status": "succeeded",
"orderStatus": "active",
"canceledAt": "2019-08-24T14:15:22Z",
"canceledReason": "string",
"canceledBy": "string",
"canceledByApiKey": "string",
"canceledByApiKeyName": "string",
"sellerId": "string",
"pageId": "string",
"customerId": "string",
"customerEmail": "string",
"customerName": "string",
"formTitle": "string",
"billing": {
"name": "string",
"companyName": "string",
"email": "string",
"billingEmail": "string",
"phone": "string",
"address": {
"line1": "string",
"line2": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"country": "string"
}
},
"shipping": {
"name": "string",
"phone": "string",
"address": {
"line1": "string",
"line2": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"country": "string"
}
},
"fields": [
{
"fieldId": "string",
"label": "string",
"value": "string",
"values": [
"string"
],
"element": "string",
"type": "string",
"meta": {
"property1": null,
"property2": null
},
"reference": "string"
}
],
"livemode": true,
"locale": "string",
"sessionId": "string",
"clientIp": "string",
"userAgent": "string",
"screenWidth": 0,
"visitId": "string",
"queryParameters": {
"property1": "string",
"property2": "string"
},
"pageSlug": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}{
"status": "error",
"type": "error",
"message": "Not Found",
"errors": [
{
"param": "string",
"message": "string",
"value": null
}
],
"property1": null,
"property2": null
}