Webhook
How to use Webhook in Integrations & API Docs: access, working steps, fields, related records and troubleshooting.
Purpose and access
Use the API documentation at api.nexcommand.ai, obtain the required authorized credentials and use the deployment-specific service URLs. SaaS tenants and on-premises installations must retain their own endpoints and access boundaries.
This page is a record page in System Admin → Integrations & API Docs. Use the link above to open the configured destination; permissions are checked by the destination service.
Before you start
Prepare the required information: DocType, Request URL, Request Method.
Confirm the company, party, dates, units and source references that apply. Select existing links carefully and check for an existing record before creating a duplicate.
Working steps
- Open Webhook from System Admin → Integrations & API Docs, or use ERP Search.
- Filter the list and open the relevant record. To add a record, use Add/New when your role provides that action.
- Complete the editable fields described below. Required fields and validation conditions must be satisfied; read-only values are set by the system or their source records.
- Add the required child rows. Review each row’s identifiers, linked records and values, using the child-table field reference below.
- Save the record and address validation messages. Reload and verify the saved values and relationships.
- Use any additional workflow actions only when the record and your role provide them. Saving this record does not automatically complete a related transaction or external action.
Field reference
These fields come from the installed ERP definition. Hidden fields and password inputs are omitted. Additional conditions, custom scripts and workflow rules can make a field required or read-only in a particular context.
| Field | Type / behavior | How to use it |
|---|---|---|
DocTypewebhook_doctype | Link Required | Choose an existing linked record. Check its company and ownership; typing a label alone does not create a new relationship. Linked record: DocType |
Doc Eventwebhook_docevent | Select Optional | Choose one of the configured list values. Status fields may be controlled by the record workflow.Available choices
|
Enabledenabled | Check Optional | Enable or disable the named option only when it matches the intended record behavior. |
Conditioncondition | Small Text Optional | The webhook will be triggered if this expression is true |
Request URLrequest_url | Small Text Required | Provide concise contextual information relevant to the record. Avoid unrelated personal or confidential data. |
Is Dynamic URL?is_dynamic_url | Check Optional | On checking this option, URL will be treated like a jinja template string |
Request Timeouttimeout | Int Optional | The number of seconds until the request expires |
Background Jobs Queuebackground_jobs_queue | Autocomplete Optional | Complete the value according to the field label and the record’s validation rules. |
Request Methodrequest_method | Select Required | Choose one of the configured list values. Status fields may be controlled by the record workflow.Available choices
|
Request Structurerequest_structure | Select Optional | Choose one of the configured list values. Status fields may be controlled by the record workflow.Available choices
|
Enable Securityenable_security | Check Optional | Enable or disable the named option only when it matches the intended record behavior. |
Headerswebhook_headers | Table Optional | Add the relevant child rows and review required columns, quantities and references before saving. Linked record: Webhook Header |
Datawebhook_data | Table Optional | Add the relevant child rows and review required columns, quantities and references before saving. Linked record: Webhook Data |
JSON Request Bodywebhook_json | Code Optional | To add dynamic values from the document, use jinja tags like { "id": "{{ doc.name }}" } |
Child tables
Headers — child-row fields
| Field | Type / behavior | How to use it |
|---|---|---|
Keykey | Small Text Optional | Provide concise contextual information relevant to the record. Avoid unrelated personal or confidential data. |
Valuevalue | Small Text Optional | Provide concise contextual information relevant to the record. Avoid unrelated personal or confidential data. |
Data — child-row fields
| Field | Type / behavior | How to use it |
|---|---|---|
Fieldnamefieldname | Select Required | Choose one of the configured list values. Status fields may be controlled by the record workflow. |
Keykey | Data Required | Enter the identifier or short text requested by the label. Preserve external reference numbers accurately. |
Troubleshooting
- Not permitted: verify the account, role and source-document permission. Do not share an administrator login.
- Missing record or address: inspect the relevant Link or Dynamic Link fields; a matching title alone does not establish a relationship.
- Cannot save or change status: review required fields, read-only values, document status and the configured approval transition.
- Unexpected report or portal result: review company/date filters, source-document submission and the approved party or Employee link.