---
title: "Initiate Allocation"
method: POST
path: "/api/payments/initiate-allocation"
tags: ["Payments"]
---

# Initiate Allocation

`POST /api/payments/initiate-allocation`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/payments/initiate-allocation`
- Auth: HTTP bearer

Initiate allocation payments for a payday.
Receives a list of rules (each with target_id + amount) from the mobile client.
Looks up the linked AllocationTarget for bank details, creates a Finexer
payment for each, and returns consent URLs.

## Request body

- InitiateAllocationRequest
  - `source_account_id` string, required
  - `rules` AllocationRuleItem[], required
    - `target_id` string, required
    - `amount` number, required
    - `label` string, required

## Response `200`

Successful Response

- PaymentResponse[]
  - `payment_id` string, required
  - `consent_url` string, nullable
  - `amount` number, required
  - `target_label` string, required
  - `status` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
