curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/refund-payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"refund_id": "<string>",
"transaction_id": "<string>",
"payment_amount": 1
}
'{
"data": {
"business_id": "<string>",
"external_id": "<string>",
"amount": 123,
"method": "cash",
"refunded_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"amount_paid": 0,
"memo": "<string>",
"processor": "<string>",
"is_return": false,
"refund_credit": false,
"status": "pending",
"payments": [
{
"amount": 123,
"id": "<string>",
"transaction_id": "<string>"
}
],
"refund_invoices": [
{
"amount": 123,
"id": "<string>",
"invoice_id": "<string>",
"invoice_line_id": "inl_WQMDNUHpBThYSNh4AprDBo",
"external_id": "<string>",
"memo": "<string>"
}
]
}
}Manually apply an existing transaction as payment of a refund.
curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/refund-payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"refund_id": "<string>",
"transaction_id": "<string>",
"payment_amount": 1
}
'{
"data": {
"business_id": "<string>",
"external_id": "<string>",
"amount": 123,
"method": "cash",
"refunded_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"amount_paid": 0,
"memo": "<string>",
"processor": "<string>",
"is_return": false,
"refund_credit": false,
"status": "pending",
"payments": [
{
"amount": 123,
"id": "<string>",
"transaction_id": "<string>"
}
],
"refund_invoices": [
{
"amount": 123,
"id": "<string>",
"invoice_id": "<string>",
"invoice_line_id": "inl_WQMDNUHpBThYSNh4AprDBo",
"external_id": "<string>",
"memo": "<string>"
}
]
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Optional external entity identifier that performed the action
Successful Response
Show child attributes
The ID of the Business that the refund is associated with
The external ID of the refund
255The amount of the refund
Method of refund
cash, check, credit_card, ach, credit_balance, other The date and time the refund was created
The ID of the refund
The amount of the refund that has been paid
Description of the refund
255The entity that processed the refund
255Whether the refund is a return
Whether the refund is a credit (not a cash refund)
The status of the refund
pending, completed, voided The payments for this refund
The invoices refunded
Show child attributes
The amount of the refund
The ID of the invoice
The ID of the invoice that the refund invoice is associated with
The ID of the invoice line that the refund invoice is associated with
"inl_WQMDNUHpBThYSNh4AprDBo"
The external ID of the refund
255Description of the refund
255