Glue API: Add service point addresses
Edit on GitHubThis endpoint lets you add service point addresses.
Installation
Install the Service Points feature
Retrieve service points
POST
/service-points/{{service-point-uuid}}/service-point-addresses
PATH PARAMETER | DESCRIPTION |
---|---|
{{service-point-uuid}} | ID of a service point to add the address to. To get it, retrieve service points. |
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: GET https://glue-backend.mysprykershop.com/service-points/262feb9d-33a7-5c55-9b04-45b1fd22067e/service-point-addresses
{
"data": {
"type": "service-point-address",
"attributes": {
"address1": "Caroline-Michaelis-Straße",
"address2": "8",
"address3": "null",
"city": "Berlin",
"zipCode": "10115",
"countryIso2Code": "DE",
"regionUuid": "02"
}
}
}
Response
Response sample:
{
"data": {
"type": "service-point-addresses",
"id": "74768ee9-e7dd-5e3c-bafd-b654e7946c54",
"attributes": {
"uuid": "74768ee9-e7dd-5e3c-bafd-b654e7946c54",
"regionUuid": 02,
"countryIso2Code": "DE",
"address1": "Caroline-Michaelis-Straße",
"address2": "8",
"address3": "null",
"city": "Berlin",
"zipCode": "10115"
},
"links": {
"self": "https://glue-backend.mysprykershop.com/service-points/262feb9d-33a7-5c55-9b04-45b1fd22067e/service-point-addresses/74768ee9-e7dd-5e3c-bafd-b654e7946c54"
}
}
}
RESOURCE | ATTRIBUTE | TYPE | DESCRIPTION |
---|---|---|---|
service-point-addresses | uuid | String | Unique identifier of the service point address. |
service-point-addresses | countryIso2Code | String | ISO-2 country code. |
service-point-addresses | address1 | String | Address line 1. |
service-point-addresses | address2 | String | Address line 2. |
service-point-addresses | address3 | String | Address line 3. |
service-point-addresses | city | String | City. |
service-point-addresses | zipCode | String | Zip code. |
Possible errors
CODE | REASON |
---|---|
5403 | The service point with the specified ID doesn’t exist. |
5415 | Zip code value is outside of accepted length range. The accepted length range is from 4 to 15 characters. |
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.
Thank you!
For submitting the form