Glue API: Retrieve service types
Edit on GitHubThis endpoint lets you retrieve service types.
Installation
Install the Service Points feature
Retrieve service types
GET
/service-types
Request
HEADER KEY | HEADER VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
Authorization | string | ✓ | Alphanumeric string that authorizes the warehouse user to send requests to protected resources. Get it by authenticating as a warehouse user. |
QUERY PARAMETER | DESCRIPTION | POSSIBLE VALUES |
---|---|---|
page[offset] | Offsets the page at which to begin the response. | From 0 to any. |
page[limit] | Defines the maximum number of pages to return. | From 1 to any. |
Request sample: GET https://glue-backend.mysprykershop.com/service-points
Response
Retrieve all service types
{
"data": [
{
"type": "service-types",
"id": "2370ad95-4e9f-5ac3-913e-300c5805b181",
"attributes": {
"name": "Pickup",
"key": "pickup"
},
"links": {
"self": "https://glue-backend.mysprykershop.com/service-types/2370ad95-4e9f-5ac3-913e-300c5805b181"
}
},
{
"type": "service-types",
"id": "7a263a50-12a3-5ef4-86f4-366f20783180",
"attributes": {
"name": "Demo",
"key": "demo"
},
"links": {
"self": "https://glue-backend.mysprykershop.com/service-types/7a263a50-12a3-5ef4-86f4-366f20783180"
}
}
],
"links": {
"self": "https://glue-backend.mysprykershop.com/service-types"
}
}
RESOURCE | ATTRIBUTE | TYPE | DESCRIPTION |
---|---|---|---|
service-types | name | String | Name. |
service-types | key | String | Unique key of the service type. You will use it as a reference when adding services of this type. |
Retrieve a service type
GET
/service-types/{{service_type_id}}
PATH PARAMETER | DESCRIPTION |
---|---|
{{service_type_id}} | ID of a service type to retrieve. To get it, add a service type or retrieve service types. |
Request
HEADER KEY | HEADER VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
Authorization | string | ✓ | Alphanumeric string that authorizes the warehouse user to send requests to protected resources. Get it by authenticating as a warehouse user. |
Request sample: https://glue-backend.mysprykershop.com/service-types/7a263a50-12a3-5ef4-86f4-366f20783180
Response
{
"data": {
"type": "service-types",
"id": "7a263a50-12a3-5ef4-86f4-366f20783180",
"attributes": {
"name": "Demo",
"key": "demo"
},
"links": {
"self": "https://glue-backend.mysprykershop.com/service-types/7a263a50-12a3-5ef4-86f4-366f20783180"
}
}
}
RESOURCE | ATTRIBUTE | TYPE | DESCRIPTION |
---|---|---|---|
service-types | name | String | Name. |
service-types | key | String | Unique key of the service type. You will use it as a reference when adding services of this type. |
Possible errors
CODE | REASON |
---|---|
5418 | The service type with the specified ID doesn’t exist. |
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.
Thank you!
For submitting the form