Anchor | ||||
---|---|---|---|---|
|
Create token
POST /v1/pay/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 HTTP/1.1
Content-Type: application/json
{
"api_key": "49f98f211008be298aaa244...",
"secret_key": "44b51da04a1ff0caa73afd..."
} |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbG...",
"expired_on": "2023-01-01T12:00:00Z",
"payment_types": ["credit-card", "open-banking", "direct-debit"],
"currency": "GBP",
"send_blink_receipt": "Yes"
} |
Anchor | ||||
---|---|---|---|---|
|
Refresh token
POST /v1/pay/token/refresh
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 HTTP/1.1
Content-Type: application/json
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbG..."
} |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "IjoiMTNkYjI0NGI1MWRh...",
"expired_on": "2023-01-01T12:00:00Z",
"currency": "GBP",
"send_blink_receipt": "Yes"
} |