---
updatedAt: 2026-04-27T13:28:26.000Z
agentTools:
  projectIndex: https://docs.heylight.com/llms.txt
---

# Abandon Application

An endpoint that allows a merchant to abandon an application. The application must be in 'initialised' or 'application_ongoing' status to be abandoned.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "HeidiPay Checkout API",
    "version": "v0.1",
    "description": "This is the documentation for HeidiPay's Checkout API, which can be used for integration with your ecommerce platform or website.",
    "contact": {
      "name": "Heidi Pay AG"
    }
  },
  "paths": {
    "/api/checkout/v1/abandon/": {
      "post": {
        "operationId": "api_checkout_v1_abandon_create",
        "description": "An endpoint that allows a merchant to abandon an application. The application must be in 'initialised' or 'application_ongoing' status to be abandoned.",
        "summary": "Abandon Application",
        "tags": [
          "api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AbandonApplicationRequest"
              },
              "examples": {
                "AbandonApplication": {
                  "value": {
                    "external_contract_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                  },
                  "summary": "Abandon an in-progress checkout",
                  "description": "Cancel a checkout session that has not yet been completed by the customer."
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/AbandonApplicationRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AbandonApplicationRequest"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "MerchantAPIAuthentication": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbandonApplicationResponse"
                },
                "examples": {
                  "SuccessfullyAbandoned": {
                    "value": {
                      "success": true,
                      "message": "Application successfully abandoned",
                      "external_contract_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "summary": "Application abandoned successfully",
                    "description": "The application has been cancelled and no further checkout actions will be taken."
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OASSchemaOnlySimpleErrorResponse"
                }
              }
            },
            "description": ""
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbandonApplicationResponse"
                },
                "examples": {
                  "ApplicationNotFound": {
                    "value": {
                      "success": false,
                      "message": "Application not found or does not belong to merchant",
                      "external_contract_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "summary": "Application not found or does not belong to merchant",
                    "description": "Returned when the external_contract_uuid does not match any application for this merchant."
                  },
                  "InvalidApplicationStatus": {
                    "value": {
                      "success": false,
                      "message": "Application is in the wrong status to be abandoned",
                      "external_contract_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "summary": "Application is in the wrong status",
                    "description": "Returned when the application has progressed beyond a status that allows abandonment."
                  }
                }
              }
            },
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AbandonApplicationRequest": {
        "properties": {
          "external_contract_uuid": {
            "description": "The external contract UUID of the application to abandon",
            "format": "uuid",
            "title": "External Contract Uuid",
            "type": "string"
          }
        },
        "required": [
          "external_contract_uuid"
        ],
        "title": "AbandonApplicationRequest",
        "type": "object"
      },
      "AbandonApplicationResponse": {
        "properties": {
          "success": {
            "description": "Whether the abandonment was successful",
            "title": "Success",
            "type": "boolean"
          },
          "message": {
            "description": "Status message describing the result",
            "title": "Message",
            "type": "string"
          },
          "external_contract_uuid": {
            "description": "The external contract UUID that was processed",
            "format": "uuid",
            "title": "External Contract Uuid",
            "type": "string"
          }
        },
        "required": [
          "success",
          "message",
          "external_contract_uuid"
        ],
        "title": "AbandonApplicationResponse",
        "type": "object"
      },
      "OASSchemaOnlySimpleErrorResponse": {
        "properties": {
          "error": {
            "description": "A human-readable description of the error.",
            "title": "Error",
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "title": "OASSchemaOnlySimpleErrorResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "MerchantAPIAuthentication": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "servers": [
    {
      "url": "https://sbx-origination.heidipay.io",
      "description": "Text"
    }
  ]
}
```