Checks acceptance of the terms of service for a user and a service.
Fetches the latest terms for the given UUID. In order to identify the user any oauth2 token must be passed.
Query parameters
-
The name of the service
Values are
PACE ID
,PACE Connected Fueling
,PACE Pay
,PACE Community
,PACE Car App
, orPACE Drive App
. -
redirectUri string
An optional URI to redirect to in case terms of service are accepted. This parameter only has effect to the
text/html
version of the terms as specified in GetTerms.
Responses
-
Terms found and accepted by the user
-
Terms found but user didn't accept latest terms version
-
401 application/vnd.api+json
OAuth token missing or invalid or a linked identity is missing.
Linked identity missing is a special case where you need to make sure that the user has additionally logged in / authorized with a third-party.
This is not relevant for most use-cases.
The specific error code that identifies a missing linked identity is
missing-linked-identity
Example:
{ "errors": [ { "id": "cbgmhslmp1o9or9kh1p0", "title": "Missing linked identity for authorized access", "detail": "Linked identity is needed to access this resource, please check why the user does not have a linked identity", "status": "401", "code": "missing-linked-identity" } ] }
-
404 application/vnd.api+json
Resource not found
-
501 application/vnd.api+json
Internal server error
curl \
-X GET https://api.pace.cloud/user/2024-3/terms/check?filter%5BserviceName%5D=PACE+Connected+Fueling \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}