Create intent
POST /pay/v1/intents
Headers
Content-Type string
Content type.
Authorization string
Access token generated from create token request.
Attributes
amount float
Transaction amount.
payment_type string
Can only be one of the following:
credit-card
direct-debit
open-banking
currency string
Three letter currency code (ISO 4217) e.g USD, GBP.
reutrn_url string
URL on your domain, where Blink will redirect after transaction is processed e.g. https://mydomain.com/return
.
notification_url string
URL on your domain, where Blink will send status updates when the transaction status is changed e.g. https://mydomain.com/notification
.
customer_name string (optional)
Customer name.
customer_email string (optional)
Customer email.
customer_address string (optional)
Customer address.
customer_postcode string (optional)
Customer postcode.
Request
POST https://secure.blinkpayment.co.uk/api/pay/v1/intents HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "amount": 1.01, "payment_type": "credit-card", "currency": "GBP", "return_url": "https://mydomain.com/return", "notification_url": "https://mydomain.com/notification" }
Response
HTTP/1.1 200 OK Content-Type: application/json { "id": 123, "payment_intent": "pi_Swhc84aSLtUGppvPARX...", "amount": 1.01, "currency": "GBP", "payment_type": "credit-card", "return_url": "https://mydomain.com/return", "notification_url": "https://mydomain.com/notification" }
Get intents
GET /pay/v1/pay/intents/{id}
Headers
Content-Type string
Content type.
Authorization string
Access token generated from create token request.
Request
GET https://secure.blinkpayment.co.uk/api/pay/v1/intents/123 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...
Response
HTTP/1.1 200 OK Content-Type: application/json { "id": 123, "payment_intent": "pi_Swhc84aSLtUGppvPARX...", "amount": 1.01, "currency": "GBP", "payment_type": "credit-card", "return_url": "https://mydomain.com/return", "notification_url": "https://mydomain.com/notification" }
Update intents
PATCH /pay/v1/intents/{id}
Headers
Content-Type string
Content type.
Authorization string
Access token generated from create token request.
Attributes
return_url string (optional)
Return url.
notification_url string (optional)
Notification url.
Request
PATCH https://secure.blinkpayment.co.uk/api/pay/v1/intents/{id} HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "payment_intent": "pi_Swhc84aSLtUGppvPARX..." }
Response
HTTP/1.1 200 OK Content-Type: application/json { "id": 123, "payment_intent": "pi_Swhc84aSLtUGppvPARX...", "amount": 1.01, "currency": "GBP", "payment_type": "credit-card", "return_url": "https://mydomain.com/return", "notification_url": "https://mydomain.com/notification" }