Skip to main content

Update Payment Link

Update restrictions
  • Only a payment link with the Status active or viewed can be updated.
  • Only the description and expirationDate fields can be updated.

Creation of a payment link is achieved by sending a HTTP PATCH request to these URLs. The access_token will be the one received in the Authentication Response.

HTTP Headers

HTTP Header
Field NameStateData TypeDescription
Content-TypeMandatoryStringapplication/json
AuthorizationMandatoryStringBearer access_token

URL Parameters

HTTP Header
Field NameStateData TypeDescription
idMandatoryStringThe Payment Link ID from a previous response.
Create Payment Link request
Field NameStateData TypeDescription
descriptionOptionalStringA description of what the customer is paying for. Useful to provide reassurance and consumer confidence as well as aid reconciliation and success rates.
expirationDateMandatoryStringThe expiration date of the payment Link.

ISO 8601 format e.g. 2021-11-30T16:00:00Z

If the request is successful, you will receive a 200 OK response code, and the following response fields.

Field nameTypeDescription
idStringPayment link ID, the unique reference for this payment link assigned by the DNA Platform.
amountFloatThe amount of the payment, as a decmal.
currencyStringCurrency e.g. GBP.
invoiceIdStringThe InvoiceId supplied in the Request, if applicable.
terminalIdStringThe terminal ID supplied in the request.
customerNameStringThe Customer name.
descriptionStringThe description as supplied in the request.
createdDateStringThe date that the Payment Link was created.
expirationDateStringThe date that the Payment Link will expire.
viewedDateStringThe date that the Payment Link was viewed. Null if not applicable.
attemptedDateStringThe date that the Payment Link was attempted. Null if not applicable.
paidDateStringThe date that the Payment Link was viewed. Null if not applicable.
cancelledDateStringThe date that the Payment Link was viewed. Null if not applicable.
statusStringPayment link status. See Statuses for more details.
urlStringFull payment link URL

Example Request and Response


{
"description": "For cappuccino",
"expirationDate": "2020-11-13T17:20:50.493Z"
}