Merchant — Other methods
Below are the additional methods in the merchant group. Parameter details are the same as in the API docs.
Delete a Merchant
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.delete({ merchantId: 12345 });
var result = client.merchant.delete(12345);
var result = await client.Merchant.DeleteAsync(12345);
$result = $client->merchant->delete(merchantId: 12345);
| Field | Type | Required | Description |
|---|---|---|---|
merchantId | number | ✓ | ID of the Merchant to delete |
Get the Merchant's bank account configurations
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.getPagingConfig({ skipCount: 0, maxResultCount: 10 });
var result = client.merchant.getPagingConfig(0, 10);
var result = await client.Merchant.GetPagingConfigAsync(skipCount: 0, maxResultCount: 10);
$result = $client->merchant->getPagingConfig(['skipCount' => 0, 'maxResultCount' => 10]);
Create or update the Merchant's bank account configuration
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.createOrUpdateConfig({ merchantId: 12345, /* ... */ });
var result = client.merchant.createOrUpdateConfig(12345, /* ... */);
var result = await client.Merchant.CreateOrUpdateConfigAsync(merchantId: 12345, /* ... */);
$result = $client->merchant->createOrUpdateConfig(['merchantId' => 12345, /* ... */]);
Delete the Merchant's bank account configuration
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.deleteConfig({ merchantId: 12345, configId: 1 });
var result = client.merchant.deleteConfig(12345, 1);
var result = await client.Merchant.DeleteConfigAsync(merchantId: 12345, configId: 1);
$result = $client->merchant->deleteConfig(['merchantId' => 12345, 'configId' => 1]);
Configure the Merchant's business account
Applies to ACB accounts only
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.configAccountBusiness({ merchantId: 12345, /* ... */ });
var result = client.merchant.configAccountBusiness(12345, /* ... */);
var result = await client.Merchant.ConfigAccountBusinessAsync(merchantId: 12345, /* ... */);
$result = $client->merchant->configAccountBusiness(['merchantId' => 12345, /* ... */]);
Delete the Merchant's business account configuration
Applies to ACB accounts only
- Node.js
- Java
- C#
- PHP
const result = await client.merchant.deleteConfigAccountBusiness({ merchantId: 12345, /* ... */ });
var result = client.merchant.deleteConfigAccountBusiness(12345, /* ... */);
var result = await client.Merchant.DeleteConfigAccountBusinessAsync(merchantId: 12345, /* ... */);
$result = $client->merchant->deleteConfigAccountBusiness(['merchantId' => 12345, /* ... */]);