The product to edit is identified by the
id field in the request body, not by
the {id} segment in the URL path. This endpoint shares the same handler as
Update Payment Link
(POST /payment-links/{id}/update).Authorization
string
required
Example:
Authorization | Bearer Paste-Your-API-Key-HereRequest Body
string
required
Unique identifier of the generic payment link product to edit. This is read
from the request body.
string
Generic payment link product name.
string
Generic payment link product description.
integer
Product price amount.
string
URL where the customer will be redirected after completing payment.
string
Additional notes for the payment link.
string | datetime
Payment link expiration date in ISO 8601 format.
Response
Successful ResponseMain Structure (Root)
integer
Status code from API.
string
Status message that describes the status code.
object
The updated generic payment link product data.
data Structure (Object)
string
Unique identifier of the generic payment link product.
string
Public payment link URL of the updated product.
Errors
object
When the request body fails validation, this endpoint still responds with HTTP
200 but sets messages to failed and returns the validator errors in
data: { "statusCode": 200, "messages": "failed", "data": { ... } }.object
Returned when the product does not belong to the authenticated account:
{ "statusCode": 401, "messages": "Unauthorized" }.object
Returned when the product does not exist:
{ "statusCode": 404, "messages": "Product not found" }.