Hey @Mike_Z,
There is no data pinned to the input so I can’t test it but I can see what the issue is and it is what I was expecting. So the JSON field expects the data to be a JSON object but it currently contains a string that looks like JSON.
Try setting the body to something like
{{
{
"items": $json["lines"],
"taxes": [{
"tax_amount": $('Rename Keys').item.json["data"]["total_tax"],
"charge_type": "Actual",
"cost_center": "Main - SHM",
"description": "Local Sales Tax",
"account_head": "2310 - NYS Sales Tax - SHM"
}, {
"tax_amount": $('Rename Keys').item.json["data"]["total_shipping_price_set"]["shop_money"]["amount"],
"charge_type": "Actual",
"cost_center": "Main - SHM",
"description": "Amount Collected from Customer for Shipping (pos)",
"account_head": "4115 - Shipping Sales - SHM"
}],
"total": $('Input').item.json["body"]["total_price"],
"net_total": $('Input').item.json["body"]["total_price"],
"base_net_total": $('Input').item.json["body"]["total_price"],
"base_total": $('Input').item.json["body"]["total_price"],
"is_pos": 1,
"company": "Safe Haven Music",
"currency": "USD",
"customer": "$('Edit Fields').item.json["customer_first_name"] + " " +$('Edit Fields').item.json["customer_last_name"]",
"debit_to": "1310 - Acct Receivable - SHM",
"due_date": $('Input').item.json["body"]["created_at"].substring(0,10),
"payments": [{
"type": "Bank",
"amount": $('Input').item.json["body"]["total_price"]-$('Input').item.json["body"]["total_outstanding"],
"account": "1260 - Shopify Payments - SHM",
"default": 0,
"mode_of_payment": "shopify_payments"
}],
"grand_total": $('Input').item.json["body"]["total_price"],
"base_grand_total": $('Input').item.json["body"]["total_price"],
"docstatus": 0,
"pos_profile": $('Edit Fields').item.json["pos_profile"],
"posting_date": $('Input').item.json["body"]["created_at"].substring(0,10),
"posting_time": $('Input').item.json["body"]["created_at"].substring(11,19),
"update_stock": 1,
"naming_series": $('Edit Fields').item.json["naming_series"],
"customer_group": $('Edit Fields').item.json["customer_group"],
"conversion_rate": 1,
"discount_amount": $('Input').item.json["body"]["total_discounts"],
"set_posting_time": 1,
"selling_price_list": "Standard Selling",
"plc_conversion_rate": 1,
"price_list_currency": "USD",
"market_place_order_id": $('Input').item.json["body"]["name"]+1
}
}}