Propiedad, Característica o Variante para asignar a un Good.
{
"id": 1,
"name": "Topping líquido.",
"type": 256,
"disabled": false,
"created_at": "2019-02-13 15:39:39",
"updated_at": "2020-08-06 03:07:02",
"property_group_id": null,
"branch_group_id": 2,
"branch_id": 0,
"property_options": [
{
"id": 558,
"name": "Fresa",
"price_e2": 200000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-03-03 20:04:29",
"property_id": 1
},
{
"id": 561,
"name": "Chocolate",
"price_e2": 150000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-18 19:59:31",
"property_id": 1
},
{
"id": 559,
"name": "Arequipe",
"price_e2": 130000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-18 19:59:31",
"property_id": 1
},
{
"id": 560,
"name": "Leche condensada",
"price_e2": 200000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-19 16:58:48",
"property_id": 1
}
],
"property_range": null,
"property_text": null
}
Método | URI | Cabeceras |
---|---|---|
POST | /companies/{companyId}/properties | Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Método | URI | Cabeceras |
---|---|---|
POST | /companies/{companyId}/branches/{branchId}/properties | Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Método | URI | Cabeceras |
---|---|---|
POST | /companies/{companyId}/branch-groups/{branchGroupId}/properties | Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/properties | N/A |
Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/goods/{goodId}/properties | Authorization |
Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/branches/{branchId}/properties | Authorization |
Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/branch-groups/{branchGroupId}/properties | Authorization |
Soporta: Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/properties/{propertyId} | N/A |
Método | URI | Cabeceras |
---|---|---|
PATCH | /companies/{companyId}/properties/{propertyId} | Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Método | URI | Cabeceras |
---|---|---|
POST | /companies/{companyId}/goods/{goodId}/properties | Authorization |
[
{
"property_id": "required|integer",
"options": "required|integer|min:1",
"display_name": "required|string|max:64",
"disabled": "boolean"
}
]
Método | URI | Cabeceras |
---|---|---|
DELETE | /companies/{companyId}/properties/{propertyId} | Authorization |
company
BelongsTo CompanygoodProperties
HasMany GoodPropertygoods
HasMany Goodgroup
BelongsTo PropertyGrouporderedGoodProperties
HasMany OrderedGoodPropertypropertyOptions
HasMany PropertyOptionpropertyRange
HasOne PropertyRangepropertyText
HasOne PropertyTextrequirements
HasMany ServiceSkill