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

Update API Version

Updates the default API version for the account. The API version determines response formats and available features. Use the List API Versions endpoint to discover available versions before updating.

Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`api_version`STRING(required)
The API version to set as the default for the account. Must be a valid version returned by the List API Versions endpoint.
Example:"2019-05-29"

Responsesโ€‹

200

Successful update

Returns the updated account object with the new API version setting.

Updated account object contains:
  • id - Account identifier
  • api_version - Updated default API version
  • email - Account email address
  • country - Two-letter ISO 3166 country code
  • currency - Three-letter ISO 4217 currency code
  • All other account fields (webhook_uri, supported_currencies, etc.)

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid API version specified
  • Missing api_version parameter
  • API version format is incorrect

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

404

Not found

The specified API version does not exist.

Common causes:
  • API version string is not a valid version
  • Typo in the version identifier
  • Version has been deprecated and is no longer available

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/account/api_version \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "api_version=2019-05-29"

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 1 fields
โ–ผ
Your IP: ...Loading...