accountingApplyCustomerDefaults
Fill a Customer's internal accounting values from the integration's configured defaults.
Writes the same values accountingCustomerDefaults previews. Pass fields to apply only
some of them, which is how a single field is reset to its default without disturbing the
others.
Business Rules
- Existing values are overwritten by the defaults that apply.
- The accounting record is created if the Customer does not have one yet.
- A field whose configured source is blank, empty on the Customer, or no longer valid is skipped, so its stored value is kept.
- Applying no fields is not an error; it writes nothing.
- A Customer whose accounting is inherited from its sales channel cannot be changed here.
Error Scenarios
- The Customer or the integration is missing, or belongs to another company.
- The Customer inherits its accounting from its sales channel.
Permissions Required
accounting:configure_customer_accounting.
accountingApplyCustomerDefaults(
input: ApplyAccountingCustomerDefaultsInput!
): ApplyAccountingCustomerDefaultsPayload
Arguments
accountingApplyCustomerDefaults.input ● ApplyAccountingCustomerDefaultsInput! non-null input common
Parameters for ApplyAccountingCustomerDefaults
Type
ApplyAccountingCustomerDefaultsPayload object common
Autogenerated return type of ApplyAccountingCustomerDefaults.