Skip to main content

linkAccountingVendor

Links a supplier to a specific imported accounting vendor, chosen by the operator.

Automatic matching is a guess made from the integration's configured field sources. This states the answer directly, for when it guessed wrong or found nothing. Use accountingVendorExternals to search the imported vendors to choose from.

Business Rules​

  • The provider vendor must belong to the given integration, and the integration to this company.
  • Neither record's values are changed. A supplier without an accounting vendor gets one created from the provider's values.
  • A supplier already linked in that integration has its link moved, as one operation. Choosing the record it is already linked to does nothing.
  • A provider vendor already linked to another supplier is refused; unlink that first.

Error Scenarios​

  • **NOT_FOUND**: the supplier, the integration, or the provider vendor does not exist, or belongs to another company or integration.
  • **VALIDATION**: the provider vendor is already linked to another supplier.

Permissions Required​

  • accounting:configure_supplier_accounting permission.
linkAccountingVendor(
input: LinkAccountingVendorInput!
): LinkAccountingVendorPayload

Arguments​

linkAccountingVendor.input ● LinkAccountingVendorInput! non-null input common​

Parameters for LinkAccountingVendor

Type​

LinkAccountingVendorPayload object common​

Autogenerated return type of LinkAccountingVendor.