Anchor | ||||
---|---|---|---|---|
|
Create token
POST /pay/v1/pay/tokentokens
Attributes
api_keystring
256 alpha numeric, obtained through the Blink platform.
secret_key string
256 alpha numeric, obtained through the Blink platform.
payment_api_statusboolean (optional)
To enable payment API , value should be set to true
. This field is optional. If not passed, default value is true
.
true
false
send_blink_receiptboolean (optional)
To enable Blink receipt feature after any transaction , value should be set to true
. This field is optional. If not passed, default value is false
.
true
false
address_postcode_requiredboolean (optional)
To fetch address and postcode details of any user for any transaction , value should be set to true
. This field is optional. If not passed, default value is false
.
true
false
enable_moto_paymentsboolean (optional)
To enable MOTO payment feature for any transaction , value should be set to true
. This field is optional. If not passed, default value is false
.
true
false
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/pay/v1/pay/tokentokens HTTP/1.1 Content-Type: application/json { "api_key": "49f98f211008be298aaa244...", "secret_key": "44b51da04a1ff0caa73afd..." , "payment_api_status": true, "send_blink_receipt": true, "address_postcode_required": true, "enable_moto_payments": true } |
Response
Code Block |
---|
HTTP/1.1 201 Created Content-Type: application/json { "access_token": "eyJ0eXAiOiJKV1QiLCJhbG...", "expired_on": "2023-01-01T12:00:00Z", "payment_types": [ "credit-card", "open-banking", "direct-debit" ], "currencycurrencies": ["GBP"], "sendpayment_blinkapi_receiptstatus": "Yes" } |
POST /v1/pay/token/refresh
Attributes
access_tokenstring256 Alpha numeric, obtained through the create token request.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/v1/pay/token/refresh Content-Type: application/json {true, "access_token": "eyJ0eXAiOiJKV1QiLCJhbG..." } |
Response
Code Block |
---|
{ "access_token": "IjoiMTNkYjI0NGI1MWRh...", send_blink_receipt": true, "expiredaddress_postcode_onrequired": "2023-01-01T12:00:00Z"true, "currency": "GBP", "send_blink_receiptenable_moto_payments": "Yes"true } |