Glue API: Update service point addresses

Edit on GitHub

This endpoint lets you update service point addresses.

Installation

Install the Service Points feature

Retrieve service points


PATCH /service-points/{{service-point-uuid}}/service-point-addresses/{{service-point-address-uuid}}


PATH PARAMETER DESCRIPTION
{{service-point-uuid}} ID of a service point to update the addresses of. To get it, retrieve service points.
{{service-point-address-uuid}} ID of a service point address to update. To get it, retrieve service point addresses.

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: PATCH https://glue-backend.mysprykershop.com/service-points/262feb9d-33a7-5c55-9b04-45b1fd22067e/service-point-addresses/74768ee9-e7dd-5e3c-bafd-b654e7946c54

{
    "data": {
        "type": "service-point-address",
        "attributes": {
            "address1": "Caroline-Michaelis-Straße",
            "address2": "20",
            "address3": "null",
            "city": "Berlin",
            "zip_code": "10115",
            "countryIso2Code": "DE"
        }
    }
}

Response

Response sample:

{
    "data": {
        "type": "service-point-addresses",
        "id": "74768ee9-e7dd-5e3c-bafd-b654e7946c54",
        "attributes": {
            "uuid": "74768ee9-e7dd-5e3c-bafd-b654e7946c54",
            "regionUuid": null,
            "countryIso2Code": "DE",
            "address1": "Caroline-Michaelis-Straße",
            "address2": "20",
            "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.
5400 The service point address with the specified ID doesn’t exist.
5415 Zip code value is length from 4 to 15 characters

To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.