Skip to main content
POST
Create vendor credit

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business to create the vendor credit for.

Body

application/json
received_at
string<date-time>
required

Timestamp when the vendor credit was received.

line_items
object[]
required

List of line items for this vendor credit.

external_id
string

External identifier for the vendor credit.

vendor_id
string<uuid>

UUID of the vendor this credit is associated with.

vendor_external_id
string

External identifier of the vendor this credit is associated with.

allocations
object[]

List of allocations for this vendor credit.

tags
object[]

List of tags associated with this vendor credit.

memo
string | null

Memo for any text you would like to associate with the vendor credit (for example, to display to end users).

metadata
object | null

Arbitrary custom metadata in JSON format with a size limit of 1KB.

Example:
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the vendor credit. Can be used to filter when listing vendor credits.

Response

Existing vendor credit found or updated.

data
object
required