applyAccountingVendorDefaults
Fills a supplier's accounting vendor from the integration's configured defaults.
Writes the same values accountingVendorDefaults previews. Pass fields to apply only
some of them, which is how a single field can be reset to its default without disturbing
the others.
Business Rules
- Existing values on the accounting vendor are overwritten by the defaults that apply.
- The accounting vendor is created if the supplier does not have one yet.
- A field whose configured source is blank or no longer valid is skipped.
- Applying no fields is not an error; it simply writes nothing.
Error Scenarios
- **
NOT_FOUND**: the supplier or the integration does not exist for this company.
Permissions Required
accounting:configure_supplier_accountingpermission.
applyAccountingVendorDefaults(
input: ApplyAccountingVendorDefaultsInput!
): ApplyAccountingVendorDefaultsPayload
Arguments
applyAccountingVendorDefaults.input ● ApplyAccountingVendorDefaultsInput! non-null input common
Parameters for ApplyAccountingVendorDefaults
Type
ApplyAccountingVendorDefaultsPayload object common
Autogenerated return type of ApplyAccountingVendorDefaults.