---
updatedAt: 2026-09-29T15:36:57.000Z
agentTools:
  projectIndex: https://docs.finmid.com/llms.txt
---

# Report Platform Check

>  ⚠️ This API is relevant only for platforms that provide their own capital to businesses.


Reports the outcome of a check your platform runs on a Business before its Funding is paid out, for example an inventory check.

finmid waits for this outcome before it runs its own checks on the Business, and does not pay out a Funding from an Offer Group whose check you rejected.

Report the outcome on the `offer_group_id` you received in [`capital_offer.created`](./capital-webhooks#capital_offercreated). You can report it at any moment after the Offer Group is created, before or after the Business accepts one of its Offers.

> 📘 Platform checks are enabled per platform
>
> Contact finmid to enable platform checks for your platform. Until they are enabled, this endpoint answers `403 platform_checks_not_enabled` and stores nothing.

## What finmid does with the outcome

| When you report | `APPROVED` | `REJECTED` |
|---|---|---|
| **Before** the Business accepts an Offer | finmid keeps the outcome on the Offer Group and uses it once the Business accepts one of its Offers. The Offers stay available. | finmid withdraws the Offer Group and sends [`capital_offer.withdrawn`](./capital-webhooks#capital_offerwithdrawn). The Business can no longer accept its Offers. |
| **After** the Business accepted an Offer | The review of the Funding Application continues with finmid's own checks. | finmid rejects the Funding Application and sends [`capital_funding_application.rejected`](./capital-webhooks#capital_funding_applicationrejected). No Funding is created. |

## Every accepted Offer needs an outcome

Once the Business accepts an Offer, the review of its Funding Application waits for your outcome:

- If you reported `APPROVED` on the Offer Group before the acceptance, finmid uses that outcome. You do not need to report again.
- Otherwise the Funding Application stays `IN_REVIEW` until you report an outcome. [`capital_offer.accepted`](./capital-webhooks#capital_offeraccepted) tells you when the Business accepts an Offer.

An outcome belongs to the Offer Group you reported it on. When finmid replaces an Offer Group with a new one, report the outcome again on the new `offer_group_id`.

## Reporting more than once

Until finmid uses an outcome, a new report on the same Offer Group replaces the previous one:

- Before the acceptance, `APPROVED` sent again replaces the stored outcome, and `REJECTED` sent after `APPROVED` withdraws the Offer Group.
- After the acceptance, the most recent report wins, also over an `APPROVED` reported before the acceptance.

Once finmid has used an outcome, a new report changes nothing:

- After a `REJECTED` withdrew the Offer Group, the same `REJECTED` sent again answers `204`, and `APPROVED` answers `409 offer_group_not_active`.
- After the review of the Funding Application used an outcome, any report answers `409 platform_check_already_consumed`.

## Errors

| Status | `code` | When | What to do |
|---|---|---|---|
| `400` | `validation_error` | A required field is missing, a field is unknown, a value is not one of the listed ones, `rejection_reason` is missing or blank for `REJECTED`, or `offer_group_id` is not a UUID. Nothing is stored. | Fix the request. |
| `401` | | The API key is missing or invalid. | Check the `X-API-Key` header. |
| `403` | `platform_checks_not_enabled` | Platform checks are not enabled for your platform. Nothing is stored. | Contact finmid. |
| `404` | `business_not_found` | No Business with this `business_id` exists on your platform. | Check the `business_id`. |
| `404` | `offer_group_not_found` | The Business has no Offer Group with this `offer_group_id`. | Use an `offer_group_id` received in `capital_offer.created` for this Business. |
| `409` | `offer_group_not_active` | The Business has not accepted an Offer of the Offer Group, and the Offer Group has expired, was replaced by a new Offer Group, or was withdrawn. | Report on the new `offer_group_id`, if finmid created one. |
| `409` | `platform_check_already_consumed` | The Business accepted an Offer of the Offer Group, and the review of its Funding Application has already used an outcome or has already ended. The outcome is not applied. | None. Read the Funding Application with [Get Funding Applications](./get-funding-applications) to see its status. |
| `422` | `platform_check_not_required` | The Business accepted an Offer of the Offer Group, and the review of its Funding Application runs without a platform check. The outcome is not applied. | None. |
| `500` | `server_error` | An unexpected error occurred. | Retry later. |
| `503` | `platform_check_unavailable` | finmid could not confirm that it recorded the outcome. | Retry later. |

Retrying is safe: reporting the same outcome again does not apply it twice. Retry on `500`, on `503` and on network errors; `400`, `403`, `404`, `409` and `422` do not change on retry. If a retry answers `409 platform_check_already_consumed`, an earlier attempt may already have been used: read the Funding Application with [Get Funding Applications](./get-funding-applications) to see its status.

> Related webhooks:
> - [`capital_offer.created`](./capital-webhooks#capital_offercreated) carries the `offer_group_id` to report on
> - [`capital_offer.accepted`](./capital-webhooks#capital_offeraccepted) to communicate when the Business accepts an Offer and its Funding Application waits for your outcome
> - [`capital_offer.withdrawn`](./capital-webhooks#capital_offerwithdrawn) to communicate when a `REJECTED` outcome withdrew the Offer Group
> - [`capital_funding_application.rejected`](./capital-webhooks#capital_funding_applicationrejected) to communicate when the Funding Application was rejected, for example by a `REJECTED` outcome reported after the acceptance


# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "CAPITAL API",
    "version": "v1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.finmid.com",
      "description": "Sandbox"
    },
    {
      "url": "https://api.finmid.com",
      "description": "Live"
    }
  ],
  "security": [
    {
      "apiKeyScheme": []
    }
  ],
  "paths": {
    "/api/v1/capital/businesses": {
      "post": {
        "tags": [
          "Business"
        ],
        "operationId": "create-business",
        "summary": "Create Business",
        "description": "In order to access pre-approved Offers for Businesses, Platforms must first share non-PI data. This data is used to generate Offers, confirm receiving bank accounts with Businesses, and support the 2FA process used to accept Offers.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "currency",
                  "legal_address"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/paths/~1api~1v1~1capital~1payment-batches~1{batch_id}/get/parameters/0/schema"
                  },
                  "currency": {
                    "description": "Three-letter currency code (ISO 4217). Supported currencies `EUR`, `DKK`, `SEK` and `POL`. Must match the Business's registered currency.",
                    "type": "string",
                    "example": "EUR"
                  },
                  "bank_account": {
                    "type": "object",
                    "description": "Entity for sharing business bank account details.",
                    "properties": {
                      "account_number_ending": {
                        "description": "Last N digits of the Business’s bank account number (typically the last four).",
                        "type": "string",
                        "example": "9675"
                      }
                    }
                  },
                  "legal_representative": {
                    "type": "object",
                    "properties": {
                      "phone_ending": {
                        "description": "Last N digits of the business’s contact phone (usually last four).",
                        "type": "string",
                        "example": "1234"
                      }
                    }
                  },
                  "legal_address": {
                    "type": "object",
                    "description": "Entity for business address details.",
                    "required": [
                      "country"
                    ],
                    "properties": {
                      "country": {
                        "description": "Country where the Business operates.",
                        "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}~1credits/get/responses/200/content/application~1json/schema/properties/data/items/properties/country/allOf/0"
                      }
                    }
                  },
                  "partnership_started_date": {
                    "description": "Date when the Business started its partnership with the Platform.",
                    "type": "string",
                    "format": "date",
                    "example": "2020-01-01"
                  },
                  "founding_date": {
                    "description": "Date when the Business was established.",
                    "type": "string",
                    "format": "date",
                    "example": "2020-01-01"
                  },
                  "metadata": {
                    "type": "object",
                    "description": "Contains a set of flexible, custom key-value pairs. Used for sharing extra data.\n\nNotable key: `mcc` — the Business's Merchant Category Code(s) (ISO 18245, 4 digits each).\nAccepted formats: a comma-separated string (`\"5411,5812\"`) or an array of strings\n(`[\"5411\", \"5812\"]`). Always send codes as strings to preserve leading zeros (e.g. `\"0742\"`).\nIf at least one provided code is not eligible for financing, the request is rejected with\n`mcc_not_eligible`. The value is stored and returned as a comma-separated string.\n",
                    "additionalProperties": true,
                    "example": {
                      "mcc": "5411,5812",
                      "key": "value"
                    }
                  }
                }
              },
              "examples": {
                "create_business": {
                  "value": {
                    "id": "business-id",
                    "currency": "EUR",
                    "bank_account": {
                      "account_number_ending": "1234"
                    },
                    "legal_representative": {
                      "phone_ending": "4321"
                    },
                    "legal_address": {
                      "country": "DEU"
                    },
                    "partnership_started_date": "2023-01-01",
                    "founding_date": "2023-01-01",
                    "metadata": {
                      "mcc": "5411,5812",
                      "mcc_translation": "Grocery stores",
                      "employee_of_the_month": "John Doe"
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Business created.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Business response object",
                  "type": "object",
                  "required": [
                    "id",
                    "currency",
                    "bank_account",
                    "legal_address"
                  ],
                  "properties": {
                    "id": {
                      "description": "Identifier of the business.",
                      "type": "string",
                      "example": "business-id"
                    },
                    "legal_name": {
                      "description": "Legal name of the business.",
                      "type": "string",
                      "example": "Business GmbH"
                    },
                    "business_registration_number": {
                      "description": "Business registration number.",
                      "type": "string",
                      "example": "DE123456789"
                    },
                    "tax_number": {
                      "description": "Tax number.",
                      "type": "string",
                      "example": "DE987654321"
                    },
                    "bank_account": {
                      "description": "Entity for sharing business bank account details.",
                      "type": "object",
                      "properties": {
                        "account_number": {
                          "description": "Full IBAN or local BBAN of the Business’s bank account.",
                          "type": "string",
                          "example": "DE53500105174515729675"
                        },
                        "bic": {
                          "description": "BIC (Bank Identifier Code) of the Business’s bank account.",
                          "type": "string",
                          "example": "INGDDEFFXXX"
                        },
                        "account_holder_name": {
                          "description": "Name of the bank account holder. The Business’s legal name will be used for payout if this value is missing.",
                          "type": "string",
                          "example": "John Doe"
                        },
                        "account_number_ending": {
                          "description": "Last N digits of the Business’s bank account number (typically the last four).",
                          "type": "string",
                          "example": "9675"
                        }
                      }
                    },
                    "currency": {
                      "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/requestBody/content/application~1json/schema/properties/currency"
                    },
                    "legal_representative": {
                      "type": "object",
                      "properties": {
                        "first_name": {
                          "description": "First name of the business’s legal representative.",
                          "type": "string",
                          "example": "John"
                        },
                        "last_name": {
                          "description": "Last name of the business’s legal representative.",
                          "type": "string",
                          "example": "Doe"
                        },
                        "phone": {
                          "description": "Phone number of the business’s legal representative.",
                          "type": "string",
                          "example": "+4917612345678"
                        },
                        "email": {
                          "description": "Email address of the business’s legal representative.",
                          "type": "string",
                          "example": "john@doe.mail"
                        },
                        "phone_ending": {
                          "description": "Last N digits of the business’s contact phone (usually last four).",
                          "type": "string",
                          "example": "1234"
                        }
                      }
                    },
                    "legal_address": {
                      "type": "object",
                      "description": "Entity for business address details.",
                      "required": [
                        "country"
                      ],
                      "properties": {
                        "address_line_1": {
                          "description": "First line of the Business address.",
                          "type": "string",
                          "example": "Musterstraße 12"
                        },
                        "address_line_2": {
                          "description": "Second line of the Business address for any required additions to the first line.",
                          "type": "string",
                          "example": "c/o Business GmbH"
                        },
                        "postal_code": {
                          "description": "Postal code of the Business address.",
                          "type": "string",
                          "example": "12345"
                        },
                        "city": {
                          "description": "City where the Business is located.",
                          "type": "string",
                          "example": "Musterstadt"
                        },
                        "state": {
                          "description": "State where the Business is located.",
                          "type": "string",
                          "example": "Musterstadt"
                        },
                        "country": {
                          "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}~1credits/get/responses/200/content/application~1json/schema/properties/data/items/properties/country/allOf/0"
                        }
                      }
                    },
                    "partnership_started_date": {
                      "description": "Date when the partnership started (ISO 8601 date).",
                      "type": "string",
                      "format": "date",
                      "example": "2020-01-01"
                    },
                    "founding_date": {
                      "description": "Date when the business was founded (ISO 8601 date).",
                      "type": "string",
                      "format": "date",
                      "example": "2020-01-01"
                    },
                    "metadata": {
                      "type": "object",
                      "description": "Contains a set of flexible custom key-value pairs. Used for sharing extra data.",
                      "additionalProperties": true,
                      "example": {
                        "key": "value"
                      }
                    }
                  }
                },
                "examples": {
                  "business_created": {
                    "value": {
                      "id": "business-id",
                      "legal_name": null,
                      "business_registration_number": null,
                      "tax_number": null,
                      "bank_account": {
                        "account_number": null,
                        "bic": null,
                        "account_holder_name": null,
                        "account_number_ending": "1234"
                      },
                      "currency": "EUR",
                      "legal_representative": {
                        "first_name": null,
                        "last_name": null,
                        "phone": null,
                        "email": null,
                        "phone_ending": "4321"
                      },
                      "legal_address": {
                        "address_line1": null,
                        "address_line2": null,
                        "postal_code": null,
                        "city": null,
                        "state": null,
                        "country": "DEU"
                      },
                      "partnership_started_date": "2023-01-01",
                      "founding_date": "2023-01-01",
                      "metadata": {
                        "mcc": "5411,5812",
                        "mcc_translation": "Grocery stores",
                        "employee_of_the_month": "John Doe"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Can't process request due to validation reasons, or at least one of the Business's merchant category codes (MCC) is not eligible for financing.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "validation_error",
                            "mcc_not_eligible"
                          ]
                        },
                        "description": {
                          "example": "Some fields of the request don't match requirements."
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "validation_error": {
                    "value": {
                      "code": "validation_error",
                      "description": "Some fields of the request don't match requirements."
                    }
                  },
                  "mcc_not_eligible": {
                    "value": {
                      "code": "mcc_not_eligible",
                      "description": "Financing is not available for businesses in these merchant categories (MCC '9999,8888')."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key. Could not authenticate API request."
          },
          "409": {
            "description": "Business exists already.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "business_conflict"
                          ]
                        },
                        "description": {
                          "example": "Business with id 'business-id' already exists"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "business_conflict": {
                    "value": {
                      "code": "business_conflict",
                      "description": "Business with id 'business-id' already exists"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred. You should try again later or contact finmid support.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "server_error"
                          ]
                        },
                        "description": {
                          "example": "Our server was hit by a meteorite 💥."
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "server_error": {
                    "value": {
                      "code": "server_error",
                      "description": "Internal processing error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/capital/businesses/{business_id}": {
      "get": {
        "tags": [
          "Business"
        ],
        "operationId": "get-business",
        "summary": "Get Business",
        "description": "This endpoint allows Platforms to detect what data has been shared up to the current time for any specific Business.",
        "parameters": [
          {
            "name": "business_id",
            "in": "path",
            "required": true,
            "description": "Identifier of the Business.",
            "schema": {
              "$ref": "#/paths/~1api~1v1~1capital~1payment-batches~1{batch_id}/get/parameters/0/schema"
            },
            "example": "business-id"
          }
        ],
        "responses": {
          "200": {
            "description": "Business.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/201/content/application~1json/schema"
                },
                "examples": {
                  "business": {
                    "value": {
                      "id": "business-id",
                      "legal_name": "Business GmbH",
                      "business_registration_number": "DE123456789",
                      "tax_number": "DE987654321",
                      "bank_account": {
                        "account_number": "DE53500105174515729675",
                        "bic": "INGDDEFFXXX",
                        "account_holder_name": "John Doe",
                        "account_number_ending": "9675"
                      },
                      "currency": "EUR",
                      "legal_representative": {
                        "first_name": "John",
                        "last_name": "Doe",
                        "phone": "+4917612345678",
                        "email": "john@doe.mail",
                        "phone_ending": "5678"
                      },
                      "legal_address": {
                        "address_line1": "Musterstraße 12",
                        "address_line2": "c/o Business GmbH",
                        "postal_code": "12345",
                        "city": "Musterstadt",
                        "state": null,
                        "country": "DEU"
                      },
                      "partnership_started_date": "2023-01-01",
                      "founding_date": "2023-01-01",
                      "metadata": {
                        "employee_of_the_month": "John Doe"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/401"
          },
          "404": {
            "description": "Business not found.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "business_not_found"
                          ]
                        },
                        "description": {
                          "example": "Business with id 'business-id' not found"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "business_not_found": {
                    "value": {
                      "code": "business_not_found",
                      "description": "Business with id 'business-id' not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/500"
          }
        }
      }
    },
    "/api/v1/capital/businesses/{business_id}/offers/{offer_group_id}/platform-checks": {
      "post": {
        "tags": [
          "Offer",
          "Offer Group"
        ],
        "operationId": "report-platform-check",
        "summary": "Report Platform Check",
        "description": ">  ⚠️ This API is relevant only for platforms that provide their own capital to businesses.\n\n\nReports the outcome of a check your platform runs on a Business before its Funding is paid out, for example an inventory check.\n\nfinmid waits for this outcome before it runs its own checks on the Business, and does not pay out a Funding from an Offer Group whose check you rejected.\n\nReport the outcome on the `offer_group_id` you received in [`capital_offer.created`](./capital-webhooks#capital_offercreated). You can report it at any moment after the Offer Group is created, before or after the Business accepts one of its Offers.\n\n> 📘 Platform checks are enabled per platform\n>\n> Contact finmid to enable platform checks for your platform. Until they are enabled, this endpoint answers `403 platform_checks_not_enabled` and stores nothing.\n\n## What finmid does with the outcome\n\n| When you report | `APPROVED` | `REJECTED` |\n|---|---|---|\n| **Before** the Business accepts an Offer | finmid keeps the outcome on the Offer Group and uses it once the Business accepts one of its Offers. The Offers stay available. | finmid withdraws the Offer Group and sends [`capital_offer.withdrawn`](./capital-webhooks#capital_offerwithdrawn). The Business can no longer accept its Offers. |\n| **After** the Business accepted an Offer | The review of the Funding Application continues with finmid's own checks. | finmid rejects the Funding Application and sends [`capital_funding_application.rejected`](./capital-webhooks#capital_funding_applicationrejected). No Funding is created. |\n\n## Every accepted Offer needs an outcome\n\nOnce the Business accepts an Offer, the review of its Funding Application waits for your outcome:\n\n- If you reported `APPROVED` on the Offer Group before the acceptance, finmid uses that outcome. You do not need to report again.\n- Otherwise the Funding Application stays `IN_REVIEW` until you report an outcome. [`capital_offer.accepted`](./capital-webhooks#capital_offeraccepted) tells you when the Business accepts an Offer.\n\nAn outcome belongs to the Offer Group you reported it on. When finmid replaces an Offer Group with a new one, report the outcome again on the new `offer_group_id`.\n\n## Reporting more than once\n\nUntil finmid uses an outcome, a new report on the same Offer Group replaces the previous one:\n\n- Before the acceptance, `APPROVED` sent again replaces the stored outcome, and `REJECTED` sent after `APPROVED` withdraws the Offer Group.\n- After the acceptance, the most recent report wins, also over an `APPROVED` reported before the acceptance.\n\nOnce finmid has used an outcome, a new report changes nothing:\n\n- After a `REJECTED` withdrew the Offer Group, the same `REJECTED` sent again answers `204`, and `APPROVED` answers `409 offer_group_not_active`.\n- After the review of the Funding Application used an outcome, any report answers `409 platform_check_already_consumed`.\n\n## Errors\n\n| Status | `code` | When | What to do |\n|---|---|---|---|\n| `400` | `validation_error` | A required field is missing, a field is unknown, a value is not one of the listed ones, `rejection_reason` is missing or blank for `REJECTED`, or `offer_group_id` is not a UUID. Nothing is stored. | Fix the request. |\n| `401` | | The API key is missing or invalid. | Check the `X-API-Key` header. |\n| `403` | `platform_checks_not_enabled` | Platform checks are not enabled for your platform. Nothing is stored. | Contact finmid. |\n| `404` | `business_not_found` | No Business with this `business_id` exists on your platform. | Check the `business_id`. |\n| `404` | `offer_group_not_found` | The Business has no Offer Group with this `offer_group_id`. | Use an `offer_group_id` received in `capital_offer.created` for this Business. |\n| `409` | `offer_group_not_active` | The Business has not accepted an Offer of the Offer Group, and the Offer Group has expired, was replaced by a new Offer Group, or was withdrawn. | Report on the new `offer_group_id`, if finmid created one. |\n| `409` | `platform_check_already_consumed` | The Business accepted an Offer of the Offer Group, and the review of its Funding Application has already used an outcome or has already ended. The outcome is not applied. | None. Read the Funding Application with [Get Funding Applications](./get-funding-applications) to see its status. |\n| `422` | `platform_check_not_required` | The Business accepted an Offer of the Offer Group, and the review of its Funding Application runs without a platform check. The outcome is not applied. | None. |\n| `500` | `server_error` | An unexpected error occurred. | Retry later. |\n| `503` | `platform_check_unavailable` | finmid could not confirm that it recorded the outcome. | Retry later. |\n\nRetrying is safe: reporting the same outcome again does not apply it twice. Retry on `500`, on `503` and on network errors; `400`, `403`, `404`, `409` and `422` do not change on retry. If a retry answers `409 platform_check_already_consumed`, an earlier attempt may already have been used: read the Funding Application with [Get Funding Applications](./get-funding-applications) to see its status.\n\n> Related webhooks:\n> - [`capital_offer.created`](./capital-webhooks#capital_offercreated) carries the `offer_group_id` to report on\n> - [`capital_offer.accepted`](./capital-webhooks#capital_offeraccepted) to communicate when the Business accepts an Offer and its Funding Application waits for your outcome\n> - [`capital_offer.withdrawn`](./capital-webhooks#capital_offerwithdrawn) to communicate when a `REJECTED` outcome withdrew the Offer Group\n> - [`capital_funding_application.rejected`](./capital-webhooks#capital_funding_applicationrejected) to communicate when the Funding Application was rejected, for example by a `REJECTED` outcome reported after the acceptance\n",
        "parameters": [
          {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}~1offers~1{offer_group_id}~1signature-link/post/parameters/1"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "check_type",
                  "outcome"
                ],
                "properties": {
                  "check_type": {
                    "type": "string",
                    "description": "The check your platform ran on the Business.\n\n- `INVENTORY`: an inventory check of the Business.\n",
                    "enum": [
                      "INVENTORY"
                    ],
                    "example": "INVENTORY"
                  },
                  "outcome": {
                    "type": "string",
                    "description": "The outcome of the check.\n\n- `APPROVED`: the Business passed the check.\n- `REJECTED`: the Business did not pass the check. finmid does not pay out a Funding from this Offer Group.\n",
                    "enum": [
                      "APPROVED",
                      "REJECTED"
                    ],
                    "example": "APPROVED"
                  },
                  "rejection_reason": {
                    "type": "string",
                    "nullable": true,
                    "description": "Why the Business did not pass the check. Required, and not blank, when `outcome` is `REJECTED`; ignored when `outcome` is `APPROVED`. finmid does not show it to the Business.",
                    "example": "Inventory below the platform's threshold"
                  }
                }
              },
              "examples": {
                "approved": {
                  "summary": "The Business passed the check",
                  "value": {
                    "check_type": "INVENTORY",
                    "outcome": "APPROVED"
                  }
                },
                "rejected": {
                  "summary": "The Business did not pass the check",
                  "value": {
                    "check_type": "INVENTORY",
                    "outcome": "REJECTED",
                    "rejection_reason": "Inventory below the platform's threshold"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Outcome reported. No response body.\n\nAlso returned when you send again the `REJECTED` that withdrew the Offer Group: nothing changes.\n"
          },
          "400": {
            "description": "Validation error. Nothing is stored.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    }
                  ]
                },
                "examples": {
                  "missing_field": {
                    "summary": "A required field is missing",
                    "value": {
                      "code": "validation_error",
                      "description": "Missing mandatory field(s): outcome"
                    }
                  },
                  "unknown_value": {
                    "summary": "A value is not one of the listed ones",
                    "value": {
                      "code": "validation_error",
                      "description": "Malformed payload for field: check_type"
                    }
                  },
                  "missing_rejection_reason": {
                    "summary": "The outcome is REJECTED and rejection_reason is missing or blank",
                    "value": {
                      "code": "validation_error",
                      "description": "rejection_reason is required when the outcome is REJECTED"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/401"
          },
          "403": {
            "description": "Platform checks are not enabled for your platform. Nothing is stored.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "platform_checks_not_enabled"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "platform_checks_not_enabled": {
                    "summary": "Platform checks are not enabled for your platform",
                    "value": {
                      "code": "platform_checks_not_enabled",
                      "description": "Platform checks are not enabled for this platform"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The Business, or its Offer Group, does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "business_not_found",
                            "offer_group_not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "business_not_found": {
                    "summary": "No Business with this business_id exists on your platform",
                    "value": {
                      "code": "business_not_found",
                      "description": "Business with id 'business-id' not found"
                    }
                  },
                  "offer_group_not_found": {
                    "summary": "The Business has no Offer Group with this offer_group_id",
                    "value": {
                      "code": "offer_group_not_found",
                      "description": "Offer group with id '70170884-67ef-427a-b7cf-912647c09a56' not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The outcome can no longer be applied.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "offer_group_not_active",
                            "platform_check_already_consumed"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "offer_group_not_active": {
                    "summary": "No Offer was accepted, and the Offer Group has expired, was replaced or was withdrawn",
                    "value": {
                      "code": "offer_group_not_active",
                      "description": "Offer group with id '70170884-67ef-427a-b7cf-912647c09a56' has expired, or was replaced or withdrawn"
                    }
                  },
                  "platform_check_already_consumed": {
                    "summary": "An Offer was accepted, and the review of the Funding Application has already used an outcome or has ended",
                    "value": {
                      "code": "platform_check_already_consumed",
                      "description": "The screening of the accepted offer has already consumed a platform check"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The review of the Funding Application runs without a platform check. The outcome is not applied.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "platform_check_not_required"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "platform_check_not_required": {
                    "summary": "An Offer was accepted, and the review of the Funding Application runs without a platform check",
                    "value": {
                      "code": "platform_check_not_required",
                      "description": "The screening of the accepted offer requires no platform check"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/500"
          },
          "503": {
            "description": "finmid could not confirm that it recorded the outcome. Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "platform_check_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "platform_check_unavailable": {
                    "summary": "finmid could not confirm that it recorded the outcome",
                    "value": {
                      "code": "platform_check_unavailable",
                      "description": "The platform check could not be recorded, retry later"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/capital/businesses/{business_id}/offers/{offer_group_id}/signature-link": {
      "post": {
        "tags": [
          "Offer",
          "Offer Group"
        ],
        "operationId": "create-signature-link",
        "summary": "Create Signature Link",
        "description": "Returns a link that opens finmid's signature screen for one Offer. Use it when your platform shows the Offers in its own UI.\n\nThe Business always accepts an Offer in finmid's iframe. With this link the iframe skips the offer overview and opens a single screen to accept the Offer you pass in `offer_id`. The screen does not repeat the terms of the Offer, so show them in your UI. It asks for the use of funds when you do not send them.\n\n## The flow\n\n1. When you show the Offers to the Business, fetch them with [Get Active Offer Group](./get-active-offer-group) without `suppress_offer_opened_event=true`. With your own UI, that call is what records that the Business opened the Offers: the first such call for an Offer Group triggers `capital_offer.opened`.\n2. When the Business picks an Offer in your UI, call this endpoint with the `offer_group_id` and the `offer_id` of that Offer.\n3. Open the returned `url` in an iframe or in a mobile webview before `valid_until`.\n4. When the Business accepts the Offer, the iframe sends the message `{ \"type\": \"OFFER_ACCEPTED\" }`. finmid sends it with `window.parent.postMessage` to the origin configured for your platform (contact finmid to configure it), and in mobile webviews through `window.finmidBridge` (Android) and `window.webkit.messageHandlers.finmidBridge` (iOS). finmid then sends [`capital_offer.accepted`](./capital-webhooks#capital_offeraccepted).\n\nNeither calling this endpoint nor opening the returned `url` counts as the Business opening the Offers: neither triggers [`capital_offer.opened`](./capital-webhooks#capital_offeropened).\n\nEvery call returns a new link. A link can stop working before its `valid_until`, for example when finmid replaces the Offer Group: fetch the current Offer Group with [Get Active Offer Group](./get-active-offer-group) and call this endpoint again.\n\n## Errors\n\n| Status | `code` | When | What to do |\n|---|---|---|---|\n| `400` | `validation_error` | `offer_id` is missing, a value of `use_of_funds` is not one of the listed ones, `use_of_funds` contains `OTHER` without `use_of_funds_comment`, `use_of_funds_comment` is longer than 500 characters, or `offer_group_id` is not a UUID. | Fix the request. |\n| `401` | | The API key is missing or invalid. | Check the `X-API-Key` header. |\n| `404` | `business_not_found` | No Business with this `business_id` exists on your platform. | Check the `business_id`. |\n| `404` | `offer_group_not_found` | The Business has no Offer Group with this `offer_group_id`. | Use the `id` of the Offer Group returned by [Get Active Offer Group](./get-active-offer-group). |\n| `404` | `offer_not_found` | The Offer Group has no Offer with this `offer_id`. | Use an `id` from `flexible_offers` or `fixed_offers` of the same Offer Group. |\n| `409` | `business_details_incomplete` | The Business has no valid bank account number or phone number. In the same case [Get current Offer](./get-current-offer-state) returns no `embedding_link` URL. | Complete the bank account and the phone number of the Business. |\n| `409` | `offer_group_not_active` | The Offer Group has expired, was replaced by a new Offer Group, was withdrawn, or the Business already accepted one of its Offers. | Fetch the current Offer Group with [Get Active Offer Group](./get-active-offer-group). |\n| `500` | `server_error` | An unexpected error occurred. | Retry later. |\n",
        "parameters": [
          {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}/get/parameters/0"
          },
          {
            "name": "offer_group_id",
            "in": "path",
            "required": true,
            "description": "Identifier of the Offer Group, as received in `capital_offer.created`.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "70170884-67ef-427a-b7cf-912647c09a56"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "offer_id"
                ],
                "properties": {
                  "offer_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Identifier of the Offer the Business picked in your UI. Use an `id` from `flexible_offers` or `fixed_offers` of the Offer Group returned by [Get Active Offer Group](./get-active-offer-group).",
                    "example": "550e8400-e29b-41d4-a716-446655440002"
                  },
                  "use_of_funds": {
                    "type": "array",
                    "uniqueItems": true,
                    "description": "What the Business will use the Funding for, when you ask the Business in your UI.\n\n- If you send at least one value, the signature screen does not ask the Business for the use of funds.\n- If you send none, the signature screen asks the Business. For the `CSP` financing setup the Business has to choose at least one before accepting.\n\nValues:\n\n- `NEW_EQUIPMENT`: new equipment.\n- `RENOVATIONS`: renovations.\n- `NEW_VENUE`: a new venue.\n- `MARKETING`: marketing.\n- `BILLS`: bills.\n- `OTHER`: another use, described in `use_of_funds_comment`.\n",
                    "items": {
                      "type": "string",
                      "enum": [
                        "NEW_EQUIPMENT",
                        "RENOVATIONS",
                        "NEW_VENUE",
                        "MARKETING",
                        "BILLS",
                        "OTHER"
                      ]
                    },
                    "example": [
                      "RENOVATIONS",
                      "OTHER"
                    ]
                  },
                  "use_of_funds_comment": {
                    "type": "string",
                    "nullable": true,
                    "maxLength": 500,
                    "description": "Describes the `OTHER` use of funds, up to 500 characters. Required, and not blank, when `use_of_funds` contains `OTHER`. Without `OTHER` it is left out of the link, but a comment longer than 500 characters still answers `400 validation_error`.",
                    "example": "New coffee machine"
                  },
                  "auth_context": {
                    "$ref": "#/paths/~1api~1v1~1capital~1businesses~1{business_id}~1offers~1current/get/parameters/1/schema"
                  }
                }
              },
              "examples": {
                "signature_screen_asks_use_of_funds": {
                  "summary": "The signature screen asks the Business for the use of funds",
                  "value": {
                    "offer_id": "550e8400-e29b-41d4-a716-446655440002"
                  }
                },
                "use_of_funds_from_your_ui": {
                  "summary": "You collected the use of funds in your UI",
                  "value": {
                    "offer_id": "550e8400-e29b-41d4-a716-446655440002",
                    "use_of_funds": [
                      "RENOVATIONS",
                      "OTHER"
                    ],
                    "use_of_funds_comment": "New coffee machine",
                    "auth_context": "VERIFIED"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Link to the signature screen of the Offer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url",
                    "valid_until"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Link that opens finmid's signature screen for the Offer. Open it as it is, and reload it with the same query string: without its query parameters the iframe opens the full offer journey instead.\n\nTreat it as a credential: it opens the Business's session in finmid's iframe. Do not log it, store it, or send it by email or message.\n",
                      "example": "https://capital.example.com?c=DEU&t=eyJhbGciOiJIUzI1NiJ9.example&f=SIGNATURE&offer_id=550e8400-e29b-41d4-a716-446655440002"
                    },
                    "valid_until": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Latest moment in UTC at which the Business can accept the Offer through this link: the `expires_at` of the Offer Group (ISO 8601 datetime). The link stops working earlier if the Offer Group is replaced or withdrawn, or one of its Offers is accepted.\n",
                      "example": "2026-11-08T09:14:31.482Z"
                    }
                  }
                },
                "examples": {
                  "signature_link": {
                    "summary": "Link to the signature screen of the Offer",
                    "value": {
                      "url": "https://capital.example.com?c=DEU&t=eyJhbGciOiJIUzI1NiJ9.example&f=SIGNATURE&offer_id=550e8400-e29b-41d4-a716-446655440002",
                      "valid_until": "2026-11-08T09:14:31.482Z"
                    }
                  },
                  "signature_link_with_use_of_funds": {
                    "summary": "Link that carries the use of funds you collected",
                    "value": {
                      "url": "https://capital.example.com?c=DEU&t=eyJhbGciOiJIUzI1NiJ9.example&f=SIGNATURE&offer_id=550e8400-e29b-41d4-a716-446655440002&use_of_funds=RENOVATIONS%2COTHER&use_of_funds_comment=New+coffee+machine",
                      "valid_until": "2026-11-08T09:14:31.482Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error. No link is created.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    }
                  ]
                },
                "examples": {
                  "missing_field": {
                    "summary": "A required field is missing",
                    "value": {
                      "code": "validation_error",
                      "description": "Missing mandatory field(s): offer_id"
                    }
                  },
                  "unknown_value": {
                    "summary": "A value is not one of the listed ones",
                    "value": {
                      "code": "validation_error",
                      "description": "Malformed payload for field: use_of_funds"
                    }
                  },
                  "missing_use_of_funds_comment": {
                    "summary": "use_of_funds contains OTHER and use_of_funds_comment is missing or blank",
                    "value": {
                      "code": "validation_error",
                      "description": "use_of_funds_comment is required when use_of_funds contains OTHER"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/401"
          },
          "404": {
            "description": "The Business, its Offer Group, or the Offer does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "business_not_found",
                            "offer_group_not_found",
                            "offer_not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "business_not_found": {
                    "summary": "No Business with this business_id exists on your platform",
                    "value": {
                      "code": "business_not_found",
                      "description": "Business with id 'business-id' not found"
                    }
                  },
                  "offer_group_not_found": {
                    "summary": "The Business has no Offer Group with this offer_group_id",
                    "value": {
                      "code": "offer_group_not_found",
                      "description": "Offer group with id '70170884-67ef-427a-b7cf-912647c09a56' not found"
                    }
                  },
                  "offer_not_found": {
                    "summary": "The Offer Group has no Offer with this offer_id",
                    "value": {
                      "code": "offer_not_found",
                      "description": "Offer with id '550e8400-e29b-41d4-a716-446655440002' not found in offer group '70170884-67ef-427a-b7cf-912647c09a56'"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The Business cannot accept an Offer of this Offer Group.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "business_details_incomplete",
                            "offer_group_not_active"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "business_details_incomplete": {
                    "summary": "The Business has no valid bank account number or phone number",
                    "value": {
                      "code": "business_details_incomplete",
                      "description": "Business with id 'business-id' has no valid bank account number or phone number"
                    }
                  },
                  "offer_group_not_active": {
                    "summary": "The Offer Group has expired, was replaced or withdrawn, or one of its Offers was accepted",
                    "value": {
                      "code": "offer_group_not_active",
                      "description": "Offer group with id '70170884-67ef-427a-b7cf-912647c09a56' has expired, was replaced or withdrawn, or one of its offers was accepted"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/500"
          }
        }
      }
    },
    "/api/v1/capital/payment-batches/{batch_id}": {
      "get": {
        "tags": [
          "Payment"
        ],
        "operationId": "get-payment-batch",
        "summary": "Get Payment batch",
        "description": "Retrieve aggregated payment information for a specific payment batch.\n\nFor every batch, it is possible to request information about the total batch payment amount and platform commission amount, as well as the payment details for each Funding.\n\nThe information is aggregated by `funding_id`, meaning if multiple payments were reported for the same Funding (via [Report Payment](./report-payment) API), they will be summed together in a single entry.\n\nThis endpoint provides visibility into payments that were reported using [Report Payment](./report-payment) API. Use this data to determine the total amount to collect from your businesses before completing the batch via [Report Funds Collection](./report-funds-collection) API (platform-funded) or bank transfer (finmid-funded).\n",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "description": "Unique identifier for the specific payment period.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_\\.\\-]{1,100}$",
              "maxLength": 100
            },
            "example": "W4-2020-01"
          }
        ],
        "responses": {
          "200": {
            "description": "Aggregated batch payment data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "batch_id",
                    "payment_amount",
                    "currency",
                    "platform_commission_amount",
                    "data"
                  ],
                  "properties": {
                    "batch_id": {
                      "description": "Unique identifier for the specific payment period.",
                      "type": "string"
                    },
                    "payment_amount": {
                      "description": "Total payment amount reported for all Fundings in this batch. Sum of all `payment_amount` in the `data` array.",
                      "type": "number"
                    },
                    "currency": {
                      "allOf": [
                        {
                          "$ref": "#/paths/~1api~1v1~1capital~1payment-batches~1{batch_id}~1incoming-funds/post/requestBody/content/application~1json/schema/properties/currency/allOf/0"
                        },
                        {
                          "description": "ISO 4217 currency code."
                        }
                      ]
                    },
                    "platform_commission_amount": {
                      "description": "Total platform commission amount for all Fundings in this batch. Sum of all `platform_commission_amount` in the `data` array.",
                      "type": "number"
                    },
                    "data": {
                      "type": "array",
                      "description": "Aggregated payment data for each `funding_id` in this batch. If multiple payments were reported for the same Funding, they are summed together.",
                      "items": {
                        "type": "object",
                        "required": [
                          "business_id",
                          "funding_id",
                          "payment_amount",
                          "platform_commission_amount",
                          "currency"
                        ],
                        "properties": {
                          "business_id": {
                            "description": "Unique identifier of the Business that owns the Funding.",
                            "type": "string"
                          },
                          "funding_id": {
                            "description": "Unique identifier of the Funding for which payments were reported.",
                            "type": "string",
                            "format": "uuid"
                          },
                          "payment_amount": {
                            "description": "Total payment amount reported for this Funding in this batch, excluding the `platform_commission_amount`. This is the amount that we expect to receive in transaction to us, with `batch_id` as a payment reference.",
                            "type": "number"
                          },
                          "platform_commission_amount": {
                            "description": "Total platform commission amount for this Funding in this batch. This is the amount that will be kept by you as a commission.",
                            "type": "number"
                          },
                          "currency": {
                            "allOf": [
                              {
                                "$ref": "#/paths/~1api~1v1~1capital~1payment-batches~1{batch_id}~1incoming-funds/post/requestBody/content/application~1json/schema/properties/currency/allOf/0"
                              },
                              {
                                "description": "ISO 4217 currency code in which Business operates."
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "single_funding_payment": {
                    "value": {
                      "batch_id": "W4-2020-01",
                      "payment_amount": 1000,
                      "platform_commission_amount": 50,
                      "data": [
                        {
                          "business_id": "business-123",
                          "funding_id": "00000000-0000-0000-0000-000000000001",
                          "payment_amount": 1000,
                          "platform_commission_amount": 50
                        }
                      ]
                    }
                  },
                  "multiple_fundings_payment": {
                    "value": {
                      "batch_id": "W4-2020-01",
                      "payment_amount": 2500,
                      "platform_commission_amount": 125,
                      "data": [
                        {
                          "business_id": "business-123",
                          "funding_id": "00000000-0000-0000-0000-000000000001",
                          "payment_amount": 1500,
                          "platform_commission_amount": 75
                        },
                        {
                          "business_id": "business-456",
                          "funding_id": "00000000-0000-0000-0000-000000000002",
                          "payment_amount": 1000,
                          "platform_commission_amount": 50
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/401"
          },
          "404": {
            "description": "Batch not found.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1api~1v1~1transaction/post/responses/400/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "batch_not_found"
                          ]
                        },
                        "description": {
                          "example": "Batch with ID 'W4-2020-01' not found"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "batch_not_found": {
                    "value": {
                      "code": "batch_not_found",
                      "description": "Batch with ID 'W4-2020-01' not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1api~1v1~1capital~1businesses/post/responses/500"
          }
        }
      }
    },
    "/api/v1/transaction": {
      "post": {
        "tags": [
          "Payment"
        ],
        "operationId": "execute-payment-transaction",
        "summary": "Execute Payment Transaction",
        "description": "This API must be implemented by platforms that provide their own capital to businesses.\n\n> ⚠️ Note that this endpoint is **not hosted by finmid**.\n\nIt is called by finmid to instruct the platform to execute a bank transfer to the specified beneficiary to payout a funding.\n\nThe platform must process the payment and return a successful HTTP response to acknowledge receipt of the request.\n\nOnce the payment request has been processed, the platform must notify finmid of its success or failure via the [Receive Payout Confirmation](#tag/Incoming-Webhook/operation/receive-payout-confirmation) webhook.\n\n## Idempotency\n\nThe `idempotency_key` uniquely identifies each transaction request. If finmid sends a request with an `idempotency_key` that was already successfully processed, the platform should return a 409 - CONFLICT response without executing the payment again.\n\n## Beneficiary verification\n\nWe recommend that the platform verifies the beneficiary before executing the payment. Specifically, the platform should look up the business in its own system using the provided `iban` and confirm that the beneficiary is a known customer. If the IBAN does not match any registered business, the platform should reject the request with a 400 - validation error.\n\n## Authentication & message integrity\n\nEvery request from finmid is signed using **HTTP Message Signatures** ([RFC 9421](https://www.rfc-editor.org/rfc/rfc9421)), combined with **IP whitelisting**.\n\n### What is signed\n\nfinmid signs the following components of each request:\n\n| Component | Description |\n|---|---|\n| `@method` | HTTP method (POST) |\n| `@path` | Request path |\n| `content-type` | Media type of the body |\n| `content-digest` | SHA-256 hash of the request body (see below) |\n\n### Request headers\n\nEach signed request includes the following additional HTTP headers:\n\n| Header | Description |\n|---|---|\n| `Content-Digest` | SHA-256 hash of the request body, formatted as `sha-256=:<base64-encoded-hash>:` |\n| `Signature-Input` | Describes which components are signed and includes signature metadata |\n| `Signature` | The cryptographic signature (base64-encoded) |\n\n### Signature metadata\n\nThe `Signature-Input` header contains the following metadata parameters:\n\n| Parameter | Description |\n|---|---|\n| `keyid` | Identifier of the public key to use for verification. finmid will provide the public key during integration setup. |\n| `alg` | Signing algorithm. finmid uses `ed25519`. |\n| `created` | Unix timestamp (seconds) when the signature was created. |\n| `expires` | Unix timestamp (seconds) after which the signature is no longer valid (`created` + 60 seconds) |\n| `nonce` | Random unique value (UUID) generated per request attempt, including retries. Used exclusively for replay attack prevention — independent from the `idempotency_key` in the request body, which serves business-level idempotency. The nonce store can use a short TTL aligned with the signature validity window (`expires - created`). |\n\n### Example signed request\n\n```http\nPOST /api/v1/transaction HTTP/1.1\nHost: platform.example.com\nContent-Type: application/json\nContent-Digest: sha-256=:q83vRzQK3YpS6cJ8iX9u6pHc9T6YxQZ3S8KcYpVvC8E=:\nSignature-Input: sig1=(\"@method\" \"@path\" \"content-type\" \"content-digest\");created=1773135059;expires=1773135119;keyid=\"finmid-prod-key-1\";alg=\"ed25519\";nonce=\"f47ac10b-58cc-4372-a567-0e02b2c3d479\"\nSignature: sig1=:dGhpcyBpcyBhbiBleGFtcGxlIHNpZ25hdHVyZQ==:\n\n{\"idempotency_key\":\"op-fund-2026.crd-001.biz-123\",\"business_id\":\"biz-123\",\"beneficiary\":{\"iban\":\"DE89370400440532013000\",\"bic\":\"COBADEFFXXX\",\"name\":\"John Doe\"}, ...}\n```\n\n### Verification steps (server-side)\n\nThe platform must verify each incoming request:\n\n1. **Parse** `Signature-Input` to extract signed components and metadata.\n2. **Reconstruct** the signature base — the canonical string built from the signed components in the exact order specified by `Signature-Input`.\n3. **Retrieve** the public key using `keyid`. finmid will provide the public key during integration setup.\n4. **Verify** the `Signature` against the reconstructed signature base using the public key and the `ed25519` algorithm.\n5. **Validate** the `Content-Digest` header by computing SHA-256 of the received body and comparing.\n6. **Enforce** temporal and replay policies:\n   - Reject if `created` is in the future (allow ~30 seconds clock skew).\n   - Reject if current time is after `expires`.\n   - Reject if the `nonce` has already been seen within the validity window.\n\nIf any step fails, return `401 Unauthorized`.\n\n### Key exchange\n\nDuring integration setup, finmid will provide:\n- The **Ed25519 public key** for signature verification.\n- The **`keyid`** value that will appear in `Signature-Input`.\n- The list of **IP addresses** to whitelist for additional security.\n\nKey rotation will be coordinated between finmid and the platform, with advance notice.\n\n## Base URL\n\nThe base URL for this endpoint is the platform's own server URL, configured during the integration setup with finmid. <br>\nThe following is a suggestion, the platform can customise it to their needs:\n\n```\nPOST <platform-base-url>/api/v1/transaction\n```\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "idempotency_key",
                  "business_id",
                  "beneficiary",
                  "amount",
                  "payment_reference"
                ],
                "properties": {
                  "idempotency_key": {
                    "type": "string",
                    "description": "Unique idempotency key for this transaction request. Composed of the operation key, source ID, and destination ID, separated by dots.\n\nFormat: `<operation_key>.<from_id>.<to_id>`\n",
                    "example": "op-abc123.src-001.dst-002"
                  },
                  "business_id": {
                    "type": "string",
                    "description": "The platform's identifier for the business receiving the payout. Provided by finmid so the platform can verify the beneficiary against its own records.\n",
                    "example": "biz-123"
                  },
                  "beneficiary": {
                    "allOf": [
                      {
                        "type": "object",
                        "required": [
                          "iban",
                          "name"
                        ],
                        "properties": {
                          "iban": {
                            "type": "string",
                            "description": "IBAN of the beneficiary.",
                            "example": "DE89370400440532013000"
                          },
                          "bic": {
                            "type": "string",
                            "description": "BIC of the beneficiary.",
                            "nullable": true,
                            "example": "COBADEFFXXX"
                          },
                          "name": {
                            "type": "string",
                            "description": "Full name of the beneficiary.",
                            "example": "John Doe"
                          }
                        }
                      },
                      {
                        "description": "Bank account details of the payment beneficiary."
                      }
                    ]
                  },
                  "amount": {
                    "type": "object",
                    "required": [
                      "value",
                      "currency"
                    ],
                    "description": "The payment amount.",
                    "properties": {
                      "value": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1api~1v1~1capital~1simulation~1credits/post/responses/200/content/application~1json/schema/allOf/0/properties/fee/allOf/1"
                          },
                          {
                            "description": "Amount to be transferred.",
                            "minimum": 0.01
                          }
                        ]
                      },
                      "currency": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1api~1v1~1capital~1payment-batches~1{batch_id}~1incoming-funds/post/requestBody/content/application~1json/schema/properties/currency/allOf/0"
                          },
                          {
                            "description": "ISO 4217 currency code of the payment."
                          }
                        ]
                      }
                    }
                  },
                  "payment_reference": {
                    "type": "string",
                    "description": "Reference text for the bank transfer. Identifies the purpose of the payment.",
                    "example": "Payment funding #CRD-2026-001"
                  }
                }
              },
              "examples": {
                "funding_payout": {
                  "summary": "Funding payout to business",
                  "value": {
                    "idempotency_key": "op-fund-2026.crd-001.biz-123",
                    "business_id": "biz-123",
                    "beneficiary": {
                      "iban": "DE89370400440532013000",
                      "bic": "COBADEFFXXX",
                      "name": "John Doe"
                    },
                    "amount": {
                      "value": 1500.75,
                      "currency": "EUR"
                    },
                    "payment_reference": "Payment funding #CRD-2026-001"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Transaction request acknowledged. The platform will process the payment."
          },
          "400": {
            "description": "The request is invalid or failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "required": [
                        "code",
                        "description"
                      ],
                      "properties": {
                        "code": {
                          "allOf": [
                            {
                              "type": "string",
                              "enum": [
                                "validation_error",
                                "server_error",
                                "buyer_invalid",
                                "seller_invalid",
                                "platform_invalid",
                                "payment_request_invalid",
                                "line_item_invalid",
                                "buyer_conflict",
                                "seller_conflict",
                                "payment_request_conflict",
                                "business_conflict",
                                "business_not_found",
                                "document_already_exists",
                                "incoming_webhook_conflict",
                                "mcc_not_eligible",
                                "offer_group_not_active",
                                "offer_group_not_found",
                                "platform_check_already_consumed",
                                "platform_check_not_required",
                                "platform_check_unavailable",
                                "platform_checks_not_enabled"
                              ]
                            },
                            {
                              "description": "Code that represents the kind of error."
                            }
                          ]
                        },
                        "description": {
                          "allOf": [
                            {
                              "type": "string"
                            },
                            {
                              "description": "A more detailed description of the error."
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "validation_error"
                          ]
                        },
                        "description": {
                          "example": "Invalid beneficiary IBAN"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "validation_error": {
                    "value": {
                      "code": "validation_error",
                      "description": "Invalid beneficiary IBAN"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Signature verification failed. Possible reasons:\n- Invalid or missing `Signature` or `Signature-Input` headers.\n- `Content-Digest` does not match the request body.\n- Signature has expired (`created`/`expires` validation failed).\n- `nonce` has already been used (replay attack detected).\n- Unknown `keyid` or request from a non-whitelisted IP.\n"
          },
          "409": {
            "description": "Transaction with the same idempotency key already processed."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyScheme": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  }
}
````