document.write("
[
{
"action": {
"capture_dollars_within": 0.0,
"capture_enabled": true,
"capture_includes": "shipped_shipments",
"capture_nontax_charges": "first",
"prorate_discounts": true,
"refund_enabled": false,
"refund_handling_charges": false,
"refund_includes": "created_returns",
"refund_other_charges": true,
"refund_payment_charges": true,
"refund_shipping_charges": false,
"refund_tax_charges": true
},
"calculated_capture_amount": 30.0,
"capture": {
"amount": 30.0,
"available": 27.0,
"captured": 27.0,
"orderpayments": [
{
"available": 27.0,
"captured": 27.0,
"id": 2
}
]
},
"charges": [
{
"amount": -3.0,
"calculated_capture_amount": 0.0,
"charge_id": 310,
"descrip": "New Price Group",
"tax": 0.0,
"type": "DISCOUNT"
},
{
"amount": 0.0,
"calculated_capture_amount": 0.0,
"charge_id": 314,
"descrip": "Sales Tax",
"tax": 0.0,
"type": "TAX"
}
],
"ending_orderpayments": [
{
"amount": 27.0,
"available": 27.0,
"id": 2,
"pay_id": 116,
"refnum": "4s963r36",
"type": "5"
}
],
"items": [
{
"calculated_capture_amount": 27.0,
"code": "shirt",
"item_discount": 0.0,
"name": "Shirt",
"prorated_order_discount": -3.0,
"quantity": 1,
"sku": "",
"subtotal": 30.0,
"tax": 0.0,
"total": 27.0
}
],
"log_type": "payment",
"net_capt": 0.0,
"operation_type": "capture",
"starting_orderpayments": [
{
"amount": 27.0,
"available": 27.0,
"id": 2,
"pay_id": 116,
"refnum": "4s963r36",
"type": "3"
}
],
"workflow_id": 5,
"workflow_name": "Capture Funds On Shipment Shipped"
},
{
"action": {
"capture_dollars_within": 0.0,
"capture_enabled": false,
"capture_includes": "shipped_shipments",
"capture_nontax_charges": "first",
"prorate_discounts": true,
"refund_enabled": true,
"refund_handling_charges": false,
"refund_includes": "received_returns",
"refund_other_charges": true,
"refund_payment_charges": true,
"refund_shipping_charges": false,
"refund_tax_charges": true
},
"calculated_capture_amount": 0.0,
"charges": [
{
"amount": 0.0,
"calculated_capture_amount": 0.0,
"charge_id": 314,
"descrip": "Sales Tax",
"tax": 0.0,
"type": "TAX"
}
],
"ending_orderpayments": [
{
"amount": 27.0,
"available": 0.0,
"id": 2,
"pay_id": 116,
"refnum": "4s963r36",
"type": "5"
},
{
"amount": 27.0,
"available": 27.0,
"id": 3,
"pay_id": 116,
"refnum": "",
"type": "6"
}
],
"items": [
{
"calculated_capture_amount": 0.0,
"code": "shirt",
"item_discount": 0.0,
"name": "Shirt",
"prorated_order_discount": -3.0,
"quantity": 1,
"sku": "",
"subtotal": 30.0,
"tax": 0.0,
"total": 27.0
}
],
"log_type": "payment",
"net_capt": 27.0,
"operation_type": "refund",
"refund": {
"amount": 27.0,
"available": 27.0,
"orderpayments": [
{
"available": 27.0,
"id": 2,
"refunded": 27.0
}
],
"refunded": 27.0
},
"starting_orderpayments": [
{
"amount": 27.0,
"available": 27.0,
"id": 2,
"pay_id": 116,
"refnum": "4s963r36",
"type": "5"
}
],
"workflow_id": 6,
"workflow_name": "Refund Items"
}
]
payment-action-audit-log - Snippet hosted by \"Cacher\"
");