Skip to main content
PUT
/
merchant-accounts
/
{merchant_account_id}
C#
using Gr4vy;
using Gr4vy.Models.Components;

var sdk = new Gr4vySDK(
    id: "example",
    server: SDKConfig.Server.Sandbox,
    bearerAuthSource: Auth.WithToken(privateKey),
    merchantAccountId: "default"
);

var res = await sdk.MerchantAccounts.UpdateAsync(
    merchantAccountId: "merchant-12345",
    merchantAccountUpdate: new MerchantAccountUpdate() {
        AccountUpdaterEnabled = true,
        AsyncNetworkTokensEnabled = true,
    }
);

// handle response
{
  "type": "merchant-account",
  "id": "merchant-12345",
  "display_name": "John Doe",
  "loon_client_key": "client-key-1234",
  "loon_secret_key": "key-12345",
  "loon_accepted_schemes": [
    "visa"
  ],
  "account_updater_request_encryption_key": "key-1234",
  "account_updater_request_encryption_key_id": "key-id-1234",
  "account_updater_response_decryption_key": "key-1234",
  "account_updater_response_decryption_key_id": "key-id-1234",
  "account_updater_enabled": true,
  "over_capture_amount": 1299,
  "over_capture_percentage": 25,
  "visa_network_tokens_requestor_id": "id-12345",
  "visa_network_tokens_app_id": "id-12345",
  "amex_network_tokens_requestor_id": "id-12345",
  "amex_network_tokens_app_id": "id-12345",
  "mastercard_network_tokens_requestor_id": "id-12345",
  "mastercard_network_tokens_app_id": "id-12345",
  "async_network_tokens_enabled": true,
  "created_at": "2013-07-16T19:23:00.000+00:00",
  "updated_at": "2013-07-16T19:23:00.000+00:00"
}
This endpoint requires the merchant-accounts.write scope.

Authorizations

Authorization
string
header
required

Path Parameters

merchant_account_id
string
required
Examples:

Body

application/json
account_updater_enabled
boolean
default:false
Examples:
account_updater_request_encryption_key
string | null
Examples:
account_updater_request_encryption_key_id
string | null
Examples:
account_updater_response_decryption_key
string | null
Examples:
account_updater_response_decryption_key_id
string | null
Examples:
over_capture_amount
integer | null
Required range: 0 <= x <= 99999999
Examples:
over_capture_percentage
integer | null
Required range: 0 <= x <= 99999999
Examples:
loon_client_key
string | null
Examples:
loon_secret_key
string | null
Examples:
loon_accepted_schemes
enum<string>[] | null
Examples:
visa_network_tokens_requestor_id
string | null
Maximum length: 300
Examples:
visa_network_tokens_app_id
string | null
Maximum length: 300
Examples:
amex_network_tokens_requestor_id
string | null
Maximum length: 300
Examples:
amex_network_tokens_app_id
string | null
Maximum length: 300
Examples:
mastercard_network_tokens_requestor_id
string | null
Maximum length: 300
Examples:
mastercard_network_tokens_app_id
string | null
Maximum length: 300
Examples:
async_network_tokens_enabled
boolean
default:false
Examples:
display_name
string | null
Required string length: 1 - 255
Examples:

Response

id
string
required
Required string length: 1 - 50
Examples:
display_name
string
required
Required string length: 1 - 255
Examples:
account_updater_enabled
boolean
required
Examples:
created_at
string<date-time>
required
Examples:
updated_at
string<date-time>
required
Examples:
type
string
default:merchant-account
Allowed value: "merchant-account"
Examples:
loon_client_key
string | null
Examples:
loon_secret_key
string | null
Examples:
loon_accepted_schemes
enum<string>[] | null
Examples:
account_updater_request_encryption_key
string | null
Examples:
account_updater_request_encryption_key_id
string | null
Examples:
account_updater_response_decryption_key
string | null
Examples:
account_updater_response_decryption_key_id
string | null
Examples:
over_capture_amount
integer | null
Examples:
over_capture_percentage
integer | null
Examples:
visa_network_tokens_requestor_id
string | null
Examples:
visa_network_tokens_app_id
string | null
Examples:
amex_network_tokens_requestor_id
string | null
Examples:
amex_network_tokens_app_id
string | null
Examples:
mastercard_network_tokens_requestor_id
string | null
Examples:
mastercard_network_tokens_app_id
string | null
Examples:
async_network_tokens_enabled
boolean
default:false
Examples: