[
  {
    "doctype":"Payment Terms Template",
    "terms":[
          {
            "doctype":"Payment Terms Template Detail",
            "due_date_based_on":"Day(s) after invoice date",
            "idx":1,
            "description":"Cash on Delivery",
            "invoice_portion":50,
            "credit_days":0,
            "credit_months":0,
            "payment_term":"_Test COD"
        },
        {
            "doctype":"Payment Terms Template Detail",
            "due_date_based_on":"Day(s) after invoice date",
            "idx":2,
            "description":"Net 30 Days ",
            "invoice_portion":50,
            "credit_days":30,
            "credit_months":0,
            "payment_term":"_Test N30"
        }
    ],
    "template_name":"_Test Payment Term Template"
  },
  {
    "doctype":"Payment Terms Template",
    "terms":[
          {
            "doctype":"Payment Terms Template Detail",
            "due_date_based_on":"Month(s) after the end of the invoice month",
            "idx":1,
            "description":"_Test End of Next Months",
            "invoice_portion":100,
            "credit_days":0,
            "credit_months":1,
            "payment_term":"_Test EONM"
        }
    ],
    "template_name":"_Test Payment Term Template 1"
  },
  {
    "doctype":"Payment Terms Template",
    "terms":[
          {
            "doctype":"Payment Terms Template Detail",
            "due_date_based_on":"Day(s) after invoice date",
            "idx":1,
            "description":"_Test Net Within 30 days",
            "invoice_portion":100,
            "credit_days":30,
            "credit_months":0,
            "payment_term":"_Test N30 1"
        }
    ],
    "template_name":"_Test Payment Term Template 3"
  }
]