POST /paylink/v1/paylinks
Headers
Content-TypestringContent type.Authorizationstring
Access token generated from create token request.
Attributes
payment_method array
Can be one or more of the following:
credit-card
direct-debit
open-banking
transaction_type string
Can be one of the following:
SALE
PREAUTH
VERIFY CARD
Customer full name.emailstring
Customer email.mobile_numberstring
Customer mobile number.transaction_uniquestring
Unique transaction string.is_decide_amountboolean
If customer will decide amount:
true
false
Transaction amount.reminderboolean optional
If reminder will be sent to customer:
true
false
(default value)
If reminder is true, then need to mention the number of days/weeksreminder_interval_frequencystring optional
If reminder is true, then need to mention the interval frequency. It can be one of the following:
days
week
Add any note to describe the Paylink request to the customer.
notification_url string
POST URL on your domain, where Blink will send status updates when the transaction status is changed e.g. https://mydomain.com/notification
.
Request
Anchor | ||||
---|---|---|---|---|
|
Create paylink
POST /paylink/v1/paylinks
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
payment_method array
Can be one or more of the following:
credit-card
direct-debit
open-banking
transaction_type string
Can be one of the following:
SALE
PREAUTH
VERIFY CARD
currency string
Three letter currency code (ISO 4217) e.g USD, GBP.
full_namestring
Customer full name.
emailstring
Customer email.
mobile_numberstring
Customer mobile number.
transaction_uniquestring
Unique transaction string.
is_decide_amountboolean
If customer will decide amount:
true
false
amountfloat
Transaction amount.
reminderboolean optional
If reminder will be sent to customer:
true
false
(default value)
reminder_interval_countinteger optional
If reminder is true, then need to mention the number of days/weeks
reminder_interval_frequencystring optional
If reminder is true, then need to mention the interval frequency. It can be one of the following:
days
week
notesstring optional
Add any note to describe the Paylink request to the customer.
notification_url string
POST URL on your domain, where Blink will send status updates when the transaction status is changed e.g. https://mydomain.com/notification
.
redirect_url string (optional)
GET URL on your domain, where Blink will send transaction details when the transaction is done e.g. https://mydomain.com/return
.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...
{
"payment_method": ["credit-card","open-banking"],
"transaction_type": "SALE",
"full_name": "Test Developer",
"email": "testdeveloper@gmail.com",
"mobile_number": "9123908567",
"transaction_unique": "fyr7894",
"is_decide_amount": true,
"currency": "GBP",
"amount": 1.00,
"reminder": true,
"reminder_interval_count": 2,
"reminder_interval_frequency": "days",
"notes": "test note",
"notification_url": "https://mydomain.com/notification",
"redirect_url": "https://mydomain.com/notification"
} |
Response
Code Block |
---|
HTTP/1.1 201 Created
Content-Type: application/json
{
"id": 123,
"paylink_url": "https://secure.blinkpayment.co.uk/secondstore/l/5jkigj",
"transaction_unique": "fyr7894"
} |
Anchor | ||||
---|---|---|---|---|
|
Get paylink
Get details of a specific paylink using id.
GET /paylink/v1/paylinks/{id}
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Request
Code Block |
---|
GET https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks/123 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 123,
"paylink_url": "https://dev.blinkpayment.co.uk/codatdev/l/asdhgl8",
"status": "Unpaid",
"created_by": "Test developer",
"amount": 1.00,
"currency": "GBP",
"transaction_type": "SALE",
"customer_name": "Demo Customer",
"customer_email": "demo123@gmail.com",
"phone_number": "2374993932",
"payment_method": ["credt-card","open-banking"],
"is_decide_amount": true,
"notes": "test",
"redirect_url": "https://mydomain.com/notification"
} |
Anchor | ||||
---|---|---|---|---|
|
Get paylinks
Get details of all the paylinks created by the same merchant. Using the below query parameters results can be filtered.
GET /paylink/v1/paylinks
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Query parameters
statusstring
Paylink status
customer_namestring
Customer name.
amountfloat
Amount
amount_gtfloat
Amount should be greater than specified value
amount_ltfloat
Amount should be less than specified value
Request
Code Block |
---|
GET https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks?status=unpaid&customer_name=test_developer HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... |
Response
Code Block |
---|
HTTP/1.1 200 { "payment_method": ["credit-card","open-banking"], "transaction_type": "SALE", "full_name": "Test Developer",OK Content-Type: application/json [ { "emailid": "testdeveloper@gmail.com"123, "mobilepaylink_numberurl": "9123908567https://dev.blinkpayment.co.uk/codatdev/l/asdhgl8", "transaction_uniquestatus": "fyr7894Unpaid", "iscreated_decide_amountby": true"Test developer", "amount": 1.00, "remindercurrency": true, "reminder_interval_count": 2"GBP", "remindertransaction_interval_frequencytype": "daysSALE", "notescustomer_name": "testDemo noteCustomer", "notificationcustomer_urlemail": "https://mydomaindemo123@gmail.com/notification" } |
Response
Code Block |
---|
HTTP/1.1 201 Created Content-Type: application/json { "id": 123,, "phone_number": "2374993932", "payment_method": [ "paylink_url": "https://secure.blinkpayment.co.uk/secondstore/l/5jkigj", "credt-card", "transaction_unique": "fyr7894" } |
GET /paylink/v1/paylinks/{id}
Headers
Content-TypestringContent type.Authorizationstring
Access token generated from create token request.
Attributes
id integer
Paylink id. If id is not present, then it will return all the Paylinks created by that merchant.
Request
Code Block |
---|
GET https://secure.blinkpayment.co.uk/api/paylink/v1/paylink/123 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... |
Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/jsonopen-banking" ], "is_decide_amount": true, "notes": "test", "redirect_url": "https://mydomain.com/notification" }, { "id": 124, ": 123paylink_url": "https://dev.blinkpayment.co.uk/codatdev/l/asdhgl8", "status": "Unpaid", "created_by": "Test developer", "amount": 1.001, "currency": "GBP", "transaction_type": "SALE", "customer_name": "Demo Customer", "customer_email": "demo123@gmail.com", "phone_number": "2374993932", "payment_method": ["credt-card", "open-banking" ], "is_decide_amount": true, "notes": "test" }test2", "redirect_url": "https://mydomain.com/notification" } ] |
Anchor | ||||
---|---|---|---|---|
|
Update paylinks
PATCH /paylink/v1/paylinks/{id}
Update any data some specific data (email, mobile number) associated with the paylink until the link is used. If a paylink is not paid then it’s status can be changed to ‘Cancelled’.
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
notification_url request.
Attributes
emailstring (optional)
Email address
mobile_numberinterger (optional)
Customer mobile number
statusstring (optional)
Notification url.Paylink status
Request
Code Block |
---|
PATCH https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks/{id} HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "notification_urlemail": "https://mydomaintestdemo@yopmail.com/notification" } |
Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/json {: application/json { "id": 123, "status": "Unpaid", "created_by": "Test developer", "amount": 1.00, "idcurrency": 123"GBP", "statustransaction_type": "UnpaidSALE", "createdcustomer_byname": "TestDemo developerCustomer", "amountcustomer_email": 1"demo123@gmail.00com", "currencyphone_number": "GBP2374993932", "transactionpayment_typemethod": "SALE"["credt-card","open-banking"], "customer_nameis_decide_amount": true, "notes": "Demo Customertest", "customerredirect_emailurl": "demo123@gmailhttps://mydomain.com/notification", "phone_number": "2374993932", "payment_method": ["credt-card","open-banking"], "is_decide_amount": true, "notes": "test" } |
DELETE /paylink/v1/paylinks/{id}
Delete a specific paylink using it’s id.
Headers
Content-TypestringContent type.Authorizationstring
Access token generated from create token request.
Request
Code Block |
---|
DELETE https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks/{id} HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... } |
Anchor | ||||
---|---|---|---|---|
|
Delete paylink
DELETE /paylink/v1/paylinks/{id}
Delete a specific paylink using it’s id.
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Request
Code Block |
---|
DELETE https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks/{id} HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... |
Response
Code Block |
---|
HTTP/1.1 204 No Content |
Anchor | ||||
---|---|---|---|---|
|
Notification webhook
POST https://<notification_url>
Headers
Content-Typestring
Content type is JSON.
Attributes
transaction_idstring
Transaction id.
statusstring
The new status of the transaction.
notestring
Notification note.
Request
Code Block |
---|
POST https://my_domain/notification HTTP/1.1
Content-Type: application/json
{
"transaction_id": "BL-****",
"status": "Paid",
"note": "Payment successful"
} |
Response
Code Block |
---|
HTTP/1.1 204200 No ContentOK |
Anchor | ||||
---|---|---|---|---|
|
|
Paylink Notification webhook
POST https:/paylink/v1/<notification_url>paylinks/{paylink_id}/notifications
Headers
Content-Typestring
Content type is JSONtype.
Authorizationstring
Access token generated from create token request.
Attributes
transactionsend_idstring
Transaction id.statusstring
The new status of the transaction.notestring
Notification note.
Request
smsboolean
If send sms is true , it will sent notification through sms.
send_emailboolean
If send email is true , it will sent notification through email.
If both are true, then email and sms will be sent.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/paylink/v1/paylinks/{paylink_id}/notification HTTP/1.1 Content-Type: application/json { "transactionsend_idsms": "BL-****"true, "statussend_email": "Paid", "note": "Payment successful" true } |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json
{
"message": "Notification sent"
} |