{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/wallets/visa/apikeys","auth":"optional","examples":{"codes":[]},"method":"post","results":{"codes":[{"language":"text","code":""}]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Create/Retrieve Visa Checkout API Keys","type":"endpoint","slug":"create-visa-checkout-api-key","excerpt":"","body":"##Definition\n**Payment API:** https<span>://sandbox.bluesnap.com/services/2/wallets/visa/apikeys</span>\n\n<hr>\n\n##Documentation\nThe Create Visa Checkout API Keys request enables you to obtain the API key and encryption key you will need in order to support the Visa Checkout payment type. For more information, see [Implementing Visa Checkout](/docs/visa-checkout#section-implementing-visa-checkout).\n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Retrieve Visa Checkout API Keys\",\n  \"body\": \"The first time you send this request, a unique Visa Checkout API Key and encryption key will be created for your account. If you send this request again later, the existing two keys will be retrieved and sent in the response.\"\n}\n[/block]\n###Request Content\nSend the POST request to the web service URL.There is no content in the request. \n\n###Response Details\nThe Visa Checkout API key and encryption key will both be returned in the body of the response. [See below](https://developers.bluesnap.com/v8976-Tools/docs/create-visa-checkout-api-key#section-response-examples) for an example.\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/wallets/visa/apikeys \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Create Visa Checkout API Keys Request: Payment API\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"apiKeys\\\": [\\n        {\\n            \\\"key\\\": \\\"XOT8J51R9AQQ9N1EVVBN21mD1tP9Rgz3b9AGREbrBxjl94LHM\\\",\\n            \\\"keyUsage\\\": \\\"INBOUND_AUTHENTICATION\\\"\\n        },\\n        {\\n            \\\"key\\\": \\\"LQK23JXFCDPJLVMDSD6413sWoeY-D4O0q-qzZ7RH8PtDBDyzY\\\",\\n            \\\"keyUsage\\\": \\\"ENCRYPTION\\\"\\n        }\\n    ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Create Visa Checkout API Keys Response\"\n    }\n  ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","updates":[],"order":2,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"6197defc41c8040154bcba8b","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Wallets","slug":"wallets","order":18,"from_sync":false,"reference":true,"_id":"6197defc41c8040154bcba66","version":"6197defc41c8040154bcbaea","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-05-17T12:18:27.941Z","__v":0},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"version":"8976-Tools","version_clean":"8976.0.0-Tools","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["6197defc41c8040154bcba61","6197defc41c8040154bcba62","6197defc41c8040154bcba63","6197defc41c8040154bcba64","6197defc41c8040154bcba65","6197defc41c8040154bcba66","6197defc41c8040154bcba67","6197defc41c8040154bcba68","6197defc41c8040154bcba69","6197defc41c8040154bcba6a","6197defc41c8040154bcba6b","6197defc41c8040154bcba6c","5b34c737e0dca2000311de6a","60957f4cce403c0045a031ef","6197defc41c8040154bcba6d","6197defc41c8040154bcba6e","6197defc41c8040154bcba6f","6197defc41c8040154bcba70","6197defc41c8040154bcba71","6197defc41c8040154bcba72"],"_id":"6197defc41c8040154bcbaea","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"60957f4cce403c0045a03255","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z"},"createdAt":"2016-08-15T14:19:19.098Z","githubsync":"","__v":0}

postCreate/Retrieve Visa Checkout API Keys


Definition

{{ api_url }}{{ page_api_url }}

Documentation

Definition

Payment API: https://sandbox.bluesnap.com/services/2/wallets/visa/apikeys


Documentation

The Create Visa Checkout API Keys request enables you to obtain the API key and encryption key you will need in order to support the Visa Checkout payment type. For more information, see Implementing Visa Checkout.

Retrieve Visa Checkout API Keys

The first time you send this request, a unique Visa Checkout API Key and encryption key will be created for your account. If you send this request again later, the existing two keys will be retrieved and sent in the response.

Request Content

Send the POST request to the web service URL.There is no content in the request.

Response Details

The Visa Checkout API key and encryption key will both be returned in the body of the response. See below for an example.

Examples

Request Examples

curl -v -X POST https://sandbox.bluesnap.com/services/2/wallets/visa/apikeys \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

{
    "apiKeys": [
        {
            "key": "XOT8J51R9AQQ9N1EVVBN21mD1tP9Rgz3b9AGREbrBxjl94LHM",
            "keyUsage": "INBOUND_AUTHENTICATION"
        },
        {
            "key": "LQK23JXFCDPJLVMDSD6413sWoeY-D4O0q-qzZ7RH8PtDBDyzY",
            "keyUsage": "ENCRYPTION"
        }
    ]
}

User Information

Try It Out


post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}