Skip to content
Docs

Payment links

POST/api/payments/{id}/notify_by/{medium}

Resend a Payment Link

Sends an existing payment link to the customer again, by email or SMS (medium in the path). It goes to the customer email or mobile number saved on the payment link; send customer_email or customer_mobile to use a different one. Use the alternative_* fields to also send a copy to another customer or merchant email or mobile number. A link that has already been paid, has expired or was canceled can't be resent (410).

Server-side request · headers mid + terminal-idTry it in Sandbox

Path parameters

FieldTypeDescription
idRequiredstring

Payment request id

mediumRequiredstring

email or sms

One of emailsms

Request body

FieldTypeDescription
customer_emailOptionalstring

Customer Email Id

e.g. aisha.rahman@example.com
customer_mobileOptionalstring

Customer Mobile Number

e.g. 971501234567
alternative_merchant_emailOptionalstring

Alternative Merchant Email Id

e.g. payments@example.com
alternative_merchant_mobileOptionalstring

Alternative Merchant Mobile Number

e.g. 971561234567
alternative_customer_emailOptionalstring

Alternative Customer Email Id

e.g. aisha.r@example.com
alternative_customer_mobileOptionalstring

Alternative Customer Mobile Number

e.g. 971551234567

Headers

FieldTypeDescription
midRequiredstring

Your MID, starts with ul-mid.

e.g. ul-mid-696f12de-46d0-48c4-a7c8-bb*********5
terminal-idRequiredstring

Your terminal id, starts with ul-tid.

e.g. ul-tid-6208df4ad7329e*********e

Responses

StatusDescription
200 OKSuccess
400 Bad requestBad Request
401 UnauthorizedUnauthorized
404 Not foundNot Found
410 GoneGone

Response fields 200

FieldTypeDescription
messageOptionalstring

email has been sent

e.g. email has been sent
shortUrlOptionalstring

Payment Request link

e.g. https://api.geturbanledger.com/api/merchant/payment-link/631725c9a5bcfd0d3*******
POSThttps://sandbox.geturbanledger.com/api/payments/ID/notify_by/email
curl -X POST "https://sandbox.geturbanledger.com/api/payments/ID/notify_by/email" \
  -H "Content-Type: application/json" \
  -H "mid: sb-ul-mid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  -H "terminal-id: ul-tid-xxxxxxxxxxxxxxxxxxxxxxxx" \
  -d '{
  "customer_email": "aisha.rahman@example.com",
  "customer_mobile": "971501234567",
  "alternative_merchant_email": "payments@example.com",
  "alternative_merchant_mobile": "971561234567",
  "alternative_customer_email": "aisha.r@example.com",
  "alternative_customer_mobile": "971551234567"
}'
Response
200 OK · Success
{
  "message": "email has been sent",
  "shortUrl": "https://api.geturbanledger.com/api/merchant/payment-link/631725c9a5bcfd0d3*******"
}
Talk to ustalk-to-us