type Stripe = {
  token: string;
};
export async function main(stripe_con: Stripe, payout_id: string) {
  const STRIPE_REVERSE_PAYOUT_URL = `https://api.stripe.com/v1/payouts/:${payout_id}/reverse`;
  const token = stripe_con["token"];
  const response = await fetch(STRIPE_REVERSE_PAYOUT_URL, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + token,
      "Content-Type": "application/json",
    },
  });
  return await response.json();
}
Submitted by hugo697 177 days ago
type Stripe = {
  token: string;
};
export async function main(stripe_con: Stripe, payout_id: string) {
  const STRIPE_REVERSE_PAYOUT_URL = `https://api.stripe.com/v1/payouts/:${payout_id}/reverse`;
  const token = stripe_con["token"];
  const response = await fetch(STRIPE_REVERSE_PAYOUT_URL, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + token,
      "Content-Type": "application/json",
    },
  });
  return await response.json();
}
Submitted by admin 810 days ago
type Stripe = {
  token: string;
};
export async function main(stripe_con: Stripe, payout_id: string) {
  const STRIPE_REVERSE_PAYOUT_URL =
    `https://api.stripe.com/v1/payouts/:${payout_id}/reverse`;
  const token = stripe_con["token"];
  const response = await fetch(STRIPE_REVERSE_PAYOUT_URL, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + token,
      "Content-Type": "application/json",
    },
  });
  return await response.json();
}Submitted by admin 813 days ago
export async function main(stripe_con: wmill.Resource<"stripe">, payout_id: string) {
  const STRIPE_REVERSE_PAYOUT_URL =
    `https://api.stripe.com/v1/payouts/:${payout_id}/reverse`;
  const token = stripe_con["token"];
  const response = await fetch(STRIPE_REVERSE_PAYOUT_URL, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + token,
      "Content-Type": "application/json",
    },
  });
  return await response.json();
}Submitted by rossmccrann 1165 days ago