---
title: "Create quote expiry"
method: POST
path: "/config/payments/quote_expiries"
tags: ["Quote expiration"]
---

# Create quote expiry

`POST /config/payments/quote_expiries`

Creates a quote expiration window, or time to live (ttl), in seconds.

## Request body

- QuoteExpiry — Use this JSON request object to update the quote time to live represented in seconds.
  - `quote_ttl` number — Quote expiration window, or time to live (ttl), in seconds. To calculate the quote expiration date, xCurrent adds this value to the quote 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.
  - `id` integer — id of quote expiry object

## Response `200`

Successfully created the quote expiration window.

- QuoteExpiry — Use this JSON request object to update the quote time to live represented in seconds.
  - `quote_ttl` number — Quote expiration window, or time to live (ttl), in seconds. To calculate the quote expiration date, xCurrent adds this value to the quote 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.
  - `id` integer — id of quote 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)
