---
title: "Update payment expiry"
method: PUT
path: "/config/payments/payment_expiries/{payment_expiry_id}"
tags: ["Payment expiration"]
---

# Update payment expiry

`PUT /config/payments/payment_expiries/{payment_expiry_id}`

Updates the time to live (ttl) of a payment expiry in seconds.

## Path parameters

- `payment_expiry_id` string, uuid, required

## Request body

- PaymentExpiry — Use this JSON request object to update the payment time to live represented in seconds.
  - `payment_ttl` number — Payment expiration window, or time to live (ttl), in seconds. To calculate the payment expiration date, xCurrent adds this value to the payment creation timestamp.
  - `sending_partner` string — RippleNet address of the sender, in the format `ripplenetaddress`. For example, `rn.us.sf.san_francisco`.
  - `receiving_partner` string — RippleNet address of the receiver, in the format `ripplenetaddress`. For example, `rn.us.ny.new_york`.
  - `currency` string — currency of the exchange rate.

## Response `200`

Successfully updated payment expiry.

- PaymentExpiryResponse — Use this JSON request object to update the payment time to live represented in seconds.
  - `payment_ttl` number — Payment expiration window, or time to live (ttl), in seconds. To calculate the payment expiration date, xCurrent adds this value to the payment creation timestamp.
  - `sending_partner` string — RippleNet address of the sender, in the format `ripplenetaddress`. For example, `rn.us.sf.san_francisco`.
  - `receiving_partner` string — RippleNet address of the receiver, in the format `ripplenetaddress`. For example, `rn.us.ny.new_york`.
  - `currency` string — currency of the exchange rate.
  - `expiry_id` string, uuid — id of payment expiry object

## Other responses

- `400` — Bad request.

---

[API](https://skmtc.net/ripple/apis/ripplenet-server-api.md) · [All operations](https://skmtc.net/ripple/apis/ripplenet-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ripple/ripplenet-server-api/revisions/7843f07ca150/schema)
