Invincible Pay
Payment links

Cancel payment link

Cancel a pending payment link. A payment link the payer has started (awaiting_payment) can still be paid at Interac, so it can't be canceled; nor can one that is over. The payment link is kept, as canceled, and a paymentLinkCanceled webhook is sent. Safe to repeat: canceling a payment link that is already canceled returns it again, without a second webhook.

DELETE
/v1/payment-links/{payment_link_id}

Path Parameters

payment_link_id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.invinciblepay.com/v1/payment-links/string"
{
  "accountId": "string",
  "amount": "string",
  "createdAt": 0,
  "currency": "CAD",
  "customerEmail": "string",
  "customerName": "string",
  "expiresAt": 0,
  "externalId": "string",
  "failureReason": "string",
  "fundingSourceId": "string",
  "id": "string",
  "paymentExpiresAt": 0,
  "paymentUrl": "string",
  "redirectUrlFailure": "string",
  "redirectUrlSuccess": "string",
  "reference": "string",
  "status": "pending",
  "transactionId": "string"
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}