---
title: "Create Target"
method: POST
path: "/api/payments/targets"
tags: ["Payments"]
---

# Create Target

`POST /api/payments/targets`

## 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/targets`
- Auth: HTTP bearer

Add a new allocation target.

## Request body

- CreateTargetRequest
  - `label` string, required
  - `sort_code` string, nullable
  - `account_number` string, nullable
  - `source_connection_id` string, nullable
  - `holder_name` string, required
  - `goal_id` string, nullable

## Response `201`

Successful Response

- AllocationTargetResponse
  - `id` string, required
  - `label` string, required
  - `sort_code` string, required
  - `account_number` string, required
  - `holder_name` string, required
  - `is_active` boolean, required
  - `goal_id` string, nullable
  - `goal_name` string, nullable
  - `allocation_type` string, nullable
  - `allocation_value` number, nullable

## 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)
