{
  "_comment": "GET /enterprise/Establishment/?limit=250&offset=0 — VERIFIED. Used by both test_connection.js and list_remote_outlets.js. Envelope uses {count, next, previous, results} (NOT meta/objects). Items inside results[] return 'address' as a flat string (the nested address object only appears when calling the detail endpoint /resources/Establishment/{id}/).",

  "request": {
    "method": "GET",
    "url": "https://acme.revelup.com/enterprise/Establishment/?limit=250&offset=0",
    "headers": {
      "API-AUTHENTICATION": "{apiKey}:{apiSecret}",
      "Accept": "application/json"
    }
  },

  "response": {
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
      {
        "id": 456,
        "name": "Orchard Road",
        "address": "123 Orchard Rd, Singapore",
        "phone": "+6561234567",
        "timezone": "Asia/Singapore",
        "active": true
      },
      {
        "id": 789,
        "name": "Marina Bay",
        "address": "1 Marina Blvd, Singapore",
        "phone": "+6567654321",
        "timezone": "Asia/Singapore",
        "active": true
      }
    ]
  },

  "_pagination_note": "Pagination loop: keep fetching while body.next is truthy, incrementing offset by limit (built scripts use limit=250). Some Revel deployments respond with 'objects' instead of 'results' — the adapter defensively reads body.results || body.objects.",

  "_planned_detail_endpoint": {
    "_comment": "When sync_outlet is implemented, the detail endpoint /resources/Establishment/{id}/ returns the nested address object + opening hours. Not yet exercised by adapter scripts — NEEDS VERIFICATION.",
    "url": "https://acme.revelup.com/resources/Establishment/456/?format=json",
    "expected_response_shape": {
      "id": 456,
      "name": "Orchard Road",
      "address": {
        "address_1": "123 Orchard Rd",
        "address_2": null,
        "city": "Singapore",
        "state": null,
        "zipcode": "238867",
        "country": "SG"
      },
      "phone": "+6561234567",
      "email": "orchard@example.com",
      "time_zone": "Asia/Singapore",
      "currency": "SGD",
      "active": true
    }
  }
}
