Vendor credit object
A Vendor Credit represents a transaction that reduces accounts payable to a vendor, typically due to returned goods. Each vendor credit has one or more line items specifying credited expense accounts, and zero or more allocations applying portions of the credit to bills.
Attributes
Unique identifier for the vendor credit.
Unique ID of the vendor credit in your system for linking purposes. Idempotency key.
Time when the vendor credit was received.
Line items included in this vendor credit. See Vendor Credit Line Item Object for details.
Allocations of this vendor credit to bills. See Vendor Credit Allocation Object for details.
Time when the vendor credit was created in Layer.
Time when the vendor credit was last updated in Layer.
Time when the vendor credit was deleted, if applicable.
Tags associated with the vendor credit.
Vendor Credit Line Item Object
A Vendor Credit Line Item represents an individual expense account being credited by the Vendor Credit.
Unique identifier for the vendor credit line item.
Ledger account associated with this line item.
Amount for the line item in cents.
Description or notes for the line item.
Vendor Credit Allocation Object
A Vendor Credit Allocation represents how a portion of a vendor credit is applied to a specific bill. By allocating vendor credits to bills, the amount owed to vendors can be reduced accordingly.
Unique identifier for the vendor credit allocation.
ID of the vendor credit this allocation belongs to.
ID of the bill this allocation is for.
Amount of the allocation in cents.