API Credentials

Generates API credentials for a merchant after they are approved to process transactions.

Endpoint

https://platform.bluesnap.com/services/2/merchants/api-credentials

Request Content

Parameter

Required

Description

approvalTesting

No

When set to true, sends the request in Test Mode.
By default, set to false.

merchantId

Yes

Unique identifier that BlueSnap assigned to the merchant. Included in the MERCHANT_PARTNER_ONBOARDED webhook that is sent after you submit the merchant application.

username

No

Username for the merchant account. When omitted, BlueSnap generates a username and sends it in the response.

password

No

Password for the merchant account. When omitted, BlueSnap generates a password and sends it in the response.

Limits:

  • Minimum 8 characters
  • Maximum 64 characters

dataProtectionKey

No

Data Protection Key for the merchant account. When omitted, BlueSnap generates a data protection key and sends it in the response.

The Data Protection Key is required to perform certain functions.

Examples

Requests

curl -v -X POST https://platform.bluesnap.com/services/2/merchants/api-credentials \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "merchantId":857345
}
curl -v -X POST https://platform.bluesnap.com/services/2/merchants/api-credentials \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "merchantId":857345,
  "username":"MerchantUsername",
  "password":"kjhdA@3aA",
  "dataProtectionKey": "Kru5Y50p"
}
curl -v -X POST https://platform.bluesnap.com/services/2/merchants/api-credentials \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "approvalTesting": true,
  "merchantId": 857345,
  "username": "MerchantUsername",
  "password": "kjhdA@3aA",
  "dataProtectionKey": "Kru5Y50p"
}

Responses

{
    "merchantId": 857345,
    "username": "MerchantUsername",
    "password": "kjhdA@3aA",
    "dataProtectionKey": "Kru5Y50p"
}