Skip to main content
POST
/
customers
/
{customer_pk}
/
locations
Create customer location
curl --request POST \
  --url https://api.parceltracer.com/v1/external/customers/{customer_pk}/locations/ \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "area": {
    "name_ar": "",
    "name_en": "",
    "district": "Zahleh",
    "lat": "<string>",
    "long": "<string>",
    "maps_link": "<string>"
  },
  "directions": "<string>"
}
'
{
  "id": 9691,
  "area": {
    "id": 146,
    "name_ar": "عيناب",
    "name_en": "Ainab",
    "district": "Aley",
    "lat": "33.766414000000000",
    "long": "35.546311000000000"
  },
  "directions": ""
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

customer_pk
integer
required

Body

area
object
required

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

directions
string

Response

id
integer
required
area
object
required

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

directions
string