Skip to content

Service

A Service is something an organization does rather than sells as an item: delivery, repairs, cleaning, consulting. It links to its provider Organization, the ServiceChannels to reach it, its Offers and OfferCatalogs, and lists where and when it is available: areaServed takes names, a GeoCircle or a GeoShape. additionalType names its kind, a Schema.org subtype such as LoanOrCredit, GovernmentService, TaxiService or WebAPI, which is its JSON-LD @type; the financial kinds take annualPercentageRate, interestRate and feesAndCommissionsSpecification, a GovernmentService serviceOperator and jurisdiction, a WebAPI documentation, and other kinds refuse them. Its staff are the EmployeeRoles that provide it.

Modeled on schema.org/Service · JSON Schema · ABAC object type Service

Example

Create one with POST /services:

{
  "name": [
    {
      "at_language": "en",
      "at_value": "Shoe repair"
    }
  ],
  "serviceType": [
    {
      "at_language": "en",
      "at_value": "Repair"
    }
  ],
  "provider": {
    "at_id": "https://apis.objectsgrid.com/organizations/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
  },
  "areaServed": [
    "DE",
    "AT"
  ],
  "providerMobility": "static"
}

Fields

Required: name.

Field Type Required Description
at_context https://schema.org JSON-LD @context, always https://schema.org.
at_type Service JSON-LD @type, the object's type name.
at_id URL The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, its JSON-LD @id: what References to it hold. Assigned by ObjectsGrid.
id string The object's id. Assigned by ObjectsGrid when the object is created.
identifier string The object's id, as Schema.org identifier. Assigned by ObjectsGrid.
name list of LanguageTaggedString Yes The Service name. See schema.org/name.
alternateName list of LanguageTaggedString An alias for the Service
description list of LanguageTaggedString The Service description. See schema.org/description.
disambiguatingDescription list of LanguageTaggedString A short description of the Service, used to disambiguate it from other, similar Services
image URL image URL
isRelatedTo list of References to Product or ProductGroup or ProductModel or Service URLs of other, somehow related Products or Services
isSimilarTo list of References to Product or ProductGroup or ProductModel or Service URLs of other, functionally similar Products or Services
logo URL An associated logo for the Service
url URL The object's own URL, https://apis.objectsgrid.com/<path>/<id>. Assigned by ObjectsGrid.
additionalType string (13 values) The kind of service, a Schema.org subtype of Service: its JSON-LD @type. A FinancialProduct kind (FinancialProduct, BankAccount, CurrencyConversionService, InvestmentOrDeposit, LoanOrCredit, PaymentCard, PaymentService) takes annualPercentageRate, interestRate and feesAndCommissionsSpecification; a GovernmentService serviceOperator and jurisdiction; a WebAPI documentation. None for a Service.
aggregateRating AggregateRating The aggregate rating of the Service
areaServed list of any The areas where the Service is provided: a name (text, e.g. 'Berlin'), a GeoCircle (a radius around a point) or a GeoShape, each with its at_type. Stored and returned, not searchable.
audience Audience The intended audience of the Service
availableChannel list of References to ServiceChannel URLs of the ServiceChannels for accessing the Service, e.g. a phone number, web site, or office location
award string Awards won by or for this Service
brand Reference to Brand or Organization URL of the Brand associated with the Service
broker Reference to Organization or Person URL of the Organization acting as a broker between the provider and the customer
category list of string The categories of the Service
hasCertification list of Certification Certifications of the Service, e.g. quality or compliance certifications
hasOfferCatalog list of References to OfferCatalog URLs of the OfferCatalogs listing Offers for the Service
hoursAvailable list of OpeningHoursSpecification The hours during which the Service is available
offers computed: list of Offer URLs of Offers to provide this Service. Computed, read-only: the objects whose Offer.itemOffered points to this object, listed from that type; never stored or written.
provider Reference to Organization or Place or Person The Organization, local business (Place) or Person providing the Service
providerMobility one of static, dynamic Indicates the mobility of a provided Service: 'static' (the customer travels to the provider) or 'dynamic' (the provider travels to the customer)
review computed: list of Review URLs of Reviews of the Service. Computed, read-only: the objects whose Review.itemReviewed points to this object, listed from that type; never stored or written.
sameAs list of URL URLs of reference Web pages that unambiguously indicate the Service's identity
serviceOutput Reference to Permit or Product What the Service produces: a Permit, such as a parking permit, or a Product
serviceType list of LanguageTaggedString The type of Service being offered, e.g. veterans' benefits, emergency relief, etc.
slogan list of LanguageTaggedString A slogan or motto associated with the Service
tags list of Tag Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or [].
termsOfService URL URL of the terms of service of the Service
annualPercentageRate number FinancialProduct: the annual percentage rate
interestRate number FinancialProduct: the interest rate, in percent
feesAndCommissionsSpecification string FinancialProduct: the fees and commissions, as text or a URL
serviceOperator Reference to Organization GovernmentService: the operator of the service, when it is not the provider
jurisdiction string GovernmentService: the area whose rules apply, e.g. 'Berlin'
documentation URL WebAPI: its documentation
meta ObjectMeta Read-only metadata: version, type, creation and last update.

REST API

Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.

Operation Request
Create POST /services
List and search GET /services
Create up to 100 at once POST /services/batch
Retrieve GET /services/{id}
Retrieve as a JSON-LD document for your pages GET /services/{id} with Accept: application/ld+json; see JSON-LD for your pages
Replace PUT /services/{id}
Update some fields PATCH /services/{id}
Delete DELETE /services/{id}

The OpenAPI contract, with every parameter and response: Services (JSON).

GraphQL

Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.

Operation Field
Query service(id: ID!, version: String): Service
Query services(where: ServiceWhereInput, orderBy: [ServiceOrderByInput!], first: Int, after: String): ServiceConnection!
Query servicesGroupBy(by: [ServiceGroupByField!]!, where: ServiceWhereInput, having: ServiceHavingInput, orderBy: [ServiceGroupByOrderByInput!], first: Int, after: String): ServiceGroupByConnection!
Mutation createService(input: CreateServiceInput!): Service!
Mutation updateService(input: UpdateServiceInput!, expectedVersion: String): Service!
Mutation deleteService(id: ID!, expectedVersion: String): Boolean!

Webhook events

Subscribe to these events in your webhook configuration to be called when a Service changes:

ServiceCreated, ServiceUpdated, ServicePatched, ServiceDeleted.