Update Payment Link

Update an existing payment link’s information.

Endpoint

PUT /api/payment-links/{payment_link_id}

Path Parameters

ParameterTypeRequiredDescription
payment_link_idstringYesThe unique identifier for the payment link

Request Body

ParameterTypeRequiredDescription
descriptionstringNoDescription of the payment
expires_atstringNoExpiration date (ISO 8601 format)

Response

Returns the updated payment link object.
{
  "id": "pl_123456789",
  "url": "https://checkout.devdraft.ai/pl_123456789",
  "amount": 100.00,
  "currency": "USD",
  "description": "Updated product purchase",
  "status": "active",
  "created_at": "2023-01-01T00:00:00Z"
}