title | description | last_updated | template |
---|---|---|---|
Glue API: Add service point addresses |
Learn how to add service point addresses using Glue API |
Nov 23, 2023 |
glue-api-storefront-guide-template |
This endpoint lets you add service point addresses.
Install the Service Points feature
POST
{% raw %}/service-points/{{service-point-uuid}}/service-point-addresses{% endraw %}
PATH PARAMETER | DESCRIPTION |
---|---|
{% raw %}{{service-point-uuid}}{% endraw %} | ID of a service point to add the address to. To get it, retrieve service points. |
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 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"
}
}
}
{% include pbc/all/glue-api-guides/{{page.version}}/service-point-addresses-response-attributes.md %}
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.