A location-object points to a physical location and functions as an address.
id | string <uuid> Location identifier. |
city | string [ 0 .. 255 ] characters Name of location's city. |
country | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
customer_id | string <uuid> Identifier of the customer the address belongs to. |
label | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code | string [ 0 .. 255 ] characters Location's postal code. |
street_name | string [ 0 .. 255 ] characters Name of street. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
Retrieve a list of registered customer locations.
Successful response.
An error occurred - see status code and problem response for more information.
{- "query": {
- "limit": 25,
- "offset": 0
}, - "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
], - "total": 3255
}
Add a new customer location.
The location you wish to add.
city required | string [ 0 .. 255 ] characters Name of location's city. |
country required | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
customer_id required | string <uuid> Identifier of the customer the address belongs to. |
label required | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code required | string [ 0 .. 255 ] characters Location's postal code. |
street_name required | string [ 0 .. 255 ] characters Name of street. |
Created.
id | string <uuid> Location identifier. |
city | string [ 0 .. 255 ] characters Name of location's city. |
country | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
customer_id | string <uuid> Identifier of the customer the address belongs to. |
label | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code | string [ 0 .. 255 ] characters Location's postal code. |
street_name | string [ 0 .. 255 ] characters Name of street. |
An error occurred - see status code and problem response for more information.
{- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
Retrieves a location by its identifier.
Successful response.
id | string <uuid> Location identifier. |
city | string [ 0 .. 255 ] characters Name of location's city. |
country | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
customer_id | string <uuid> Identifier of the customer the address belongs to. |
label | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code | string [ 0 .. 255 ] characters Location's postal code. |
street_name | string [ 0 .. 255 ] characters Name of street. |
An error occurred - see status code and problem response for more information.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
Update a location by its identifier.
The updated location.
city required | string [ 0 .. 255 ] characters Name of location's city. |
country required | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
label required | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code required | string [ 0 .. 255 ] characters Location's postal code. |
street_name required | string [ 0 .. 255 ] characters Name of street. |
Successful response.
id | string <uuid> Location identifier. |
city | string [ 0 .. 255 ] characters Name of location's city. |
country | string or null <iso-3166-alpha-2> A location's country expressed in two-letter code. |
customer_id | string <uuid> Identifier of the customer the address belongs to. |
label | string [ 0 .. 255 ] characters Location label. |
number | string [ 0 .. 255 ] characters Address number. |
postal_code | string [ 0 .. 255 ] characters Location's postal code. |
street_name | string [ 0 .. 255 ] characters Name of street. |
An error occurred - see status code and problem response for more information.
{- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "city": "Arnhem",
- "country": "NL",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "label": "Location Willemsplein",
- "number": "3a",
- "postal_code": "6811KA",
- "street_name": "Willemsplein"
}
Remove a location by its identifier.
Successfully removed.
An error occurred - see status code and problem response for more information.
Returned when the request cannot be handled due to something that is perceived to be a client error.
{- "detail": "The request violates one or more constraints. Please resolve all of them and try again.",
- "status": 400,
- "title": "Bad request",
- "type": "/problems/violations",
- "violations": [
- {
- "property_path": "gross_price.amount",
- "in": "body",
- "detail": "Value must be greater than 0"
}, - {
- "property_path": "provider_id",
- "in": "query",
- "detail": "Provider with ID 3445 does not exist."
}
]
}