Update Pay Out payment link
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:
Activecan change toExpired,Canceled, orDeleted.Expiredcan change toActive, by sending a newexpirationDate, or toDeleted.Canceledcan only change toDeleted. Canceling is permanent, and the link stays tied to its bill.Deletedis final. Deleting removes the link from its bill, if the bill is still active or approved, the same asDELETE /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
Bearer authentication of the form Bearer <token>, where token is your auth token.
Long-lived API token sent in the requestToken header. See API token authentication.
Path parameters
Request
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.
Response
Boolean indicating whether the operation was successful. A true value
indicates success. A false value indicates failure.
Response text for operation: ‘Success’ or ‘Declined’.
If isSuccess = true, this contains the payment link identifier. If isSuccess = false, this contains the reason of the error.