---
title: "Replace the checkout's line items."
method: PUT
path: "/ucp/v1/checkout-sessions/{id}"
tags: ["UcpCheckout"]
---

# Replace the checkout's line items.

`PUT /ucp/v1/checkout-sessions/{id}`

## Request

- Base URL: `https://api2.globalfinreg.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api2.globalfinreg.com/ucp/v1/checkout-sessions/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- UcpCheckoutRequest
  - `lineItems` UcpLineItem[], nullable
    - `item` UcpItem
      - `id` string, nullable
    - `quantity` integer, nullable
  - `currency` string, nullable
  - `payment` UcpPayment
    - `instruments` UcpInstrument[], nullable
      - `id` string, nullable
      - `handlerId` string, nullable
      - `type` string, nullable
      - `credential` UcpCredential
        - `type` string, nullable
        - `token` string, nullable
        - `purchaseOrderNumber` string, nullable

## Response `200`

OK

---

[API](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api.md) · [All operations](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api/llms.txt) · [OpenAPI document](https://skmtc.dev/globalfinreg/apis/gfr-ai-agents-api/revisions/f8afe0178e1b?raw)
