---
updatedAt: 2026-06-18T17:13:28.000Z
agentTools:
  projectIndex: https://docs.heylight.com/llms.txt
---

# Contract List

An endpoint to list the details of all applications for a given merchant. If external_contract_uuid is supplied, other filters will be ignored. If start_date or end_date are supplied, they must be be supplied together. If confirmed_start_date or confirmed_end_date are supplied, they must be supplied together.

# 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/applications/": {
      "get": {
        "operationId": "api_checkout_v1_applications_list",
        "description": "An endpoint to list the details of all applications for a given merchant. If external_contract_uuid is supplied, other filters will be ignored. If start_date or end_date are supplied, they must be be supplied together. If confirmed_start_date or confirmed_end_date are supplied, they must be supplied together.",
        "summary": "Contract List",
        "parameters": [
          {
            "in": "query",
            "name": "confirmed_end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "the contract confirm end date to filter by"
          },
          {
            "in": "query",
            "name": "confirmed_start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "the contract confirm start date to filter by"
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "the end date to filter by"
          },
          {
            "in": "query",
            "name": "external_contract_uuid",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The external contract uuid associated to the application"
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "the start date to filter by"
          }
        ],
        "tags": [
          "api"
        ],
        "security": [
          {
            "MerchantAPIAuthentication": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMerchantApplicationDetailResponseList"
                },
                "examples": {
                  "ContractListResponse": {
                    "value": {
                      "count": 123,
                      "next": "http://api.example.org/accounts/?offset=400&limit=100",
                      "previous": "http://api.example.org/accounts/?offset=200&limit=100",
                      "results": [
                        {
                          "count": 2,
                          "next": null,
                          "previous": null,
                          "results": [
                            {
                              "contract_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                              "merchant_uuid": "d4e5f6a7-b8c9-4d32-a1b2-c3d4e5f6a7b8",
                              "first_name": "Anna",
                              "last_name": "Mueller",
                              "email": "anna.mueller@example.com",
                              "phone_number": "+41791234567",
                              "formatted_shipping_address": "10 Bahnhofstrasse, 8001 Zurich, CH",
                              "order_reference": "ORD-2024-78542",
                              "status": "success",
                              "number_of_installments": "3",
                              "amount": "1299.00",
                              "currency": "CHF",
                              "minor_amount": 129900,
                              "credit_type": "BNPL factoring",
                              "application_approved_at": "2024-11-15T10:35:00Z",
                              "contract_confirmed_at": "2024-11-16T09:00:00Z",
                              "created_at": "2024-11-15T10:30:00Z",
                              "updated_at": "2024-11-16T09:00:00Z",
                              "payment_plan_reference": "HP-ABC123"
                            },
                            {
                              "contract_uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                              "merchant_uuid": "d4e5f6a7-b8c9-4d32-a1b2-c3d4e5f6a7b8",
                              "first_name": "Marco",
                              "last_name": "Rossi",
                              "email": "marco.rossi@example.com",
                              "phone_number": "+41767654321",
                              "formatted_shipping_address": "Via Roma 25, 20121 Milano, IT",
                              "order_reference": "ORD-2024-78543",
                              "status": "pending",
                              "number_of_installments": "6",
                              "amount": "599.00",
                              "currency": "CHF",
                              "minor_amount": 59900,
                              "credit_type": "BNPL factoring",
                              "application_approved_at": null,
                              "contract_confirmed_at": null,
                              "created_at": "2024-11-15T11:45:00Z",
                              "updated_at": "2024-11-15T11:45:00Z",
                              "payment_plan_reference": "HP-DEF456"
                            }
                          ]
                        }
                      ]
                    },
                    "summary": "Paginated list of contracts",
                    "description": "A successful response with contract details and pagination metadata."
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OASSchemaOnlyAPIExceptionResponse"
                }
              }
            },
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MerchantApplicationDetailResponse": {
        "type": "object",
        "properties": {
          "contract_uuid": {
            "type": "string",
            "description": "External Contract UUID"
          },
          "merchant_uuid": {
            "type": "string",
            "description": "Merchant UUID (uuid4)"
          },
          "first_name": {
            "type": "string",
            "description": "Applicant first name"
          },
          "last_name": {
            "type": "string",
            "description": "Applicant last name"
          },
          "email": {
            "type": "string",
            "description": "Applicant email address"
          },
          "phone_number": {
            "type": "string"
          },
          "formatted_shipping_address": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true,
            "readOnly": true,
            "description": "Formatted shipping address"
          },
          "order_reference": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "description": "Order reference passed from the ecommerce platform"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "description": "Application Status [cancelled, pending, awaiting_confirmation, success]"
          },
          "failure_url": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "description": "Failure Redirect URL"
          },
          "success_url": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "description": "Success Redirect URL"
          },
          "number_of_installments": {
            "type": "string",
            "description": "Number of installments"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "readOnly": true,
            "description": "Amount to be financed in decimal format"
          },
          "currency": {
            "type": "string",
            "readOnly": true,
            "description": "ISO 4217 Currency code of the amount to be financed."
          },
          "minor_amount": {
            "type": "integer",
            "readOnly": true,
            "description": "Amount to be financed in minor format"
          },
          "credit_type": {
            "type": "string",
            "description": "Credit type - options: [BNPL factoring, regulated credit, unregulated credit]"
          },
          "application_approved_at": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "description": "Application approved at"
          },
          "contract_confirmed_at": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "description": "Contract confirmed at"
          },
          "secondary_contract_id": {
            "type": "string",
            "description": "A secondary contract id"
          },
          "national_identification_number": {
            "type": "string",
            "description": "National identification number"
          },
          "external_product_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true,
            "description": "External product ids"
          },
          "created_at": {
            "type": "string",
            "description": "Created at"
          },
          "updated_at": {
            "type": "string",
            "description": "Updated at"
          },
          "payment_plan_reference": {
            "type": "string",
            "description": "Payment plan reference"
          },
          "refund_amount": {
            "type": "number",
            "format": "double",
            "readOnly": true,
            "description": "Total refunded amount in decimal format (0 if no refund)"
          }
        },
        "required": [
          "amount",
          "application_approved_at",
          "contract_confirmed_at",
          "currency",
          "external_product_ids",
          "failure_url",
          "formatted_shipping_address",
          "minor_amount",
          "order_reference",
          "refund_amount",
          "status",
          "success_url"
        ]
      },
      "OASSchemaOnlyAPIExceptionResponse": {
        "properties": {
          "detail": {
            "description": "A human-readable description of the error.",
            "title": "Detail",
            "type": "string"
          },
          "detail_code": {
            "default": "",
            "description": "A machine-readable error code, if available.",
            "title": "Detail Code",
            "type": "string"
          }
        },
        "required": [
          "detail"
        ],
        "title": "OASSchemaOnlyAPIExceptionResponse",
        "type": "object"
      },
      "PaginatedMerchantApplicationDetailResponseList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 123
          },
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=400&limit=100"
          },
          "previous": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=200&limit=100"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantApplicationDetailResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "MerchantAPIAuthentication": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "servers": [
    {
      "url": "https://sbx-origination.heidipay.io",
      "description": "Text"
    }
  ]
}
```