pexea12

Stripe snippet

Jun 15th, 2021
604
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const reportRun = await stripe.reporting.reportRuns.create({
  2.     report_type: "balance_change_from_activity.itemized.3",
  3.     parameters: {
  4.       interval_start: 1614549600,
  5.       interval_end: 1617224399,
  6.       timezone: "Europe/Helsinki",
  7.       columns: [
  8.         "balance_transaction_id",
  9.         "created_utc",
  10.         "created",
  11.         "currency",
  12.         "gross",
  13.         "net",
  14.         "fee",
  15.         "reporting_category",
  16.         "source_id",
  17.         "description",
  18.         "customer_facing_amount",
  19.         "customer_facing_currency",
  20.         "customer_id",
  21.         "charge_id",
  22.         "payment_intent_id",
  23.         "invoice_id",
  24.         "payment_method_type",
  25.         "payment_metadata[humanReadablePodId]",
  26.         "payment_metadata[buildingName]",
  27.         "payment_metadata[taxRate]",
  28.         "payment_metadata[reservedDay]",
  29.         "refund_metadata[humanReadablePodId]",
  30.         "refund_metadata[buildingName]",
  31.         "refund_metadata[taxRate]",
  32.         "refund_metadata[reservedDay]",
  33.       ],
  34.     },
  35.   });
  36.  
RAW Paste Data