/meCheck your key
Checks that your key works and tells you which key and mode you are using. Call it first when you set up.
curl "https://api.hollywayglobal.com/api/v1/business/me" \
-H "Authorization: Bearer $HOLLYWAY_API_KEY" \
-H "Hollyway-Registration-Number: $HOLLYWAY_REGISTRATION_NUMBER"{
"data": {
"account_email": "you@yourbusiness.com",
"api_version": "1",
"key_name": "Checkout server",
"mode": "test"
}
}Errors
401The key is missing, wrong or revoked, the registration number does not match, or the account is no longer a verified business. These are deliberately not told apart.
{"detail":"A valid API key and business registration number are required."}401The Hollyway-Registration-Number header was not sent. Every call needs it together with the key.
{"detail":"Send your business registration number in the Hollyway-Registration-Number header on every call."}429More than 120 requests in a minute with this key (wait for the Retry-After seconds), or ten wrong registration numbers in ten minutes, which pauses the key for ten minutes.
{"detail":"Rate limit is 120 requests a minute per key."}500Something failed on our side. Retry with the same Idempotency-Key. If it keeps happening, tell us the time and the path.
{"detail":"Internal Server Error"}Good to know
modeis test or live. A test key never touches real money or real escrows.
