Locations
Create a location
Locations
Create a location
Creates a location.
POST
/
v1
/
locations
curl --request POST \
--url https://api.amberflow.io/v1/locations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"customer_id": "cus_sAVSyzPS7qDWXELn",
"latitude": 52.3938,
"longitude": 4.8677,
"metadata": {
"address": "Nieuwe Hemweg 2, Amsterdam, Netherlands"
}
}'
{
"id": "991fced7-024c-4162-abbe-320fec9de64f",
"created_at": "2024-09-23T12:00:00.000Z",
"customer_id": "cus_sAVSyzPS7qDWXELn",
"latitude": 52.3938,
"longitude": 4.8677,
"metadata": {
"address": "Nieuwe Hemweg 2, Amsterdam, Netherlands"
}
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.amberflow.io/v1/locations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"customer_id": "cus_sAVSyzPS7qDWXELn",
"latitude": 52.3938,
"longitude": 4.8677,
"metadata": {
"address": "Nieuwe Hemweg 2, Amsterdam, Netherlands"
}
}'
{
"id": "991fced7-024c-4162-abbe-320fec9de64f",
"created_at": "2024-09-23T12:00:00.000Z",
"customer_id": "cus_sAVSyzPS7qDWXELn",
"latitude": 52.3938,
"longitude": 4.8677,
"metadata": {
"address": "Nieuwe Hemweg 2, Amsterdam, Netherlands"
}
}