Version: 202506
Create supplier
POST/openapi/2025-06/suppliers
Allows users to add a new supplier to the system.
Request
- application/json
- Body
- Example
Bodyrequired
supplier objectrequired
Object containing supplier details
titlestringrequired
Supplier's name, must be unique within the store
urlstring
URL associated with the supplier
{
"supplier": {
"title": "string",
"url": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
supplier object
Object containing supplier details
iduint64
Supplier ID
titlestring
Name of the supplier
urlstring
URL associated with the supplier
created_atstring
Timestamp when the supplier was created, in ISO-8601 format
updated_atstring
Timestamp when the supplier was last updated, in ISO-8601 format
{
"code": "string",
"message": "string",
"data": {
"supplier": {
"id": 0,
"title": "string",
"url": "string",
"created_at": "string",
"updated_at": "string"
}
}
}