Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Checkout

  • Retrieve location settings

  • Update location settings

  • Retrieve merchant settings

  • Update merchant settings

  • List payment links

  • Create payment link

  • Delete payment link

  • Retrieve payment link

  • Update payment link

  • Webhooks

  • online_checkout.location_settings.updated

  • online_checkout.merchant_settings.updated

<- Checkout API

Checkout API

All versions ->

Update payment link

PUT

 /v2/online-checkout/payment-links/{id}

Updates a payment link.

You can update the payment_link fields such as description, checkout_options, and pre_populated_data. You cannot update other fields such as the order_id, version, URL, or timestamp field.

Permissions:ORDERS_READ, ORDERS_WRITE, PAYMENTS_WRITE

Guide

Update a payment link

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

id

string

Required

The ID of the payment link to update.

Link to section

Request body

Link to section

payment_link

Required

The payment_link object describing the updates to apply. For more information, see Update a payment link.

Link to section

Response fields

Link to section

errors

Any errors that occurred when updating the payment link.

Link to section

payment_link

The updated payment link.

Link to section

Examples

All versions ->

PUT /v2/online-checkout/payment-links/{id}
curl https://connect.squareup.com/v2/online-checkout/payment-links/TY4BWEDJ6AI5MBIV \ -X PUT \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "payment_link": { "version": 1, "checkout_options": { "ask_for_shipping_address": true } } }'

Response JSON

{ "payment_link": { "id": "TY4BWEDJ6AI5MBIV", "version": 2, "order_id": "Qqc8ypQGvxVwc46Cch4zHTaJqc4F", "checkout_options": { "ask_for_shipping_address": true }, "url": "https://square.link/u/EXAMPLE", "long_url": "https://checkout.square.site/EXAMPLE", "created_at": "2022-04-26T00:15:15Z", "updated_at": "2022-04-26T00:18:24Z", "payment_note": "test" } }

Error descriptions

400 Bad request

{ "errors": [ { "code": "INVALID_PHONE_NUMBER", "category": "INVALID_REQUEST_ERROR" } ] }