Skip to main content
PATCH
/
v0
/
business
/
{business_id}
/
transactions
Update Transactions for a Business
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "transaction_id": "<string>",
    "type": "business",
    "reviewed": true
  }
]
'
[
  {
    "external_id": "1234567890",
    "amount": 123,
    "datetime": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "posted": true,
    "type": "business",
    "reviewed": true,
    "id": "<string>",
    "external_account_id": "<string>",
    "metadata_": {},
    "invoice_payments": null,
    "refund_payments": null,
    "bill_payments": null
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

Body

application/json
transaction_id
string<txn_string>
required

The ID of the Transaction to update

Example:

"txn_WQMDNUHpBThYSNh4AprDBo"

type
enum<string> | null

The updated type of the Transaction

Available options:
business,
personal
Example:

"business"

reviewed
boolean | null

Whether the Transaction has been reviewed

Response

Successful Response

external_id
string | null
required
Maximum string length: 255
Example:

"1234567890"

amount
number
required
Example:

520.56

datetime
string<date-time>
required
description
string
required

The description of the Transaction

Maximum string length: 512
Example:

"Payment from Acme Corp"

posted
boolean
required
type
enum<string>
required

The type of the Transaction

Available options:
business,
personal
Examples:

"business"

"personal"

reviewed
boolean
required
id
string<txn_string>
required

The ID of the Transaction

Example:

"txn_WQMDNUHpBThYSNh4AprDBo"

external_account_id
string<eac_string>
required

The ID of the External Account associated with the Transaction

Example:

"eac_WQMDNUHpBThYSNh4AprDBo"

metadata_
Metadata · object
invoice_payments
InvoicePaymentPublic · object[] | null

The invoice payments associated with the Transaction

Example:

null

refund_payments
RefundPaymentPublic · object[] | null

The refund payments associated with the Transaction

Example:

null

bill_payments
BillPaymentPublic · object[] | null

The bill payments associated with the Transaction

Example:

null