Update account
Updates and returns account information. Use this endpoint to configure webhook endpoints, metadata export settings, and marketplace parameters.
API Credentials
Request Parametersโ
Recommended - 4 fieldsRecommended Parameters
`webhook_uri`STRING(optional)
Primary webhook endpoint URL for receiving event notifications. Must be HTTPS in live mode.
`chain_enabled`BOOLEAN(optional)
Whether account chaining (marketplace features) is enabled.
`chain_return_uri`STRING(optional)
Default return URI for marketplace transactions after customer authorization.
`zero_interest_installments`BOOLEAN(optional)
Whether merchant absorbs installment interest costs (0% installments for customers).
Additional - 1 fieldAdditional Parameters
Responsesโ
200
Successful updateReturns the updated account object with all configuration details.
Updated account object contains:
id- Account identifierwebhook_uri- Updated webhook URLchain_enabled- Updated marketplace enabled statuschain_return_uri- Updated marketplace return URIzero_interest_installments- Updated installment settingmetadata_export_keys- Updated metadata export configuration- All other account fields (email, country, currency, etc.)
400
Bad requestRequest validation failed. Check the error message for details.
Common causes:
- Invalid webhook URL format
- HTTP webhook URL in live mode (must be HTTPS)
- Invalid metadata_export_keys structure
- Invalid parameter types
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
- Incorrect HTTP Basic Auth format
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/account \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "webhook_uri=https://example.com/webhooks/omise"
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
account = Omise::Account.update(
webhook_uri: 'https://example.com/webhooks/omise'
)
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
account = omise.Account.update(
webhook_uri='https://example.com/webhooks/omise'
)
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const account = await omise.account.update({
webhook_uri: 'https://example.com/webhooks/omise'
});
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$account = OmiseAccount::update([
'webhook_uri' => 'https://example.com/webhooks/omise'
]);
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
Account account = client.account().update()
.webhookUri("https://example.com/webhooks/omise")
.send();
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var account = await client.Account.Update(new UpdateAccountRequest
{
WebhookUri = "https://example.com/webhooks/omise"
});
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
account, _ := client.Account().Update(&operations.UpdateAccount{
WebhookURI: "https://example.com/webhooks/omise",
})
Try it outโ
Recommended - 4 fields
Additional - 1 fields