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.

EndpointScopeWhat it does
GET /profileREGISTRATIONReads the profile.
PATCH /profileUPDATEChanges parts of it.
GET /locationsREGISTRATIONLists your branches and their IDs.
POST /mediaREGISTRATIONStores Localoy's own copy of an image.

The flow#

Setting up what customers see
Setting up what customers seeYour serverLocaloyYour image hostCustomers1. GET /profile2. 200 profile as it is now3. PATCH /profile changed fieldsWhole body checked first — one bad field saves nothing4. 200 updated profile5. New hours and description showBefore a listing needs an image6. POST /media { url }7. Download the image8. Image bytes9. 201 { url: Localoy's copy }Before a listing is offered at a branch10. GET /locations11. 200 locations with their ids
  1. Your server → Localoy: GET /profile
  2. Localoy → Your server: 200 profile as it is now
  3. Your server → Localoy: PATCH /profile changed fields
  4. Note: Whole body checked first — one bad field saves nothing
  5. Localoy → Your server: 200 updated profile
  6. Localoy → Customers: New hours and description show
  7. — Before a listing needs an image —
  8. Your server → Localoy: POST /media { url }
  9. Localoy → Your image host: Download the image
  10. Your image host → Localoy: Image bytes
  11. Localoy → Your server: 201 { url: Localoy's copy }
  12. — Before a listing is offered at a branch —
  13. Your server → Localoy: GET /locations
  14. Localoy → Your server: 200 locations with their ids
  1. Read, then patch. Send only the fields you want to change. Each field replaces that part whole: operatingHours is the entire week, and each key inside details replaces that answer.
  2. 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.
  3. Import images once. Localoy downloads the https image and keeps its own resized copy, so your server's uptime never affects customers. Keep the returned url and reuse it — each call stores a new copy. Listings accept only URLs that came from here (400 image_not_imported otherwise).
  4. Use location IDs. Listings name the branches they are offered at with the ids from GET /locations. Locations themselves are managed in the Partner Portal.

Rules to remember#

  • name, email, phone, logoUrl and coverImageUrl belong to your Localoy account. Sending one to PATCH answers 400 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 sandbox POST /media checks the image the same way and answers url: 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.updated and read the profile back before your next PATCH, or that PATCH undoes their edit.