---
title: "Set a password and claim the account"
method: POST
path: "/v1/account_claims/complete"
tags: ["Account Claims"]
---

# Set a password and claim the account

`POST /v1/account_claims/complete`

## Request

- Base URL: `https://identity-api.paymongo.com`
- URL: `https://identity-api.paymongo.com/v1/account_claims/complete`
- Auth: none required

Validates the claim token, terms acceptance and password policy, creates the user with the account_owner role against the claim-eligible child organization, then auto-logs in (refresh token in HttpOnly cookie).

## Request body

- UserClaimAccountRequestEnvelopeDTO
  - `data` object
    - `attributes` UserClaimAccountRequestDTO
      - `accepted_terms` boolean
      - `password` string, required
      - `password_confirmation` string, required
      - `token` string, required

## Response `201`

Created

- object: Standard response containing data and its metadata if any
  - `data` object
    - `attributes` UserClaimAccountSuccessAttributesDTO
      - `expiry_timer` integer
      - `organization_id` string
      - `user_contact_number` string
      - `user_first_name` string
      - `user_last_name` string
    - `id` string
    - `type` string
  - `has_more` boolean

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict
- `410`: Gone
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/paymongo/apis/identity.md) - [All operations](https://skmtc.dev/paymongo/apis/identity/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/identity/revisions/cc3056164874?raw)
