{
  "opencollection": "1.0.0",
  "info": {
    "name": "Ascend API V1 Accounts Invoices API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Invoices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.useascend.com/v1/invoices",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginating results. Default is 1."
              },
              {
                "name": "billable_id",
                "value": "",
                "type": "query",
                "description": "Filter by associated billable"
              },
              {
                "name": "insured_id",
                "value": "",
                "type": "query",
                "description": "Filter for invoices to be paid by associated insured"
              },
              {
                "name": "product_type",
                "value": "",
                "type": "query"
              },
              {
                "name": "due_date_start",
                "value": "",
                "type": "query"
              },
              {
                "name": "due_date_end",
                "value": "",
                "type": "query"
              },
              {
                "name": "paid_at_start",
                "value": "",
                "type": "query"
              },
              {
                "name": "paid_at_end",
                "value": "",
                "type": "query"
              },
              {
                "name": "updated_at",
                "value": "",
                "type": "query",
                "description": "Only return invoices that were updated during the given date interval. The date should be defined as an ISO-8601 datetime."
              },
              {
                "name": "created_at",
                "value": "",
                "type": "query",
                "description": "Only return invoices that were created during the given date interval. The date should be defined as an ISO-8601 datetime."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List Invoices"
        },
        {
          "info": {
            "name": "Create invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.useascend.com/v1/invoices",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create invoice"
        },
        {
          "info": {
            "name": "Get Invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.useascend.com/v1/invoices/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The invoice identifier"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Invoice"
        },
        {
          "info": {
            "name": "Update invoice",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.useascend.com/v1/invoices/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The invoice identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update invoice"
        },
        {
          "info": {
            "name": "Void invoice",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.api.useascend.com/v1/invoices/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The invoice identifier"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Void invoice"
        },
        {
          "info": {
            "name": "Charge a renewal program's initial checkout invoice using the insured's stored payment method",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.useascend.com/v1/invoices/:id/charge",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The invoice identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Charge a renewal program's initial checkout invoice using the insured's stored payment method"
        }
      ]
    }
  ],
  "bundled": true
}