Download OpenAPI specification:
PHPR API USING API-PLATFORM
Creates a products resource.
| id required | string products identifier |
The new products resource
| title | any |
| name | string |
| description | string |
| timestamp required | string <date-time> |
| inventoryEntries | Array of strings <iri-reference> [ items <iri-reference > ] |
| invoiceLines | Array of strings <iri-reference> [ items <iri-reference > ] |
| billLines | Array of strings <iri-reference> [ items <iri-reference > ] |
| taxCustoms | Array of strings <iri-reference> [ items <iri-reference > ] |
| productComponents | Array of strings <iri-reference> [ items <iri-reference > ] |
| sectors | Array of strings <iri-reference> [ items <iri-reference > ] |
| sku | string or null |
| version | string or null |
| price required | string |
| priceSpecial required | string |
| visibleStatus required | boolean Default: true |
| taxable required | boolean Default: true |
| country | string or null |
| place | string or null <= 255 characters |
| placePrecision | string or null <= 255 characters |
| producible required | boolean Default: true |
| newStatus required | boolean Default: true |
| type required | string <iri-reference> |
| brand | string or null <iri-reference> |
| supplier | string or null <iri-reference> |
| weight required | string |
| dimensionW required | string |
| dimensionH required | string |
| dimensionD required | string |
| time | string Assert\NotNull( message = "product.time.notNull" ) |
| cost required | string |
| additionnalProductionCost required | string |
| costSpecial required | string |
| invQtyMin required | string |
| invQtyMax required | string |
| moq required | string |
| packageOrder required | string |
| inventoryTracking required | boolean |
| rentTracking required | boolean |
| countedInInventory required | boolean |
| shippingTracking required | boolean |
| notes | string or null |
| notesInvoice | string or null |
| notesBill | string or null |
| notesRent | string or null |
| notesProduction | string or null |
| notesInventory | string or null |
| notesShipping | string or null |
object | |
| productOptions | Array of strings <iri-reference> [ items <iri-reference > ] |
| productBuyCosts | Array of strings <iri-reference> [ items <iri-reference > ] |
| productSellPrices | Array of strings <iri-reference> [ items <iri-reference > ] |
| rents | Array of strings <iri-reference> [ items <iri-reference > ] |
| rentsCharged | Array of strings <iri-reference> [ items <iri-reference > ] |
| unitType | string <iri-reference> |
| unitNb | string Default: 1 |
| supplierCode | string or null |
| clientCode | string or null |
| shCode | string or null |
| reservationPeriodicity | string or null <iri-reference> |
| periodicityPrecision required | string |
| bookable required | boolean Default: true |
| discountable required | boolean Default: true |
| salable required | boolean Default: true |
| invoiceLineType | string <iri-reference> |
| purchasable required | boolean Default: true |
| billLineType | string <iri-reference> |
| onDistribution required | boolean Default: true |
| onWebsite required | boolean Default: true |
| owningCorporation | string <iri-reference> |
| isVariableExpense required | boolean Default: true |
| isImmo required | boolean |
| isConsumable required | boolean Default: true |
| deletedAt | string or null <date-time> |
| slug required | string DB Identifier |
| customProperties | any Can contain anything (array, objects, nested objects...). |
| customData | Array of strings or null |
| createdAt | string <date-time> |
| updatedAt | string <date-time> |
| disabledAt | string or null <date-time> |
object (Collection.jsonld) | |
| upload_filename | string |
| upload_subfolder | string |
| upload_file | string |
| upload_file_link | string |
| apiTranslations | Array of strings |
| descriptionInternal | any |
| currentLocale | string or null currentLocale is a non persisted field configured during postLoad event |
| defaultLocale | string Default: "en" |
| currentTitle | string or null |
| currentDescription | string or null |
| upload_Subfolder | string |
| upload_File | string |
| upload_File_Link | string |
{- "title": null,
- "name": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "sku": "string",
- "version": "string",
- "price": "string",
- "priceSpecial": "string",
- "visibleStatus": true,
- "taxable": true,
- "country": "string",
- "place": "string",
- "placePrecision": "string",
- "producible": true,
- "newStatus": true,
- "weight": "string",
- "dimensionW": "string",
- "dimensionH": "string",
- "dimensionD": "string",
- "time": "string",
- "cost": "string",
- "additionnalProductionCost": "string",
- "costSpecial": "string",
- "invQtyMin": "string",
- "invQtyMax": "string",
- "moq": "string",
- "packageOrder": "string",
- "inventoryTracking": true,
- "rentTracking": true,
- "countedInInventory": true,
- "shippingTracking": true,
- "notes": "string",
- "notesInvoice": "string",
- "notesBill": "string",
- "notesRent": "string",
- "notesProduction": "string",
- "notesInventory": "string",
- "notesShipping": "string",
- "translations": {
- "property1": null,
- "property2": null
}, - "unitNb": 1,
- "supplierCode": "string",
- "clientCode": "string",
- "shCode": "string",
- "periodicityPrecision": "string",
- "bookable": true,
- "discountable": true,
- "salable": true,
- "purchasable": true,
- "onDistribution": true,
- "onWebsite": true,
- "isVariableExpense": true,
- "isImmo": true,
- "isConsumable": true,
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "customProperties": null,
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "entityFiles": { },
- "upload_filename": "string",
- "upload_subfolder": "string",
- "upload_file": "string",
- "upload_file_link": "string",
- "apiTranslations": [
- "string"
], - "descriptionInternal": null,
- "currentLocale": "string",
- "defaultLocale": "en",
- "currentTitle": "string",
- "currentDescription": "string",
- "upload_Subfolder": "string",
- "upload_File": "string",
- "upload_File_Link": "string"
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "name": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "sku": "string",
- "version": "string",
- "price": "string",
- "priceSpecial": "string",
- "visibleStatus": true,
- "taxable": true,
- "country": "string",
- "place": "string",
- "placePrecision": "string",
- "producible": true,
- "newStatus": true,
- "type": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "parent": { },
- "shortcode": "AT",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "root": 0,
- "lvl": 0,
- "lft": 0,
- "rgt": 0,
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "leaf": true,
- "leafApi": true,
- "levelApi": 0,
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "brand": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "AB",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "supplier": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "F",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "toString": 0,
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "weight": "string",
- "dimensionW": "string",
- "dimensionH": "string",
- "dimensionD": "string",
- "time": "string",
- "cost": "string",
- "additionnalProductionCost": "string",
- "costSpecial": "string",
- "invQtyMin": "string",
- "invQtyMax": "string",
- "moq": "string",
- "packageOrder": "string",
- "inventoryTracking": true,
- "rentTracking": true,
- "countedInInventory": true,
- "shippingTracking": true,
- "notes": "string",
- "notesInvoice": "string",
- "notesBill": "string",
- "notesRent": "string",
- "notesProduction": "string",
- "notesInventory": "string",
- "notesShipping": "string",
- "unitType": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "AUT",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "unitNb": 1,
- "supplierCode": "string",
- "clientCode": "string",
- "shCode": "string",
- "reservationPeriodicity": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "R",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "periodicityPrecision": "string",
- "bookable": true,
- "discountable": true,
- "salable": true,
- "invoiceLineType": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "ILT",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "purchasable": true,
- "billLineType": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "BLT",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "number": "string",
- "priority": 0,
- "color": "string",
- "icon": "string",
- "notes": "string",
- "parameterTitle": "string",
- "toString": "string",
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "onDistribution": true,
- "onWebsite": true,
- "owningCorporation": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "CO",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "toString": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "isVariableExpense": true,
- "isImmo": true,
- "isConsumable": true,
- "shortcode": "A",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "toString": "string",
- "billLinesListing": "string",
- "customPropertiesListing": "string",
- "invoiceLinesListing": "string",
- "rentsListing": "string",
- "rentsChargedListing": "string",
- "inventoryEntriesListing": "string",
- "applicableCost": 0,
- "translationTitlePropertyName": "string",
- "applicablePrice": 0,
- "inStock": 0,
- "productStockProgressBar": 0,
- "productStockRatio": 0,
- "productStockPercentage": 0,
- "correction": 0,
- "lastInventoryEntry": "2019-08-24T14:15:22Z",
- "productOptionsListing": "string",
- "subProductOptionsListing": "string",
- "productComponentsListing": "string",
- "componentProductsListing": "string",
- "translationsListing": "string",
- "buyableBasePrice": 0,
- "discount": 0,
- "maxProductionCapacity": 0,
- "applicableSupplierCode": "string",
- "applicableClientCode": "string",
- "consumable": true,
- "translationDescriptionPropertyName": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}