How do I send a JSON array (templateParams) and calculate a value in the API (Pabbly) action?

Status: Awaiting reply · Asked by Arpit Chawala on · 0 views

Arpit Chawala — Question ·
I'm using the API (Pabbly) action to POST to https://backend.aisensy.com/campaign/t1/api/v2 with Payload Type JSON. The API needs a JSON array field templateParams with 4 values, for example ["Name","Product","1150.00","10350.00"]. Set Parameters only allows key-value pairs, so I can't send an array. The 3rd value also needs to be calculated as total_price minus total_outstanding from the Shopify order.
  1. How do I send templateParams as a real JSON array, in Set Parameters or through Select Transform?
  2. Please share the exact Transform template (or another method) that builds this array and does the subtraction. I'm on the free plan.

Workflow: Shopify V2 New Order → Delay → Filter → API (Pabbly).

Back to all forum threads · Log in to reply