Delete ERP Object
# Not recommended to continue using the offline interface!!!
# Description
Delete an ERP object.
# Request Specification
HTTP Method: POST + application/json
Request Path: https://${cloud domain}/cgi/crm/erp/data?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| corpAccessToken | String | Yes | Enterprise app access token |
| corpId | String | Yes | Open platform company account |
| data | map | Yes | Request body |
| data.object_data_id | String | Yes | ID of the data to be deleted |
| data.dataObjectApiName | String | Yes | API name of the ERP object to delete |
# Request Example
{
"corpAccessToken": {{corpAccessToken}},
"corpId": {{corpId}},
"currentOpenUserId": {{openUserId}},
"data": {
"object_data_id":"5eaa99038aefc2000137193e",
"dataObjectApiName":"ErpStockObj"
}
}
# Response Parameters
| Parameter | Required | Description |
|---|---|---|
| errorCode | Yes | Response code |
| errorMessage | Yes | Description of the response code |
| data | Yes | Response data |
# Response Example
{
"errorCode":0,
"errorMessage":"success",
"data": {}
}
# Notes
- Do not use the
errorMessagefield for logical judgments as it may change.