Anchor | ||||
---|---|---|---|---|
|
Create token
Attributes
api_keystring
256 alpha numeric, obtained through the Blink platform.
secret_key string
256 alpha numeric, obtained through the Blink platform.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/v1/pay/token Content-Type: application/json { "api_key": "************************", "secret_key": "*********************" } |
Response
Code Block |
---|
{ "access_token": "******************", "expired_on": "2023-0201-27T1101T12:5200:37Z00Z", "payment_types": [ "credit-card", "open-banking", ], "currency": "GBP", "send_blink_receipt": "No" } |
Anchor | ||||
---|---|---|---|---|
|
Refresh token
Attributes
access_tokenstring
256 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 { "access_token": "<access_token>" } |
Response
Code Block |
---|
{ "access_token": "******************", "expired_on": "2023-0201-27T1101T12:5200:37Z00Z", "payment_types": [ "credit-card", "open-banking", ], "currency": "GBP", "send_blink_receipt": "NoYes" } |