---
title: "Create Marriage Allowance eligibility test data"
method: POST
path: "/marriage-allowance-test-support/nino/{nino}/eligibility/{taxYear}"
tags: ["marriage-allowance-test-support"]
---

# Create Marriage Allowance eligibility test data

`POST /marriage-allowance-test-support/nino/{nino}/eligibility/{taxYear}`

## Request

- Base URL: `https://api.service.hmrc.gov.uk`
- URL: `https://api.service.hmrc.gov.uk/marriage-allowance-test-support/nino/{nino}/eligibility/{taxYear}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://test-api.service.hmrc.gov.uk/oauth/token`

Lets you create Marriage Allowance eligibility test data.

Supports the [Check Marriage Allowance eligibility resource method](https://test-developer.service.hmrc.gov.uk/api-documentation/docs/api/service/marriage-allowance#_check-marriage-allowance-eligibility_get_accordion) on the Marriage Allowance API.

## Path parameters

- `nino` string, required
- `taxYear` string, required

## Request body

- object: Create Marriage Allowance eligibility test data payload
  - `eligible` boolean, required: Whether the taxpayer's partner is eligible to become a recipient of Marriage Allowance

## Response `201`

- object: Create Marriage Allowance eligibility test data payload
  - `eligible` boolean, required: Whether the taxpayer's partner is eligible to become a recipient of Marriage Allowance

## Other responses

- `400`

---

[API](https://skmtc.dev/hmrc/apis/marriage-allowance-des-stub.md) - [All operations](https://skmtc.dev/hmrc/apis/marriage-allowance-des-stub/llms.txt) - [OpenAPI document](https://skmtc.dev/hmrc/apis/marriage-allowance-des-stub/revisions/5d453f907b57?raw)
