Update and delete a Paylink
July 30, 2026
Delete a FlowAlp Pay Paylink with DELETE /Invoice/{id}/ and learn how to replace one when parameters change. curl and PHP SDK examples.
This page explains how to change and how to remove an existing Paylink. Deleting is a single API call; changing a Paylink's parameters is done by replacing it, because the Merchant API does not offer an in-place update for this resource.
https://api.pay.flowalp.com/v1.16/Invoice/{id}/v1.14 · v1.15 · v1.16Update a Paylink
API versions v1.14 to v1.16 do not provide a PUT operation for the Paylink (Invoice) resource, so a Paylink cannot be modified through the API once created. To change the amount, the texts or the expiry date of a link that has not been paid yet:
- Create a new Paylink with the corrected parameters — see Create a Paylink.
- Publish the new link wherever the old one was shared (e-mail, QR code, invoice document).
- Delete the outdated Paylink with the call below so nobody can pay against it anymore.
Never leave a Paylink online whose configuration no longer matches your records. If a programmatic update operation would substantially simplify your integration, contact support before building workarounds.
Delete a Paylink
Deleting removes the Paylink by its ID; its URL stops accepting payments. Authenticate with the X-API-KEY header — see Authentication.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | ID of the Paylink (Invoice) to delete. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| instance | string | Yes | Name of your merchant instance; identifies your account on every API call. |
Example request
curl --request DELETE \
--url "https://api.pay.flowalp.com/v1.16/Invoice/57/?instance=${FLOWALP_PAY_INSTANCE}" \
--header "X-API-KEY: ${FLOWALP_PAY_API_SECRET}"<?php
use FlowAlpPay\FlowAlpPay;
use FlowAlpPay\Models\Request\Paylink;
$client = new FlowAlpPay(
getenv('FLOWALP_PAY_INSTANCE'),
getenv('FLOWALP_PAY_API_SECRET'),
FlowAlpPay::DEFAULT_COMMUNICATION_HANDLER,
'pay.flowalp.com',
'1.16'
);
$paylink = new Paylink();
$paylink->setId(57);
$client->delete($paylink);Response
A successful call returns HTTP 200 with the success envelope confirming the deleted Paylink.
{
"status": "success",
"data": [
{
"id": 57
}
]
}Deletion is permanent: the link stops working immediately and cannot be restored.
Errors
| HTTP status | Meaning | Recommended action |
|---|---|---|
| 404 | No Paylink with this ID exists on your instance. | Check the Paylink ID and the instance parameter. |
Error responses use the envelope {"status": "error", "message": "..."} — see Errors and Rate limits.
Related: Create a Paylink, Retrieve and list Paylinks and the product guide Pay links and QR codes.