latitude and longitude is stored but cannot be found by a
shopper nearby.
When to use
- The organization has no places recorded yet, or is missing some.
- An address, phone number, website or email address has changed.
- A place has closed (mark it inactive).
Auth
X-API-Key header or OAuth token. Reading needs any member of the
organization (or any API key of it). Writing needs an OWNER, MANAGER or
EDITOR (or an API key with the EDITOR role or above): a read-only key gets
403. An organization the caller does not belong to, or a place another
organization owns, is 404.
Flow
GET .../places— every place by name, inactive ones included, paginated:id,name, the address (address_line_1,address_line_2,city,region,county,postal_code,country),latitude,longitude,gln,supply_chain_type,google_place_id,is_active, the listsurls,phonesandemails,created,modified.POST .../places— add a place.address_line_1,city,region,postal_codeandcountry(ISO alpha-2, such asUS) are required. Optional:name,address_line_2,latitudewithlongitude,gln,supply_chain_type,google_place_id,is_active(defaulttrue), and the contact lists:phones:label(required),number, optionalextension;urls:url(http or https), optionallabel(defaultWebsite);emails:email, optionallabel(defaultInquiries);- each row takes an optional
sort_order. Returns201with the place.
PATCH .../places/{place_id}— send only the fields you are changing. A contact list you send replaces the place’s whole list (an empty list clears it); a list you leave out is untouched.nullclearsglnandsupply_chain_typeand is422anywhere else.DELETE .../places/{place_id}— delete the place and its contact rows (204). A place that traceability records (harvest areas, critical tracking events) still name is409; send{"is_active": false}instead.
supply_chain_type without a gln, latitude without
longitude — is 422, with one details row per field. A contact row’s
error is located by its position in the list you sent, such as
["body", "data", "phones", 1, "number"].
Verify
GET .../placesagain and confirm each place you added or changed reads back with the address, coordinates and contact details you intended.- Confirm no place you did not mean to touch changed or disappeared.