linkAccountingCustomer
Links a Customer to a specific imported accounting customer, chosen by the operator.
Automatic matching is a guess made from the display name. This states the answer directly,
for when it guessed wrong or found nothing. Use accountingCustomerExternals to search the
imported customers to choose from.
Business Rules
- The imported customer has to belong to the given integration, and the integration to this company.
- Neither record's values are changed. A Customer without an accounting record gets one created from the imported values.
- A Customer already linked in that integration has its link moved, as one operation. Choosing the record it is already linked to does nothing.
- A Customer whose accounting is inherited from its sales channel cannot be linked here.
Error Scenarios
- The Customer, the integration or the imported customer does not exist, or belongs elsewhere.
- The imported customer is already linked to another Customer.
- The accounting record is used by financial documents, so its link cannot change.
- The Customer holds several accounting links in this integration, so none of them can move.
Permissions Required
accounting:configure_customer_accounting.
linkAccountingCustomer(
input: LinkAccountingCustomerInput!
): LinkAccountingCustomerPayload
Arguments
linkAccountingCustomer.input ● LinkAccountingCustomerInput! non-null input common
Parameters for LinkAccountingCustomer
Type
LinkAccountingCustomerPayload object common
Autogenerated return type of LinkAccountingCustomer.