Unable to create custom fields for shipment order
I'm unable to create custom fields for shipment orders, even though the custom fields are set up correctly. A request to the following endpoint:
https://www.zohoapis.com/inventory/v1/settings/preferences/customfields?organization_id=${ZOHO_ORGANIZATION_ID}&entity=shipment_order
returns the custom field successfully:
- {
- code: 0,
- message: "success",
- customfields: [
- {
- customfield_id: "5416691000000146937",
- customfield_sequence: 1,
- label: "Ship method",
- display_param: "",
- related_entity_formatted: "",
- data_type: "string",
- entity: "shipment_order",
- is_mandatory: false,
- related_entity: "",
- values: "",
- is_active: true,
- index: 1,
- autocomplete_url: "",
- placeholder: "cf_ship_method",
- has_more_page: false,
- is_dependent_field: false,
- search_entity: "shipment_order",
- dependent_fields: ""
- }
- ]
- }
I've tried using customfield_id, label, index, and API name, but none of these worked. After making a request to create a shipment order, I receive a response indicating that the shipment order was successfully created, but the custom_fields array is empty.
Here’s the response:
- {
- data: {
- code: 0,
- message: "Shipment Order Created Successfully.",
- shipmentorder: {
- carrier: "manual",
- custom_fields: [],
- custom_field_hash: {},
- template_id: "5416691000000088221",
- template_name: "Standard Template",
- template_type: "standard",
- created_time: "2024-10-25T02:30:20+0530",
- last_modified_time: "2024-10-25T02:30:20+0530",
- packages: [...],
- documents: [],
- associated_packages_count: 1,
- created_by_id: "5416691000000088297",
- last_modified_by_id: "5416691000000088297"
- }
- }
- }
However, custom fields work fine for both Items and Sales Orders.