Skip to main content
Version: 2019-05-29 (Current)

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.
Example:"https://example.com/webhooks/omise"
`chain_enabled`BOOLEAN(optional)
Whether account chaining (marketplace features) is enabled.
Example:false
Default:false
`chain_return_uri`STRING(optional)
Default return URI for marketplace transactions after customer authorization.
Example:"https://marketplace.example.com/return"
`zero_interest_installments`BOOLEAN(optional)
Whether merchant absorbs installment interest costs (0% installments for customers).
Example:false
Default:false
Additional - 1 fieldAdditional Parameters

Responsesโ€‹

200

Successful update

Returns the updated account object with all configuration details.

Updated account object contains:
  • id - Account identifier
  • webhook_uri - Updated webhook URL
  • chain_enabled - Updated marketplace enabled status
  • chain_return_uri - Updated marketplace return URI
  • zero_interest_installments - Updated installment setting
  • metadata_export_keys - Updated metadata export configuration
  • All other account fields (email, country, currency, etc.)

400

Bad request

Request 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

Unauthorized

Authentication 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 https://api.omise.co/account \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "webhook_uri=https://example.com/webhooks/omise"

Try it outโ€‹

Recommended - 4 fields
Additional - 1 fields