POST
/v1/payment_links/{id}Change a draft link. An active link can't change: duplicate it instead.
Endpoint
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | The link's ID, pl_.... |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Optional | Any field of a new link, changed. |
line_items | array | Optional | The full list of lines. |
Example request
Example response
Errors
| Code | When |
|---|---|
invalid_state | Only a draft can be changed. |