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
| Field | Type | Description |
|---|---|---|
idRequired | string | Payment request id |
mediumRequired | string | email or sms |
Request body
| Field | Type | Description |
|---|---|---|
customer_Optional | string | Customer Email Id |
customer_Optional | string | Customer Mobile Number |
alternative_Optional | string | Alternative Merchant Email Id |
alternative_Optional | string | Alternative Merchant Mobile Number |
alternative_Optional | string | Alternative Customer Email Id |
alternative_Optional | string | Alternative Customer Mobile Number |
Headers
| Field | Type | Description |
|---|---|---|
midRequired | string | Your MID, starts with ul-mid. |
terminal-idRequired | string | Your terminal id, starts with ul-tid. |
Responses
| Status | Description |
|---|---|
| 200 OK | Success |
| 400 Bad request | Bad Request |
| 401 Unauthorized | Unauthorized |
| 404 Not found | Not Found |
| 410 Gone | Gone |
Response fields 200
| Field | Type | Description |
|---|---|---|
messageOptional | string | email has been sent |
shortUrlOptional | string | Payment Request link |
POST
https://sandbox.geturbanledger.com/api/payments/ID/notify_by/emailcurl -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*******"
}