Add a Product

post/add/P

Inserts a product to the Master Data - Products table.

Securitybasic or X-PriceFx-jwt
Request
Request Body schema: application/json
required
object
sku
required
string non-empty
label
string non-empty
unitOfMeasure
string non-empty
currency
string non-empty
formulaName
string non-empty
attribute1
string non-empty
attribute2
string non-empty
attribute3
number
userGroupEdit
string non-empty
userGroupViewDetails
string non-empty
operation
required
string non-empty
Responses
200

Returns full record details.

Response Schema: application/json
object or object
Any of:
Array of objects (Product) non-empty unique

The Product object. The Type code is P.

Array (non-empty)
createDate
string <date-time>
createdBy
integer
currency
string or null <= 255 characters
formulaName
string or null <= 255 characters
image
boolean or null
label
string <= 255 characters
lastUpdateBy
integer
lastUpdateDate
string <date-time>
sku
string <= 255 characters
typedId
string
unitOfMeasure
string or null <= 255 characters
userGroupEdit
string or null <= 255 characters
userGroupViewDetails
string or null <= 255 characters
version
integer
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
(integer or null) or (string or null) or (number or null) or (string or null) or (string or null) or (string or null)
status
number
Request samples
application/json
{
  • "data": {
    • "sku": "p2398759575012555",
    • "label": "Smoked Tofu",
    • "unitOfMeasure": "ea",
    • "currency": "USD",
    • "formulaName": "PriceList",
    • "attribute1": "2",
    • "attribute2": "PG1",
    • "attribute3": 1,
    • "userGroupEdit": "PricingManagers,Administrators",
    • "userGroupViewDetails": "PricingManagers"
    },
  • "operation": "add"
}
Response samples
application/json
{
  • "response": {
    • "node": "node",
    • "startRow": 0,
    • "data": [
      • {
        • "version": 8,
        • "label": "Label One",
        • "attribute1": "23"
        },
      • {
        • "version": 11,
        • "label": "Label Two",
        • "attribute1": "33"
        },
      • {
        • "version": 8,
        • "label": "Label Three",
        • "attribute1": "56"
        },
      • {
        • "version": 13,
        • "label": "Label Four",
        • "attribute1": "20"
        },
      • {
        • "version": 0,
        • "label": "Label Five",
        • "attribute1": "123"
        },
      • {
        • "version": 0,
        • "label": "Tofu",
        • "attribute1": "2"
        }
      ],
    • "endRow": 8,
    • "totalRows": 8,
    • "status": 0
    }
}