api-dynamic-item
API to import a list items to CDP system
Import dynamic Item
POST https://api.cdp.asia/be/item
Query Parameters
token
string
Private key API for each Portal / Client (Request to help desk admin CDP to get token)
item_type
string
item types has defined on cdp admin tool. such as: product, shop,...
scope
string
upsert is **using fixed value
portal_id
string
Portal ID
Request Body
attribute_5
object
The attributes type object.
attribute_4
array
some attributes type array : array string, array number, array date-time
attribute_3
boolean
The attributes type boolean true or
attribute_2
number
The attributes type number
attribute_1
string
The attributes type string
name
string
item name
id
string
item id
{
"msg": "success. list size:1",
"status": true,
"data": {
"lost_time": "48ms",
"version": "20200227"
},
"code": 200
}{
"msg": "itemType is not found. portal_id:561236459, item_type:nhatvd1",
"status": false,
"code": 0
}A - Attributes input parameters
name
data
attribute 1
string
"string value"
attribute 2
number
10000 or 10000.9 or 0.1
attribute 3
boolean
true or false
attribute 4
datetime
"2020-03-27 05:58:10" . (yyyy-MM-dd HH:mm:)
attribute 5.1
array_string
["Thor","Caption american", "Iron man"]
attribute 5.2
array_number
[1,2,3]
attribute 5.3
array_
["2020-03-27 05:58:10","2020-03-27 05:58:11"]
attribute 6
object
{ "key_string":"xxxx", "key_number":10000, "key_datetime":"2020-03-17 00:00:00", "key_boolean":true }
B - Sample import a dynamic item type
1. API request
2. Data
Last updated
Was this helpful?