ClientAddress


Representa a una dirección de un Cliente. Las direcciones de clientes son privadas y no pueden ser accedidas por usuarios diferentes al propio cliente.

Modelo ClientAddress

{
    "id": 1,
    "name": "Mi Casa",
    "address_line_1": "Calle Bolivar, Qta Lusitania",
    "reference": "Frente a la funeraria San Miguel Arcángel",
    "latitude_e6": -64164596,
    "longitude_e6": 10469779,
    "created_at": "2020-04-02 15:21:46",
    "updated_at": "2020-04-02 15:21:46",
    "client_id": 1,
    "address_line_2": null,
    "address_line_3": null,
    "country": null,
    "postal_code": null,
    "state": null,
    "city": null,
    "type": "legacy",
    "geofence_check": {
        "coordinates_e6": [
            10469779,
            -64164596
        ],
        "distance_in_meters": null,
        "is_valid": true
    }
}

Insertar ClientAddress

Insertar ClientAddress de Client

Método URI Cabeceras
POST /companies/{companyId}/clients/{clientId}/client-addresses Authorization
{
    "name": "required|string|max:32",
    "latitude_e6": "required_if:type,delivery|integer",
    "longitude_e6": "required_if:type,delivery|integer",
    "country": "required_with:type|string|max:80",
    "postal_code": "required_if:type,shipping|string|max:16",
    "state": "required_if:type,shipping|string|max:80",
    "city": "required_if:type,shipping|string|max:80",
    "address": "required_without:type|string|max:255",
    "address_line_1": "required_with:type|string|max:255",
    "address_line_2": "required_if:type,shipping|string|max:255",
    "address_line_3": "required_if:type,shipping|string|max:255",
    "reference": "string|max:255",
    "type": "string|in:delivery,shipping"
}

Listar ClientAddress

Listar ClientAddress de Client

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/clients/{clientId}/client-addresses Authorization

Mostrar ClientAddress

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/client-addresses/{clientAddressId} Authorization

Actualizar ClientAddress

Método URI Cabeceras
PATCH /companies/{companyId}/client-addresses/{clientAddressId} Authorization
{
    "name": "string|max:32",
    "latitude_e6": "integer",
    "longitude_e6": "integer",
    "country": "string|max:80",
    "postal_code": "string|max:16",
    "state": "string|max:80",
    "city": "string|max:80",
    "address": "string|max:255",
    "address_line_1": "required_with:type|string|max:255",
    "address_line_2": "string|max:255",
    "address_line_3": "string|max:255",
    "reference": "string|max:255",
    "type": "string|in:delivery,shipping"
}

Eliminar ClientAddress

Método URI Cabeceras
DELETE /companies/{companyId}/client-addresses/{clientAddressId} Authorization

Enlaces de ClientAddress