{
  "_meta": {
    "template_version": 0
  },
  "fixtures": [
    {
      "name": "customer",
      "path": "/v1/customers",
      "method": "post",
      "params": {
        "description": "(created by Stripe CLI)",
        "source": "tok_visa"
      }
    },
    {
      "name": "invoiceitem",
      "path": "/v1/invoiceitems",
      "method": "post",
      "params": {
        "amount": 2000,
        "currency": "usd",
        "customer": "${customer:id}",
        "description": "(created by Stripe CLI)"
      }
    },
    {
      "name": "invoice",
      "path": "/v1/invoices",
      "method": "post",
      "params": {
        "customer": "${customer:id}",
        "description": "(created by Stripe CLI)"
      }
    },
    {
      "name": "payment_method",
      "path": "/v1/payment_methods",
      "method": "post",
      "params": {
        "type": "card",
        "card": {
          "exp_month": 7,
          "exp_year": 25,
          "number": "4000000000003220",
          "cvc": "424"
        }
      }
    },
    {
      "name": "attach_payment_method",
      "path": "/v1/payment_methods/${payment_method:id}/attach",
      "method": "post",
      "params": {
        "customer": "${customer:id}"
      }
    },
    {
      "name": "pay_invoice",
      "path": "/v1/invoices/${invoice:id}/pay",
      "method": "post",
      "expected_error_type": "card_error",
      "params": {
        "payment_method": "${payment_method:id}"
      }
    }
  ]
}
