Addresses

Manage addresses that can be linked to clients and contacts.

Use cases: Use the Addresses API to store shipping or billing addresses that are shared across multiple clients or contacts.
GET/addresses

List all addresses with optional search and pagination.

Query Parameters

NameTypeDescription
search
stringFree-text search across relevant fields.
page
numberPage number (default 1).
limit
numberItems per page (default 50).

Request

curl -X GET "https://api.glance.co.il/addresses" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "data": [
    {
      "id": 1,
      "street": "123 Main St",
      "city": "Tel Aviv",
      "zip": "6100000",
      "country": "IL"
    }
  ],
  "pagination": {
    "total": 8,
    "limit": 50,
    "offset": 0,
    "hasMore": false
  }
}
GET/addresses/id/:id

Get a single address by ID.

Path Parameters

NameTypeDescription
id
numberrequiredThe address ID.

Request

curl -X GET "https://api.glance.co.il/addresses/id/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "data": {
    "id": 1,
    "street": "123 Main St",
    "city": "Tel Aviv",
    "zip": "6100000",
    "country": "IL"
  }
}
POST/addresses/create

Create a new address.

Body Parameters

NameTypeDescription
street
stringrequiredStreet name and number.
city
stringrequiredCity name.
zip
stringPostal / zip code.
country
stringCountry code (e.g. IL, US).

Request

curl -X POST "https://api.glance.co.il/addresses/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "street": "example_street",
  "city": "example_city",
  "zip": "example_zip",
  "country": "example_country"
}'

Response

Response
{
  "data": {
    "id": 5,
    "street": "45 Rothschild Blvd",
    "city": "Tel Aviv",
    "zip": "6578401",
    "country": "IL"
  }
}
PUT/addresses/:id

Update an existing address.

Path Parameters

NameTypeDescription
id
numberrequiredThe address ID.

Body Parameters

NameTypeDescription
street
stringStreet name and number.
city
stringCity name.
zip
stringPostal / zip code.
country
stringCountry code.

Request

curl -X PUT "https://api.glance.co.il/addresses/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "street": "example_street",
  "city": "example_city",
  "zip": "example_zip",
  "country": "example_country"
}'

Response

Response
{
  "data": {
    "id": 1,
    "street": "456 Updated Ave",
    "city": "Haifa",
    "zip": "3100000",
    "country": "IL"
  }
}
DELETE/addresses/:id

Delete an address.

Path Parameters

NameTypeDescription
id
numberrequiredThe address ID.

Request

curl -X DELETE "https://api.glance.co.il/addresses/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "data": {
    "success": true
  }
}