List all quotes

GET /api/v1/quotes

Returns a list of quotes you’ve previously created. The quotes are returned in sorted order, with the most recent quotes appearing first.

Query parameters

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

    Minimum value is 1, maximum value is 100. Default value is 10.

  • A cursor for use in pagination. starting_after is an quote ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with qt_fOo123, your subsequent call can include starting_after=qt_fOo123 in order to fetch the next page of the list.

  • A cursor for use in pagination. ending_before is an quote ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with qt_bAr123, your subsequent call can include ending_before=qt_bAr123 in order to fetch the previous page of the list.

Responses

  • 200 application/json

    Returns an array of quote objects. If no more quotes are available, the resulting array will be empty.

    Hide response attributes Show response attributes object
    • ID of the contractor.

    • Hide coverage_type attribute Show coverage_type attribute
      • coverage_type array[string] Required

        An array of coverage types that can include one or more of the following insurance coverage values: general, professional and workers-comp.

        Values are general, professional, or workers-comp.

    • created integer(int64)

      Time at which the object was created. Measured in seconds since the Unix epoch.

    • effective_date string(int64)

      The date when the insurance coverage is set to take effect. Measured in seconds since the Unix epoch. This date must be set in the future. The default effective_date is the next day.

    • eligible boolean

      Indicates whether a contractor is elgible for insurance or not.

      Default value is true.

    • end_date string(int64)

      The date when the insurance coverage is set to expire. Measured in seconds since the Unix epoch. This date must be after the effective date. The default end_date is 30 days after the effective date.

    • The amount of money the 1099 contractor pays in general liability premium per every $100 earned.

      A positive integer representing the premium owed per $100 earned. The gl_net_rate is stored in cents (e.g., 48 represents $0.48).

    • id string
    • job string

      ID of the job that the contractor was paid to do.

    • net_rate integer

      The amount of money the 1099 contractor pays in premium per every $100 earned.

      A positive integer representing the premium owed per $100 earned. The net_rate is stored in cents (e.g., 48 represents $0.48).

    • The JSON representation of component parts that make up the total premium amount due including, for example, the net rate, taxes, and fees.

    • The amount of money the 1099 contractor pays in workers comp premium per every $100 earned.

      A positive integer representing the premium owed per $100 earned. The wc_net_rate is stored in cents (e.g., 48 represents $0.48).

GET /api/v1/quotes
curl \
 -X GET https://api.1099policy.com/api/v1/quotes
Response examples (200)
[
  {
    "contractor": "cn_Ehb3bYa",
    "coverage_type": [
      "general",
      "workers-comp"
    ],
    "created": 1646818364,
    "eligible": true,
    "gl_net_rate": 20,
    "id": "qt_5DciVga8Kt",
    "job": "jb_jsb9KEcTpc",
    "net_rate": 65,
    "quote_json": {
      "gl": {
        "net_rate": 20,
        "risk_purchasing_group_fee": null,
        "stamping_fee": null
      },
      "wc": {
        "net_rate": 45
      }
    },
    "wc_net_rate": 45
  }
]