OrderedGood


Representa a un ítem solicitado en una Orden.

Se trata de un snapshot de un BranchGood al momento de solicitar la Orden.

Modelo OrderedGood

{
    "id": 1,
    "quantity": 1,
    "name": "Chocolate caliente",
    "base_price_e2": 450000,
    "total_price_e2": 450000,
    "provider_fee_e2": 0,
    "short_details": "n/a",
    "details": "Asdfghjklñ",
    "notes": null,
    "picture_urls": [
        "https://ondemand-api.manzanares.com.ve/storage/companies/46/good/good_2_0_1550073018.jpeg"
    ],
    "good_stock": null,
    "order_id": 1,
    "good_id": 2,
    "client_id": 1
}

Insertar OrderedGood

Insertar OrderedGood de Order

Método URI Cabeceras
POST /companies/{companyId}/orders/{orderId}/ordered-goods Authorization
{
    "good_id": "required|integer|exists:goods,id",
    "quantity": "required|integer|min:1",
    "notes": "string|max:255",
    "properties": [
        {
            "property_id": "required|integer",
            "value": "required|string"
        }
    ]
}

Listar OrderedGood

Listar OrderedGood de Order

Display a listing of the resource.

Método URI Cabeceras
GET /companies/{companyId}/orders/{orderId}/ordered-goods Authorization

Eliminar OrderedGood

Eliminar OrderedGood de Order

Método URI Cabeceras
DELETE /companies/{companyId}/orders/{orderId}/ordered-goods/{orderedGoodId} Authorization

Enlaces de OrderedGood