Sandbox and going live
Two instances, two addresses
Section titled “Two instances, two addresses”The sandbox is a complete, separate copy of Localoge: its own server, its own database, its own photo storage. Nothing you do there can reach production, and production never reads from the sandbox.
| Sandbox | Production | |
|---|---|---|
| Website | https://sandbox.localoge.com |
https://localoge.com |
| API | https://sandbox.localoge.com/api/v1/channel |
https://localoge.com/api/v1/channel |
| Accepted keys | lok_test_… only |
lok_live_… only |
| Developer portal | https://sandbox.localoge.com/app/dev |
https://developers.localoge.com/app/dev |
| Emails | None go out: a test inbox you can browse | Sent |
| Payments | None | Real |
A key sent to the wrong instance is rejected, with a message telling you where to go:
{ "success": false, "error": { "code": "UNAUTHORIZED", "message": "Invalid or missing API key: test keys (lok_test_) only work on https://sandbox.localoge.com/api/v1/channel", "request_id": "…" }}GET https://sandbox.localoge.com/instance (no authentication) returns
{ "instance": "sandbox", … }: handy for showing in your UI which instance an account is
connected to.
What you see in the sandbox
Section titled “What you see in the sandbox”Log in at https://sandbox.localoge.com/app/dev. Your account there is created from your
production portal (« Accéder au sandbox » (“Go to the sandbox”) button), with a lok_test_ key
shown only once.
- Your properties are displayed just like on the live site: listing page, photos, calendar, prices. Whatever you push, you see it the way a guest would.
- Test properties from other Channel Managers are visible too. The sandbox is a site shared between integrators: only put fictitious data there, never a customer’s real addresses or photos.
- No emails go out. Everything Localoge would have sent (booking confirmation, message to the
guest, host alert) lands in a test inbox, available from the developer portal or via
GET /sandbox/emails. - No real payments. The payment flow is not connected to real money.
Your test accounts, delivered with your credentials
Section titled “Your test accounts, delivered with your credentials”As soon as your integration request is accepted, three accounts are created for you in the sandbox, together with your test key. The welcome email and the home page of your sandbox portal list their addresses:
| Account | Address | Used for |
|---|---|---|
| Demo host | your address | Properties your software sends without a host_ref land here. It collects payments in test mode (Stripe test account already set up). |
| Second host | hote-test.<your-slug>@sandbox.localoge.invalid |
No properties: for testing the flow where a host authorizes your software and you get a host_ref. |
| Guest | voyageur.<your-slug>@sandbox.localoge.invalid |
For booking on https://sandbox.localoge.com and paying. |
No password is sent. All three accounts use the password you choose when activating your sandbox portal (or when resetting it). A colleague you invite also receives their sandbox activation link in their invitation.
Sandbox payments go through Stripe test mode: card 4242 4242 4242 4242, any future date,
any CVC. No real money changes hands, and you receive the same events as in production
(reservation.created, payment.succeeded, reservation.cancelled, payment.refunded).
host_ref works in the sandbox
Section titled “host_ref works in the sandbox”You can test the host authorization flow end to end: create a test host account on
https://sandbox.localoge.com, take it through the authorization page, exchange the code for a
host_ref (POST /oauth/token), then push its properties. See
Connecting a host.
Without a host_ref, a property pushed with a test key is attached to your company’s test host
account.
Sandbox tools
Section titled “Sandbox tools”Three endpoints exist only in the sandbox (they return 404 NOT_FOUND in production):
| Endpoint | Purpose |
|---|---|
POST /sandbox/simulate |
Have a fictitious guest book, send a message, post a review, or approve a property. See Simulator. |
POST /sandbox/reset |
Delete your test properties, stays and messages, to start from a clean slate. |
GET /sandbox/emails?limit= |
Read the emails the sandbox would have sent. |
The same actions are available as buttons in the sandbox developer portal.
Everything else behaves exactly as in production, rejections included: nights already booked, idempotency, rate limits, webhook signatures.
What you need to test
Section titled “What you need to test”The Compliance page lists the checks, and GET /conformance tells you,
based on your own request log, which ones have passed. In short:
- Create a property, read it back, push it again unchanged and check for
unchanged: true. - Actually publish it: three photos, and watch
missingempty out. - Close and reopen nights, and read
skipped. - Push rates.
- Send us a reservation, then replay exactly the same call:
200and the same ID, never a duplicate. - Book the same nights a second time with a different ID:
409 DATES_UNAVAILABLE. - Cancel.
- Register a webhook, receive one with a
2xx, and reject a forged signature. - Honor a
429and itsRetry-After. - Walk through a list using
next_cursor.
Going live
Section titled “Going live”- Your compliance is all green in the sandbox developer portal.
- In the production portal (
https://developers.localoge.com/app/dev), you request access. The request is refused as long as a compliance check fails (409 conformite_incomplete, with details). - A Localoge administrator grants access; you are notified by email.
- You create your
lok_live_…key and register your webhook again with it: subscriptions do not carry over between instances. - You push a first real property. It goes to
pending_validation: an administrator reviews it before publication. The following ones are published automatically as soon as they are complete. See Lifecycle. - You import your inventory.
After going live
Section titled “After going live”Keep your sandbox access. That is where you will test your changes without touching the inventory you have on sale.