Body
Required
-
Field scope
Values are
allorselected. Default value isall. -
Field type
Values are
string,text,image,file, oroptions. Default value isstring. -
Help text
-
Icon
-
Label
-
Name
-
Namespace
-
Options
-
Resource
Values are
any,dropship_provider,dropshipment,dropshipment_item,reseller,purchase,purchase_item,sale,sale_item,sale_return,sale_return_item,variant, orvendor. Default value isany. -
Show in reseller portal
-
Show in return portal
Default value is
false. -
Show in vendor portal
Default value is
false.
POST
/custom-fields.json
curl \
--request POST 'http://api.example.com/v1/custom-fields.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"fieldScope":"all","fieldType":"string","helpText":"string","icon":"string","label":"string","name":"string","namespace":"string","options":["string"],"resource":"any","showInResellerPortal":true,"showInReturnPortal":false,"showInVendorPortal":false}'
Request examples
{
"fieldScope": "all",
"fieldType": "string",
"helpText": "string",
"icon": "string",
"label": "string",
"name": "string",
"namespace": "string",
"options": [
"string"
],
"resource": "any",
"showInResellerPortal": true,
"showInReturnPortal": false,
"showInVendorPortal": false
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"fieldScope": "all",
"fieldType": "string",
"helpText": "string",
"icon": "string",
"id": 42,
"label": "string",
"name": "string",
"namespace": "string",
"options": [
"string"
],
"resource": "any",
"showInResellerPortal": true,
"showInReturnPortal": false,
"showInVendorPortal": false,
"updatedAt": "2025-05-04T09:42:00Z"
}