Step by step in your developer space
Your developer space is more than a page of keys: it is a complete test bench. You can simulate guest bookings there, read the webhooks we sent you, see the emails your customers would have received, and check that your integration is ready for production. All of it without writing a line of code to get started.
Two spaces, two roles
Section titled “Two spaces, two roles”| Sandbox space | Production space | |
|---|---|---|
| Address | sandbox.localoge.com/app/dev | developers.localoge.com/app/dev |
| Used for | Testing everything: lok_test_ keys, simulator, test inbox |
Requesting production, then lok_live_ keys |
| Guests, money | Fictitious, test card | Real |
Your sandbox access is created from the production space: Keys tab, Get my sandbox access button. You receive a link to set your password, a test key (shown only once) and three test accounts. See Sandbox and going live.
The journey, in ten steps
Section titled “The journey, in ten steps”1. Create your test key
Section titled “1. Create your test key”Keys tab. The key identifies your software on every call. If you no longer have the one you received when your account opened, create a new one: it is shown only once, so copy it right away. You can limit it to certain scopes; with no scope ticked, it can do everything.
What you should see: the key in the list, with its preview lok_test_….…xxxx.
2. Register your webhook URL, or the mirror
Section titled “2. Register your webhook URL, or the mirror”Applications tab, Configure button on your test application, Webhook field.
- You already have an endpoint: paste its URL (HTTPS required).
- You have not written anything yet: paste the mirror address, shown at the bottom of the
Webhooks tab (
https://sandbox.localoge.com/webhook-echo/<your-identifier>). The mirror receives our deliveries for you and checks the signature.
On the first save, the signing secret (whsec_…) is shown only once: keep it, it lets you
verify our deliveries.
What you should see: the line saying delivery is actually connected. With no URL registered, no event reaches you, and the simulator would have nothing to send you.
3. Send a first property
Section titled “3. Send a first property”One call, with your test key, on the sandbox URL:
curl -X POST https://sandbox.localoge.com/api/v1/channel/properties \ -H "Authorization: Bearer lok_test_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "external_property_id": "PMS-123", "title": "Test studio", "address": "1 test street", "city": "Agde", "postal_code": "34300", "country": "FR", "max_guests": 2, "bedrooms": 1, "beds": 1, "bathrooms": 1, "base_price": 9500, "cleaning_fee": 4000 }'Without a host_ref, the property is attached to your demo host. Amounts are in cents. See
Create and update.
What you should see: a 201 response with status: "draft" and missing: ["photos"], and the
call in the Log tab. A rejected call shows up there too, with its error code and request_id.
4. See your property on the sandbox site
Section titled “4. See your property on the sandbox site”Sign in at sandbox.localoge.com with the demo host address (yours) and your sandbox space password: the property is in the host’s space.
As long as missing is not empty, it stays a draft. Add three photos: once
complete, your first property moves to pending_validation, because an administrator reviews each
partner’s first property. In the sandbox, the simulator plays that administrator: Simulator,
event listing.validated, your PMS-123. The property becomes published, and you receive
property.status_changed.
What you should see: the listing page as a guest will see it, with your photos, prices and calendar.
5. Simulate a guest booking
Section titled “5. Simulate a guest booking”Simulator tab. This is the core tool of the sandbox: on demand, it makes happen what a guest would do in production.
- Event:
reservation.created. - Your property ID:
PMS-123. - Dates: optional. Left empty, the simulator takes the first free 3-night window from D+14.
- Simulate.
Localoge creates a real test reservation (fictitious guest), blocks the nights, and sends you
reservation.created through the same path as production: same signature, same retries.
Then, on the same reservation: reservation.updated (new dates), reservation.cancelled,
message.received, review.created. These four events need the ID of the reservation created by
the simulator: the space prefills it with the last one you simulated. See
Simulator.
What you should see: the result, with reservation_id and status: "confirmed", and a button
that takes you to the webhook we sent.
6. Check that the webhook arrived
Section titled “6. Check that the webhook arrived”Webhooks tab. Each row is a delivery: the event, its status (Pending, Delivered, Failed), the number of attempts and your server’s HTTP status. Details shows the exact JSON we sent.
- Your server must answer
2xxwithin 10 seconds. Otherwise we retry (ten attempts over about 30 hours). - A failed delivery can be replayed in one click, once your server is fixed.
- Send a test event emits a
webhook.testwithout booking anything: the fastest way to test reception and signature. - If you registered the mirror, its section shows what it received, with our verdict on the signature. If it is valid for us and rejected by you, the bug is in your verification.
What you should see: reservation.created with the Delivered status and a 2xx code.
7. Book as a guest, and read the emails
Section titled “7. Book as a guest, and read the emails”The simulator only produces webhooks, no email. To see what your customers would receive, go through a real guest’s journey:
- On sandbox.localoge.com, sign in with the test guest
(
voyageur.<your-identifier>@sandbox.localoge.invalid, same password). - Book your published property, and pay with the card
4242 4242 4242 4242(any future date, any code). No money moves. - Open the Test inbox tab of the space.
No email leaves the sandbox: the test inbox keeps what the host and the guest would have received,
fully rendered. This booking also sends you reservation.created and payment.succeeded.
What you should see: the guest’s confirmation and the host’s alert, in the list.
8. Test a host connection
Section titled “8. Test a host connection”This is the journey a real customer will follow to hand you their properties. First register your redirect address in Applications (Redirect addresses field), then open in a browser:
https://sandbox.localoge.com/connect?partner=<your-identifier>&redirect_uri=<your-redirect-address>&state=testSign in with the second test host (hote-test.<your-identifier>@sandbox.localoge.invalid) and
click Authorize. We redirect to your address with a code, which you exchange for a host_ref
(POST /oauth/token). See Connecting a host.
What you should see: the hosts have authorised you counter goes to 1 on the Overview.
Properties pushed with this host_ref belong to the second host, not to the demo host.
9. Get compliance to green
Section titled “9. Get compliance to green”Compliance tab. The list of checks your integration must pass before production. They are
computed from your real calls and real deliveries: there is nothing to tick. Each failed
check says what is missing, for example: replay exactly the same POST /reservations and get 200
with the same ID, trigger a 409 DATES_UNAVAILABLE, cancel a reservation. A failed check blocks
production, a warning does not. See Compliance.
What you should see: zero failed checks.
10. Request production access
Section titled “10. Request production access”In the production space (developers.localoge.com/app/dev), Compliance tab, Request production button. The request is refused while a check fails. A Localoge administrator reviews your integration and lets you know by email.
Once access is granted, in the production space:
- Keys: create your
lok_live_key. - Applications: create a production application and register your webhook there again. Settings do not cross instances.
- Push a first real property, and look at it before importing the rest. See Lifecycle.
The tools, one line each
Section titled “The tools, one line each”| Tool | What it is for | Where |
|---|---|---|
| Simulator | Make a fictitious guest book, change, cancel, write, review; validate a property | Sandbox |
| Reset | Delete your test properties, stays and messages (keys and account stay) | Sandbox, bottom of Simulator |
| Test inbox | Read the emails the host and the guest would have received | Sandbox |
| Webhooks | See each delivery, its JSON and your server’s response; replay; send a test | Both |
| Mirror | Receive our webhooks in your place and judge the signature | Both, bottom of Webhooks |
| Compliance | Know what is missing before production | Both |
| Log | Every API call, its error code and request_id |
Both |
| Test accounts | Demo host, second host, guest, to play each role on the site | Sandbox, Overview |
/connect page |
Get a host to authorize your software and obtain a host_ref |
Both |
When something does not work
Section titled “When something does not work”- Log, Errors only filter: the error code almost always says what to do. See Errors.
- Webhooks: a delivery with the Failed status shows your server’s response.
- Nothing arrives at all: check that a webhook URL is registered (step 2).
- Still stuck: write to contact@localoge.com quoting the
request_id.