Locations
Retrieve every active location on the project for slug references or reconciliation with upstream systems.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Short code or application-level status code for this resource.
GET /project/locations HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"success": true,
"code": 200,
"data": [
{
"id": 12,
"project_id": 42,
"uuid": "51987517-6a48-4e4d-87d5-934147e46234",
"name": "Downtown",
"display_name": "Acme Dental Downtown Office",
"slug": "downtown",
"store_code": "CHI-DTN",
"title": "Downtown Office",
"address": "123 Main St, Chicago, IL 60601",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
},
{
"id": 13,
"project_id": 42,
"uuid": "62998628-7b59-5f5f-98e6-a45258f57345",
"name": "Northside",
"display_name": "Acme Dental Northside",
"slug": "northside",
"store_code": "CHI-NTH",
"title": "Northside Office",
"address": "400 Clark St, Chicago, IL 60640",
"address1": "400 Clark St",
"address2": null,
"city": "Chicago",
"state": "IL",
"postal_code": "60640"
}
]
}Create a physical or business location for the project.
Object containing response data for this resource.
Internal location name. Accepts a non-empty string.
Public-facing location name shown to customers. Accepts a non-empty string.
URL-friendly location identifier. Lowercase letters, digits, and hyphens.
Internal store identifier for this location.
Primary street address line.
Secondary street address line, such as suite or apartment.
City for the address.
State, province, or region for the address.
Postal or ZIP code for the address.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Short code or application-level status code for this resource.
POST /project/locations HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 198
{
"name": "Downtown",
"display_name": "Acme Dental Downtown",
"slug": "downtown",
"store_code": "CHI-DTN",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
}Success
{
"success": true,
"code": 200,
"data": {
"id": 12,
"project_id": 42,
"uuid": "51987517-6a48-4e4d-87d5-934147e46234",
"name": "Downtown",
"display_name": "Acme Dental Downtown",
"slug": "downtown",
"store_code": "CHI-DTN",
"title": "Downtown Office",
"address": "123 Main St, Chicago, IL 60601",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
}
}Retrieve a single project location for display slug or reconciliation use.
Unique numeric identifier for this resource.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Application-level status code returned by this API.
Location record for this project.
GET /project/locations/{id} HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"success": true,
"code": 200,
"data": {
"id": 12,
"project_id": 42,
"uuid": "51987517-6a48-4e4d-87d5-934147e46234",
"name": "Downtown",
"display_name": "Acme Dental Downtown Office",
"slug": "downtown",
"store_code": "CHI-DTN",
"title": "Downtown Office",
"address": "123 Main St, Chicago, IL 60601",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
}
}Update public display and address details for a project location.
Unique numeric identifier for this resource.
Object containing response data for this resource.
Internal location name. Accepts a non-empty string.
Public-facing location name shown to customers. Accepts a non-empty string.
URL-friendly location identifier. Lowercase letters, digits, and hyphens.
Internal store identifier for this location.
Primary street address line.
Secondary street address line, such as suite or apartment.
City for the address.
State, province, or region for the address.
Postal or ZIP code for the address.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Short code or application-level status code for this resource.
PUT /project/locations/{id} HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 205
{
"name": "Downtown",
"display_name": "Acme Dental Downtown Office",
"slug": "downtown",
"store_code": "CHI-DTN",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
}Success
{
"success": true,
"code": 200,
"data": {
"id": 12,
"project_id": 42,
"uuid": "51987517-6a48-4e4d-87d5-934147e46234",
"name": "Downtown",
"display_name": "Acme Dental Downtown Office",
"slug": "downtown",
"store_code": "CHI-DTN",
"title": "Downtown Office",
"address": "123 Main St, Chicago, IL 60601",
"address1": "123 Main St",
"address2": "Suite 400",
"city": "Chicago",
"state": "IL",
"postal_code": "60601"
}
}Remove a project location owned by the authenticated project.
Unique numeric identifier for this resource.
Success
Confirms the location was deleted.
Indicates whether the request completed successfully.
Application-level status code returned by this API.
DELETE /project/locations/{id} HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"success": true,
"code": 200
}Last updated
Was this helpful?