Skip to main content
POST
/
v0
/
business
/
{business_id}
/
vendor-credit
Create one or more Vendor Credits (max 100)
curl --request POST \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/vendor-credit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "vendor_id": "<string>",
    "number": "<string>",
    "amount": 100,
    "memo": "<string>",
    "issued_at": "2026-01-15T00:00:00Z"
  }
]
'
{
  "data": [
    {
      "business_id": "<string>",
      "vendor_id": "<string>",
      "number": "<string>",
      "amount": 123,
      "issued_at": "2023-11-07T05:31:56Z",
      "journal_entry_id": "<string>",
      "id": "<string>",
      "voided": true,
      "memo": "<string>",
      "voided_at": "2023-11-07T05:31:56Z",
      "created_by": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-user-id
string | null

Optional external entity identifier that performed the action

Path Parameters

business_id
string<biz_string>
required

Body

application/json
Maximum array length: 100
vendor_id
string<ven_string>
required

The ID of the Vendor issuing the credit

Example:

"ven_ApaM9xeQtNyVk5qpaHJbNj"

number
string
required

The number of the vendor credit. Must be unique per business.

Maximum string length: 255
Example:

"VC-001"

amount
required

The amount of the vendor credit. Must be greater than zero.

Required range: x > 0
Example:

100

memo
string | null

Description of the vendor credit

Maximum string length: 255
issued_at
string<date-time> | null

The date and time the vendor credit was issued. Defaults to now.

Example:

"2026-01-15T00:00:00Z"

Response

Successful Response

data
VendorCreditPublic · object[]
required