Business profile overview
How to read and update the profile customers see, find your locations and import the images your listings use.
Your business profile is the page customers see for your business on Localoy: description, website, type, opening hours, price range and profile answers. This group also holds your locations and the image import every listing relies on.
| Endpoint | Scope | What it does |
|---|---|---|
GET /profile | REGISTRATION | Reads the profile. |
PATCH /profile | UPDATE | Changes parts of it. |
GET /locations | REGISTRATION | Lists your branches and their IDs. |
POST /media | REGISTRATION | Stores Localoy's own copy of an image. |
The flow#
- Your server → Localoy: GET /profile
- Localoy → Your server: 200 profile as it is now
- Your server → Localoy: PATCH /profile changed fields
- Note: Whole body checked first — one bad field saves nothing
- Localoy → Your server: 200 updated profile
- Localoy → Customers: New hours and description show
- — Before a listing needs an image —
- Your server → Localoy: POST /media { url }
- Localoy → Your image host: Download the image
- Your image host → Localoy: Image bytes
- Localoy → Your server: 201 { url: Localoy's copy }
- — Before a listing is offered at a branch —
- Your server → Localoy: GET /locations
- Localoy → Your server: 200 locations with their ids
- Read, then patch. Send only the fields you want to change. Each field replaces that part whole:
operatingHoursis the entire week, and each key insidedetailsreplaces that answer. - It is all or nothing. The whole body is checked before anything is saved; one invalid field rejects the request and nothing changes. Sending the same body again leaves the same profile.
- Import images once. Localoy downloads the
httpsimage and keeps its own resized copy, so your server's uptime never affects customers. Keep the returnedurland reuse it — each call stores a new copy. Listings accept only URLs that came from here (400 image_not_importedotherwise). - Use location IDs. Listings name the branches they are offered at with the
ids fromGET /locations. Locations themselves are managed in the Partner Portal.
Rules to remember#
name,email,phone,logoUrlandcoverImageUrlbelong to your Localoy account. Sending one toPATCHanswers400 field_read_only; change them in the Partner Portal.- A sandbox key never changes your profile — there is only one profile and customers see it. The
request is validated and answered with the profile as it would be and
"dryRun": true. A sandboxPOST /mediachecks the image the same way and answersurl: null. - Images must be
https, on a public address, at most 10 MB, downloaded within 10 seconds, and JPEG, PNG, WebP, GIF or AVIF. - The partner can edit the same fields in the Partner Portal, and the last write wins. Subscribe to
profile.updatedand read the profile back before your nextPATCH, or thatPATCHundoes their edit.