Sandbox
The sandbox is a separate AKIN Travel environment for building and testing your integration. It runs the same code and the same database schema as production. After each production release, the sandbox gets that release too. Its data is synthetic and resets each night. No real member, booking, email or property system is touched. What is fake, what resets and what limits apply: Test mode.
Endpoint
| URL | |
|---|---|
| Sandbox GraphQL endpoint | https://sandbox.akintravel.com/graphql |
| Health check | https://sandbox.akintravel.com/health |
| Production (for comparison) | https://api.akintravel.com/graphql |
The API needs no extra login. Send your sandbox key in the x-partner-api-key header, the same as in production.
Moving from
staging-api.akintravel.com. The sandbox was served fromhttps://staging-api.akintravel.com/graphqlbefore. That host is an alias of the sandbox until the cutoff date your AKIN Travel contact gives you. After that date it stops. Change your configuration tohttps://sandbox.akintravel.com/graphqlnow. The next SDK release (@akin-travel/sdk-coreand@akin-travel/partner-sdk) defaults thestagingenvironment to the sandbox URL. An earlier version still points at the alias, so setapiUrlto the sandbox URL until you upgrade.
Get a sandbox key
The sandbox accepts sandbox keys only. A sandbox key starts with pk_test_ (publishable) or sk_test_ (secret).
- Sign in to the AKIN Travel dashboard for the sandbox. Your AKIN Travel contact gives you access.
- Go to Developers → API keys and select Create key.
- Set Environment to Sandbox. Select the scopes you need. Save.
- Copy the key. The dashboard shows it once only.
Then send it to the sandbox endpoint:
curl https://sandbox.akintravel.com/graphql \
-H 'content-type: application/json' \
-H 'x-partner-api-key: pk_test_…' \
-d '{"query":"{ __typename }"}'Keys are environment-scoped. A sandbox key works only on the sandbox. A
pk_live_*/sk_live_*key works only on production. A sandbox key sent to production, or any other key sent to the sandbox, gets HTTP403with the stablecodeSANDBOX_KEY_ENVIRONMENT_MISMATCH. When the API knows where your key belongs, the body’scorrectEndpointnames that URL. Branch oncode, never on theerrormessage.{ "error": "Sandbox API keys are valid only against the AKIN SDK sandbox, never against this endpoint.", "code": "SANDBOX_KEY_ENVIRONMENT_MISMATCH", "keyEnvironment": "sandbox", "deployment": "non-sandbox", "correctEndpoint": "https://sandbox.akintravel.com/graphql" }
On React, select the SDK’s staging environment, which carries the sandbox sign-in settings, and set apiUrl to the sandbox URL during the move (above):
import { resolveConfig } from '@akin-travel/partner-sdk';
const config = resolveConfig({
partnerId: 'your-partner-id',
apiKey: 'pk_test_…',
environment: 'staging',
apiUrl: 'https://sandbox.akintravel.com/graphql',
});Fixture ids you can hard-code
The sandbox holds one fixed dataset. Its ids are the same every day, so your test suite can use them directly.
| What | Ids |
|---|---|
| Partners | qa-partner-cloudbeds (a Cloudbeds-connected partner), qa-partner-mews (a Mews-connected partner), demo-partner-solana (“Solana Stays”, a populated demo partner) |
| Properties | qa-prop-cb-lagoon, qa-prop-cb-dunes, qa-prop-cb-hostel (Cloudbeds partner); qa-prop-mews-alpine, qa-prop-mews-quay (Mews partner); demo-prop-lisbon, demo-prop-oaxaca, demo-prop-capetown (Solana Stays) |
| Members | qa-member-kim (Cloudbeds partner, three completed stays and one upcoming), qa-member-ines (Mews partner, five stays) |
| Bookings | every qa-booking-… id, one booking in each status |
Dates in the dataset are relative to the current day, so upcoming stays stay upcoming.
Your own partner’s sandbox data, such as members and test members your AKIN Travel contact seeds for you, comes from your onboarding pack.
Reset your data
You can put your partner’s sandbox data back to the fixtures at any time:
- Dashboard: Developers → API keys → Reset sandbox data. This shows on the sandbox dashboard only.
- API: the
resetSandboxPartnerData(partnerId: ID!)mutation, with a staff session for your partner. It works on the sandbox only, and refuses everywhere else.
A reset deletes the bookings your integration created at your properties, and restores your partner’s fixture members. It never touches another partner’s data. The full dataset, including changes to shared qa-booking-… rows, is restored by the nightly reset (Test mode).
Going live
Change each *_test_* key to the matching *_live_* key, and point at the production endpoint, https://api.akintravel.com/graphql. Ask your AKIN Travel contact to issue the live key.