Account
The Account resource provides information about the authenticated merchant's API configuration.
Use these endpoints to check your current pinned API version and upgrade to a newer version when ready. Version upgrades are one-way — always test with the EPD-Version header before committing.
GET
/account Retrieve account
Returns account-level information including the currently pinned API version.
Header parameters
NameTypeDescription
EPD-Version
stringAPI version override (format `YYYY-MM-DD`). If omitted, your account's pinned version or the latest version is used.
e.g.
"2026-02-11"Responses
200 Account information.
FieldTypeDescription
api_versionrequired
stringMerchant's pinned API version. `null` means using the latest.
e.g.
"2026-02-11"latest_api_versionrequired
stringThe most recent available API version.
e.g.
"2026-02-11" 401 Unauthorized — Authentication failed.
FieldTypeDescription
errorrequired
objecttyperequired
enumThe type of error.
invalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorcoderequired
stringA short string identifying the specific error.
e.g.
"validation_error"messagerequired
stringA human-readable message providing details about the error.
e.g.
"Request validation failed"paramnullable
stringThe parameter that caused the error, if applicable.
e.g.
"email"request_id
stringUnique request identifier for debugging.
e.g.
"req_a1b2c3d4e5f67890abcdef0123456789"field_errors
array[object]Detailed field-level errors for validation failures.
POST
/account/api_version Upgrade API version
Upgrades the account's pinned API version. This is a one-way operation — you cannot downgrade once upgraded.
Use the EPD-Version header to test a newer version per-request before committing.
Header parameters
NameTypeDescription
EPD-Version
stringAPI version override (format `YYYY-MM-DD`). If omitted, your account's pinned version or the latest version is used.
e.g.
"2026-02-11"X-EPD-Idempotency-Key
string (uuid)Optional UUID v4 idempotency key for retry safety.
e.g.
"550e8400-e29b-41d4-a716-446655440000"Request body required
FieldTypeDescription
versionrequired
stringThe API version to upgrade to (format: `YYYY-MM-DD`).
e.g.
"2026-06-15"Responses
200 Version upgraded successfully.
FieldTypeDescription
api_versionrequired
stringe.g.
"2026-06-15"previous_versionrequired
stringe.g.
"2026-02-11"latest_api_versionrequired
stringe.g.
"2026-06-15" 400 Bad Request — The request was invalid or cannot be served.
FieldTypeDescription
errorrequired
objecttyperequired
enumThe type of error.
invalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorcoderequired
stringA short string identifying the specific error.
e.g.
"validation_error"messagerequired
stringA human-readable message providing details about the error.
e.g.
"Request validation failed"paramnullable
stringThe parameter that caused the error, if applicable.
e.g.
"email"request_id
stringUnique request identifier for debugging.
e.g.
"req_a1b2c3d4e5f67890abcdef0123456789"field_errors
array[object]Detailed field-level errors for validation failures.
401 Unauthorized — Authentication failed.
FieldTypeDescription
errorrequired
objecttyperequired
enumThe type of error.
invalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorcoderequired
stringA short string identifying the specific error.
e.g.
"validation_error"messagerequired
stringA human-readable message providing details about the error.
e.g.
"Request validation failed"paramnullable
stringThe parameter that caused the error, if applicable.
e.g.
"email"request_id
stringUnique request identifier for debugging.
e.g.
"req_a1b2c3d4e5f67890abcdef0123456789"field_errors
array[object]Detailed field-level errors for validation failures.