Vendor Internal
Vendor Internal Communication API (proto file)
This document describes the gRPC API defined in the vendor_internal.proto file for vendor-related internal communication functionalities.
Dependencies
google/protobuf/empty.proto: Used for empty response messages.vendor_common.proto: Likely defines shared message types used across other services.
Services
The VendorInternalService offers gRPC methods for managing vendor information and invoices.
Functions:
LinkVendorToInvoice: Links a specified
Vendor(identified byid) to anInvoicewithin a particularcompanyId. The linkedVendoris returned in the response.UnlinkVendorFromInvoice: Removes the link between a
Vendorand anInvoicebased on provided IDs andcompanyId. Returns an empty message on success.UnlinkVendorsFromInvoices: Unlinks multiple
Vendorsfrom their respectiveInvoiceswithin a specifiedcompanyId. IDs of involvedVendorsare provided in a list. Returns an empty message on success.MatchVendors: Matches
Vendorsbased on provided criteria in aMatchVendorsRequest. Returns aVendorsResponsecontaining matchingVendorinformation.GetVendorById: Retrieves a specific
Vendorby its uniqueid.GetVendorByInternalNumber: Retrieves a
Vendorbased on itsinternalNumber.GetVendors: Retrieves a list of
Vendorsmatching provided IDs.
Messages
LinkVendorToInvoiceRequest:
id: Unique identifier of theVendorto be linked.companyId: Identifier of the company theInvoicebelongs to.oldVendorId: (Optional) ID of the previously linkedVendor(if applicable).
UnlinkVendorFromInvoiceRequest:
id: Unique identifier of theVendorto be unlinked.companyId: Identifier of the company theInvoicebelongs to.
UnlinkVendorsFromInvoicesRequest:
ids: List of IDs for theVendorsto be unlinked.companyId: Identifier of the company where the linkedInvoicesreside.
GetVendorsRequest:
ids: List of IDs for the specificVendorsto be retrieved.
GetVendorByInternalNumberRequest:
internalNumber: Internal identification number of theVendorto be retrieved.
Vendor:
(Definition likely resides in
vendor_common.proto)Represents a vendor entity with relevant attributes.
VendorsResponse:
vendors: List of matchingVendorobjects as per the request.