The Control Center API reads and changes sales, transactions, and websites for a merchant account. The product page is the source for paths and fields. If this skill and the product page disagree, follow the product page.
Read first
- Control Center API for the calls, fields, and errors
- Control Center OpenAPI for the same calls as a specification
Implement in this order
- Create API credentials on the Control Center "Setup Control Center API" page. Keep the username and password on the server.
- Send
Authorization: Basicwith those credentials, andAccept: application/json; version=2.0.0, on every request. - Use the host
https://controlcenter.verotel.com/api. - Read a sale or transaction before you cancel, downgrade, extend, terminate, or refund it.
- Honor
429andRetry-After. The limit is 500 requests per hour, shared by every API user on the account.
Credentials
- Control Center API username and password from the setup page.
- The documented
Authorizationexample is not a credential. Use the merchant's own username and password.
Traps
- A missing or wrong
version=2.0.0onAcceptreturns 406. The version is all three numbers. - Unknown objects return 404. A sale that is already cancelled, and other application errors, return 412.
X-RateLimit-Remainingis the requests left in the current hour. A429means stop untilRetry-After.- Paths and fields change with the reference. Read the operation before writing the client.
Done when
A basic-auth request with Accept: application/json; version=2.0.0 returns the sale or transaction you asked for, and a 401, 406, 412, or 429 is handled without retrying a permanent error.