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": "<string>",
"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": [
{
"invoice_id": "<string>",
"transaction_id": "<string>",
"payment_id": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"payment_amount": 123,
"id": "<string>",
"invoice": {
"business_id": "<string>",
"number": "<string>",
"description": "<string>",
"total_amount": 123,
"source": "manual",
"due_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z",
"status": "open",
"id": "<string>",
"customer_id": "<string>",
"total_paid": 0,
"voided_at": "2023-11-07T05:31:56Z",
"credit_amount": 123,
"metadata_": {},
"lines": [
{
"description": "<string>",
"ledger_id": "ldg_WQMDNUHpBThYSNh4AprDBo",
"unit_price": 123,
"quantity": 123,
"id": "<string>",
"invoice_id": "<string>",
"discount_amount": 123,
"discount_rate": 123,
"tax_amount": 123,
"tax_rate": 123,
"is_prepayment": true,
"metadata_": {}
}
],
"payments": [
"<unknown>"
]
}
}
],
"refund_payments": [
{
"amount": 123,
"id": "<string>",
"transaction_id": "<string>"
}
],
"bill_payments": [
{
"bill_id": "<string>",
"transaction_id": "<string>",
"payment_id": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"payment_amount": 123,
"id": "<string>",
"bill": {
"business_id": "<string>",
"vendor_id": "<string>",
"number": "<string>",
"description": "<string>",
"total_amount": 123,
"total_paid": 123,
"due_at": "2023-11-07T05:31:56Z",
"issued_at": "2023-11-07T05:31:56Z",
"status": "open",
"id": "<string>",
"voided_at": "2023-11-07T05:31:56Z",
"metadata_": {},
"lines": [
{
"description": "<string>",
"number": "<string>",
"ledger_id": "ldg_WQMDNUHpBThYSNh4AprDBo",
"amount": 123,
"id": "<string>",
"bill_id": "<string>",
"metadata_": {}
}
],
"payments": [
"<unknown>"
]
}
}
]
}
]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": "<string>",
"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": [
{
"invoice_id": "<string>",
"transaction_id": "<string>",
"payment_id": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"payment_amount": 123,
"id": "<string>",
"invoice": {
"business_id": "<string>",
"number": "<string>",
"description": "<string>",
"total_amount": 123,
"source": "manual",
"due_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z",
"status": "open",
"id": "<string>",
"customer_id": "<string>",
"total_paid": 0,
"voided_at": "2023-11-07T05:31:56Z",
"credit_amount": 123,
"metadata_": {},
"lines": [
{
"description": "<string>",
"ledger_id": "ldg_WQMDNUHpBThYSNh4AprDBo",
"unit_price": 123,
"quantity": 123,
"id": "<string>",
"invoice_id": "<string>",
"discount_amount": 123,
"discount_rate": 123,
"tax_amount": 123,
"tax_rate": 123,
"is_prepayment": true,
"metadata_": {}
}
],
"payments": [
"<unknown>"
]
}
}
],
"refund_payments": [
{
"amount": 123,
"id": "<string>",
"transaction_id": "<string>"
}
],
"bill_payments": [
{
"bill_id": "<string>",
"transaction_id": "<string>",
"payment_id": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"payment_amount": 123,
"id": "<string>",
"bill": {
"business_id": "<string>",
"vendor_id": "<string>",
"number": "<string>",
"description": "<string>",
"total_amount": 123,
"total_paid": 123,
"due_at": "2023-11-07T05:31:56Z",
"issued_at": "2023-11-07T05:31:56Z",
"status": "open",
"id": "<string>",
"voided_at": "2023-11-07T05:31:56Z",
"metadata_": {},
"lines": [
{
"description": "<string>",
"number": "<string>",
"ledger_id": "ldg_WQMDNUHpBThYSNh4AprDBo",
"amount": 123,
"id": "<string>",
"bill_id": "<string>",
"metadata_": {}
}
],
"payments": [
"<unknown>"
]
}
}
]
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
255512The type of the Transaction
business, personal The ID of the Transaction
The ID of the External Account associated with the Transaction
The invoice payments associated with the Transaction
Show child attributes
The ID of the invoice that the payment is associated with
The ID of the transaction that the payment is associated with
The external identifier of the payment
255The date and time the payment was made
The amount of the payment
The ID of the invoice payment
The invoice that the payment is associated with
Show child attributes
The ID of the Business that the invoice is associated with
The number of the invoice. Must be unique across all invoices for a business.
255The description of the invoice
512The amount of the invoice
The source of the invoice
manual, stripe The due date of the invoice
The date the invoice was sent
The status of the invoice
open, paid, uncollectible, voided, refunded, partially_refunded The ID of the invoice
The ID of the Customer that the invoice is associated with
The amount of the invoice that has been paid
The date the invoice was voided
The amount to issue as a credit in the invoice
The lines of the invoice
Show child attributes
The description of the line item
512The ID of the ledger that the line item is associated with
"ldg_WQMDNUHpBThYSNh4AprDBo"
The unit price of the line item
The quantity of the line item
The ID of the invoice line
The ID of the invoice that the line item is associated with
The discount amount of the line item
The discount rate of the line item
The tax amount of the line item
The tax rate of the line item
Whether the line item is a prepayment
The payments of the invoice
The refund payments associated with the Transaction
The bill payments associated with the Transaction
Show child attributes
The ID of the bill that the payment is associated with
The ID of the transaction that the payment is associated with
The external identifier of the payment
255The date and time the payment was made
The amount of the payment
The ID of the bill payment
The bill that the payment is associated with
Show child attributes
The ID of the Business that the bill is associated with
The ID of the Vendor that the bill is associated with
The id or number of the bill
255The description of the bill
512The amount of the bill
The amount of the bill that has been paid
The due date of the bill
The date the bill was sent
The status of the bill
open, paid, voided The ID of the bill
The date the bill was voided
The lines of the bill
Show child attributes
The description of the line item
512The id or number of the bill line item
255The ID of the ledger that the line item is associated with
"ldg_WQMDNUHpBThYSNh4AprDBo"
The amount of the line item
The ID of the bill line
The ID of the bill that the line item is associated with
The payments associated with the bill