Internal identifier that specifies the Document Type used for the contact party of the invoice within B2Brouter. This code determines the format in which the document is exchanged with the contact entity.
-
If the contact already exists, this value will overwrite the existing document_type_code.
-
If the parameter is not provided, the system assigns the document_type_code based on the following priority:
- If the contact already exists, its current
document_type_code is used.
- If the contact does not exist:
- If the contact is found in the B2Brouter directory, the code defined there is used.
- Otherwise, the default document type defined in the account settings is applied.
Valid document type codes can be retrieved from the Document Types endpoint in the Code Lists section:
/document_types
If the specified document_type_code is invalid or incompatible with the selected transport_type_code, the system will apply the default transport_type_code and document_type_code.