Productive icon

Productive

Interact with the Productive API

Actions508

Document Types → Create a document_type

AI-generated

Summary

Create a new document type in the Productive system by specifying its name, locale, and the required subsidiary ID.

Inputs

  • Name — The name of the document type to create.
  • Locale — The locale string for the document type.
  • Subsidiary ID (required) — The ID of the subsidiary associated with the document type; this is required.

Output shape

a single record representing the created document type

The output contains the details of the created document type. If multiple items are processed, returns a list of created document type records. Errors are returned in the error envelope if 'Continue On Fail' is enabled.

Examples

Example 1: Create a document type named 'Invoice' for the subsidiary with ID 3 and locale 'en-US'

Set Name to 'Invoice', Locale to 'en-US', and Subsidiary ID to 3.

Discussion