---
title: "Update Payment Request Status"
method: PATCH
path: "/payments/request/{id}"
tags: ["Payments"]
---

# Update Payment Request Status

`PATCH /payments/request/{id}`

## Request

- Base URL: `https://openapi.n3xt.io`
- URL: `https://openapi.n3xt.io/payments/request/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/n3xt/apis/n3xt-api-documentation/docs/payments/request/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the status of a payment request.

## Path parameters

- `id` string, required

## Request body

- object: The request body containing the status update.
  - `recipientWalletId` string
  - `senderWalletId` string
  - `reason` string
  - `status` 'accepted' | 'declined' | 'cancelled', required

## Response `202`

The payment request status was updated successfully.

- unknown

## Other responses

- `400`: Bad Request - Invalid request body.
- `401`: Unauthorized - Invalid or missing authentication token.
- `403`: Forbidden - User does not have permission to update this payment request.
- `404`: Not Found - The specified payment request was not found.
- `500`: An unexpected server error occurred while updating the payment request.

---

[API](https://skmtc.dev/n3xt/apis/n3xt-api-documentation.md) - [All operations](https://skmtc.dev/n3xt/apis/n3xt-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/n3xt/apis/n3xt-api-documentation/revisions/c634c45cd5b4?raw)
