Supplier


Proveedores (de Goods)

Modelo Supplier

{
    "id": 1,
    "name": "Proveedor",
    "uid": "J12345678-9",
    "address": "Direccion",
    "phone": "04121234567",
    "email": "email@host.com",
    "created_at": "2020-04-02 15:21:46",
    "updated_at": "2020-04-02 15:21:46",
    "deleted_at": null,
    "branch_id": 2
}

Insertar Supplier

Insertar Supplier de Branch

Método URI Cabeceras
POST /companies/{companyId}/branches/{branchId}/suppliers Authorization
{
    "name": "required|string|max:64",
    "uid": "required|string|max:32",
    "address": "required|string|max:255",
    "phone": "required|string|max:32",
    "email": "required|email:rfc,filter|max:64"
}

Listar Supplier

Listar Supplier de Branch

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

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/suppliers Authorization

Mostrar Supplier

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/suppliers/{supplierId} Authorization

Actualizar Supplier

Método URI Cabeceras
PATCH /companies/{companyId}/suppliers/{supplierId} Authorization
{
    "name": "string|max:64",
    "uid": "string|max:32",
    "address": "string|max:255",
    "phone": "string|max:32",
    "email": "email:rfc,filter|max:64"
}

Eliminar Supplier

Método URI Cabeceras
DELETE /companies/{companyId}/suppliers/{supplierId} Authorization

Restaurar Supplier

Método URI Cabeceras
POST /companies/{companyId}/suppliers/{supplierId}/restore Authorization

Enlaces de Supplier