PUT
/
merchant-accounts
/
{merchant_account_id}
curl --request PUT \
  --url https://api.{gr4vy_id}.gr4vy.app/merchant-accounts/{merchant_account_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "display_name": "Plantly UK",
  "outbound_webhook_url": "https://www.example.com/webhook",
  "outbound_webhook_username": "gr4vy",
  "outbound_webhook_password": "super-secret-password",
  "visa_network_tokens_requestor_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "visa_network_tokens_app_id": "ca12b3d0-4e23-41a9-906f-e5cbb8e6a731"
}'
{
  "type": "merchant-account",
  "id": "plantly-uk",
  "display_name": "Plantly UK",
  "outbound_webhook_url": "https://www.example.com/webhook",
  "outbound_webhook_username": "gr4vy",
  "outbound_webhook_password": "********",
  "visa_network_tokens_requestor_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "visa_network_tokens_app_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "amex_network_tokens_requestor_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "amex_network_tokens_app_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "mastercard_network_tokens_requestor_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "mastercard_network_tokens_app_id": "e50fa0da-903d-4d54-aacc-4cac57d48df2",
  "loon_client_key": "7DD771287D0024BA418F8F7ECC7DF1CD",
  "loon_secret_key": "********",
  "loon_accepted_schemes": [
    "mastercard",
    "visa"
  ],
  "account_updater_enabled": true,
  "account_updater_request_encryption_key": "example-encryption-key",
  "account_updater_request_encryption_key_id": "example-encryption-key-id",
  "account_updater_response_decryption_key": "example-decryption-key",
  "account_updater_response_decryption_key_id": "example-decryption-key-id",
  "created_at": "2022-02-01T14:20:00.000+00:00",
  "updated_at": "2022-02-01T14:20:00.000+00:00",
  "over_capture_amount": 1000,
  "over_capture_percentage": 20
}

This endpoint requires the merchant-accounts.write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

merchant_account_id
string
required

The unique ID for a merchant account.

Example:

"plantly-uk"

Body

application/json

A request to update a merchant account.

Response

200
application/json
Returns the updated merchant account.

The response is of type object.