{"_id":"5ab11994825cbc0077ab97a0","category":{"_id":"5ab11994825cbc0077ab9798","version":"5ab11994825cbc0077ab9792","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-17T12:18:27.941Z","from_sync":false,"order":5,"slug":"wallets","title":"Wallets"},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"_id":"5ab11994825cbc0077ab9792","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2018-03-20T14:24:20.891Z","releaseDate":"2018-03-20T14:24:20.891Z","categories":["5ab11994825cbc0077ab9793","5ab11994825cbc0077ab9794","5ab11994825cbc0077ab9795","5ab11994825cbc0077ab9796","5ab11994825cbc0077ab9797","5ab11994825cbc0077ab9798","5ab11994825cbc0077ab9799","5ab11994825cbc0077ab979a","5ab11994825cbc0077ab979b","5ab11994825cbc0077ab979c","5ab11994825cbc0077ab979d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.25 Release","version_clean":"8976.0.0-Tools","version":"8976-Tools"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-08-15T14:19:19.098Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"post","results":{"codes":[{"language":"text","code":""}]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":22,"body":"##Definition\n**Payment API:** https<span>://sandbox.bluesnap.com/services/2/wallets/visa/apikey</span>\n**Extended Payment API:** https<span>://sandbox.bluesnap.com/services/2/wallets/visa/apikey?storeId={storeId}</span>\n\n<hr>\n\n##Documentation\nThe Create Visa Checkout API Key request enables you to obtain the API key that 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 Key\",\n  \"body\": \"The first time you send this request, a unique Visa Checkout API Key will be created for your account. If you send this request again later, the existing key 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\nIf you are using the Extended Payment API, you must include your store ID in the request URL. You can find your store ID in the BlueSnap Merchant Console, under **Settings > API Settings**.\n\n###Response Details\nIf successful, the response HTTP status code is 201 Created.\nThe Visa Checkout API key will be returned in the Location header of the response. For example:\nLocation: `https://sandbox.bluesnap.com/services/2/wallets/visa/apikey/TestVisaAPIKey`\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/apikey \\\\\\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 Key Request: Payment API\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/wallets/visa/apikey?storeId=123456 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Extended Payment API\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\n\\nLocation: https://sandbox.bluesnap.com/services/2/wallets/visa/apikey/TestVisaAPIKey\",\n      \"language\": \"http\",\n      \"name\": \"Create Wallet Response: 200 OK - MasterPass\"\n    }\n  ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"","slug":"create-visa-checkout-api-key","type":"post","title":"Create/Retrieve Visa Checkout API Key"}

postCreate/Retrieve Visa Checkout API Key


Definition

Payment API: https://sandbox.bluesnap.com/services/2/wallets/visa/apikey
Extended Payment API: https://sandbox.bluesnap.com/services/2/wallets/visa/apikey?storeId={storeId}


Documentation

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

Retrieve Visa Checkout API Key

The first time you send this request, a unique Visa Checkout API Key will be created for your account. If you send this request again later, the existing key 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.

If you are using the Extended Payment API, you must include your store ID in the request URL. You can find your store ID in the BlueSnap Merchant Console, under Settings > API Settings.

Response Details

If successful, the response HTTP status code is 201 Created.
The Visa Checkout API key will be returned in the Location header of the response. For example:
Location: https://sandbox.bluesnap.com/services/2/wallets/visa/apikey/TestVisaAPIKey

Examples

Request Examples

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

Response Examples

HTTP/ 1.1 201 Created

Location: https://sandbox.bluesnap.com/services/2/wallets/visa/apikey/TestVisaAPIKey