Skip to navigation

Update Pay Out payment link

View as MarkdownOpen in Claude

Partially updates one or more of a Pay Out payment link’s content, expiration date, or status. Use this to modify the payment page configuration, extend or change the expiration, or cancel a link.

A link can only move between statuses as follows:

  • Active can change to Expired, Canceled, or Deleted.
  • Expired can change to Active, by sending a new expirationDate, or to Deleted.
  • Canceled can only change to Deleted. Canceling is permanent, and the link stays tied to its bill.
  • Deleted is final. Deleting removes the link from its bill, if the bill is still active or approved, the same as DELETE /PaymentLink/{payLinkId}.

Sending a new expirationDate for an expired link reactivates it to Active, so you don’t need to send status. Reactivation fails if the bill already has another active payment link.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

OR
requestTokenstring

Long-lived API token sent in the requestToken header. See API token authentication.

Path parameters

paylinkIdstringRequired
ID for the payment link.

Request

This endpoint expects an object.
billPageDataobjectOptional
Updated payment link page configuration.
expirationDatestringOptional

New expiration date for the payment link, in YYYY-MM-DD format. It must be after today (UTC), or the request fails with Expiration date must be in the future. The link expires at the end of that day (UTC).

Sending a new date for an expired link reactivates it to Active. Reactivation fails if the bill already has another active payment link. If you leave this field out, the expiration date doesn’t change.

statusenumOptional
Updated status for the payment link.
Allowed values:

Response

Success
isSuccessboolean

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

responseTextstring

Response text for operation: ‘Success’ or ‘Declined’.

responseDatastringOptional

If isSuccess = true, this contains the payment link identifier. If isSuccess = false, this contains the reason of the error.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error