---
updatedAt: 2026-10-21T11:44:02.000Z
agentTools:
  projectIndex: https://dev.daisybill.com/llms.txt
---

# Create Bill Submission

Submits the bill. daisyBill chooses the submission type from the bill's state: an original, duplicate, corrected, second review or appeal submission, or a repeat of a rejected submission. You cannot choose the type.

- A corrected submission requires `comment`.
- A second review or appeal submission requires `supporting_document_ids`.
- Independent bill review is not supported and returns 403.

The bill must pass review and have at least one active document. The bill status changes to `sent`. The form PDF is generated in the background, so the `form` link can return 404 for a short time.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://go.daisybill.com/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-default": "",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/bills/{bill_id}/bill_submissions": {
      "post": {
        "summary": "Create Bill Submission",
        "description": "Submits the bill. daisyBill chooses the submission type from the bill's state: an original, duplicate, corrected, second review or appeal submission, or a repeat of a rejected submission. You cannot choose the type.\n\n- A corrected submission requires `comment`.\n- A second review or appeal submission requires `supporting_document_ids`.\n- Independent bill review is not supported and returns 403.\n\nThe bill must pass review and have at least one active document. The bill status changes to `sent`. The form PDF is generated in the background, so the `form` link can return 404 for a short time.",
        "operationId": "create-bill-submission",
        "parameters": [
          {
            "name": "bill_id",
            "in": "path",
            "description": "ID of Bill",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"created_at\": \"2024-03-05T08:28:53.479-08:00\",\n  \"updated_at\": \"2024-03-05T08:29:00.617-08:00\",\n  \"context\": {\n    \"create_source\": \"API\"\n  },\n  \"id\": 686,\n  \"type\": \"DuplicateSubmission\",\n  \"mode\": \"ftp\",\n  \"claims_administrator\": {\n    \"created_at\": \"2015-01-04T10:18:57.549-08:00\",\n    \"updated_at\": \"2023-09-03T05:18:47.966-07:00\",\n    \"name\": \"Mohr-Turcotte Mgmt\",\n    \"id\": 45,\n    \"description\": \"Third party administrator\",\n    \"affiliated_entities\": \"Mohr-Turcotte Insurance\",\n    \"also_known_as\": \"MTM\",\n    \"status\": \"verified\",\n    \"payer_id\": \"MT001\",\n    \"authorization_fax_routes\": [\n      {\n        \"created_at\": \"2020-05-01T09:12:00.000-07:00\",\n        \"updated_at\": \"2020-05-01T09:12:00.000-07:00\",\n        \"id\": 311,\n        \"fax_number\": \"5555550123\",\n        \"phone_number\": \"5555550100\",\n        \"name\": \"UR Department\",\n        \"type\": \"central\"\n      }\n    ],\n    \"payer_required\": true,\n    \"main_payer_present\": true\n  },\n  \"email_receipts\": [],\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/545\"\n    },\n    {\n      \"rel\": \"attachments\",\n      \"href\": \"/api/v1/bill_submissions/686/attachments\"\n    },\n    {\n      \"rel\": \"form\",\n      \"href\": \"/api/v1/bill_submissions/686/form\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": "string",
                      "example": "2024-03-05T08:28:53.479-08:00",
                      "description": "ISO 8601 timestamp."
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2024-03-05T08:29:00.617-08:00",
                      "description": "ISO 8601 timestamp."
                    },
                    "context": {
                      "type": "object",
                      "properties": {
                        "create_source": {
                          "type": "string",
                          "example": "API",
                          "description": "Where the record was created.",
                          "enum": [
                            "API",
                            "Web",
                            "CSV Import",
                            "837 Import",
                            "Background",
                            "Internal"
                          ]
                        }
                      },
                      "description": "How the record was created. Omitted when unknown."
                    },
                    "id": {
                      "type": "integer",
                      "example": 685
                    },
                    "type": {
                      "type": "string",
                      "example": "OriginalSubmission",
                      "enum": [
                        "OriginalSubmission",
                        "DuplicateSubmission",
                        "CorrectedSubmission",
                        "SecondReviewSubmission",
                        "AppealSubmission",
                        "IndependentBillReviewSubmission"
                      ]
                    },
                    "mode": {
                      "type": "string",
                      "example": "ftp",
                      "enum": [
                        "ftp",
                        "fax",
                        "print_and_mail",
                        "email",
                        "mail"
                      ],
                      "description": "How the submission was sent. `ftp` is electronic."
                    },
                    "claims_administrator": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": "string",
                          "example": "2015-01-04T10:18:57.549-08:00"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2023-09-03T05:18:47.966-07:00"
                        },
                        "name": {
                          "type": "string",
                          "example": "Mohr-Turcotte Mgmt"
                        },
                        "id": {
                          "type": "integer",
                          "example": 45
                        },
                        "description": {
                          "type": "string",
                          "example": "Third party administrator"
                        },
                        "affiliated_entities": {
                          "type": "string",
                          "example": "Mohr-Turcotte Insurance"
                        },
                        "also_known_as": {
                          "type": "string",
                          "example": "MTM"
                        },
                        "status": {
                          "type": "string",
                          "example": "verified",
                          "enum": [
                            "unverified",
                            "verified",
                            "invalid",
                            "disabled"
                          ]
                        },
                        "payer_id": {
                          "type": "string",
                          "example": "MT001"
                        },
                        "authorization_fax_routes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "created_at": {
                                "type": "string",
                                "example": "2020-05-01T09:12:00.000-07:00"
                              },
                              "updated_at": {
                                "type": "string",
                                "example": "2020-05-01T09:12:00.000-07:00"
                              },
                              "id": {
                                "type": "integer",
                                "example": 311
                              },
                              "fax_number": {
                                "type": "string",
                                "example": "5555550123"
                              },
                              "phone_number": {
                                "type": "string",
                                "example": "5555550100"
                              },
                              "name": {
                                "type": "string",
                                "example": "UR Department"
                              },
                              "type": {
                                "type": "string",
                                "example": "central",
                                "enum": [
                                  "central",
                                  "adjustor",
                                  "location"
                                ]
                              }
                            }
                          },
                          "description": "Active authorization fax routes."
                        },
                        "payer_required": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether the claims administrator has a verified payer."
                        },
                        "main_payer_present": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether the claims administrator has a verified main payer."
                        },
                        "invalid_message": {
                          "type": "string",
                          "description": "Omitted when not set."
                        }
                      },
                      "description": "The claims administrator the submission was sent to. Omitted when none."
                    },
                    "email_receipts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "example": "success",
                            "enum": [
                              "success",
                              "failure",
                              "send",
                              "spam"
                            ]
                          },
                          "state": {
                            "type": "string",
                            "example": "sent"
                          },
                          "sender": {
                            "type": "string",
                            "example": "bills@daisybill.com"
                          },
                          "recipient": {
                            "type": "string",
                            "example": "bills@mohr-turcotte.example.com"
                          },
                          "subject": {
                            "type": "string",
                            "example": "Bill for Jane Doe"
                          },
                          "started_at": {
                            "type": "string",
                            "example": "2024-03-05T16:29:10Z",
                            "nullable": true,
                            "description": "ISO 8601 timestamp."
                          },
                          "completed_at": {
                            "type": "string",
                            "example": "2024-03-05T16:29:12Z",
                            "nullable": true,
                            "description": "ISO 8601 timestamp."
                          },
                          "smtp_attempt_count": {
                            "type": "integer",
                            "example": 1
                          },
                          "bounce_description": {
                            "type": "string",
                            "nullable": true
                          },
                          "diag": {
                            "type": "string",
                            "nullable": true,
                            "description": "SMTP diagnostic message."
                          }
                        }
                      },
                      "description": "Delivery receipts for emailed submissions, oldest first."
                    },
                    "links": {
                      "type": "array",
                      "description": "`form` is present only when a form is available for the submission.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rel": {
                            "type": "string",
                            "enum": [
                              "bill",
                              "attachments",
                              "form"
                            ],
                            "example": "bill"
                          },
                          "href": {
                            "type": "string",
                            "example": "/api/v1/bills/544"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The model failed validation (`{\"errors\": {field: [messages]}}`), the JSON body could not be parsed, or a POST/PUT/PATCH request carried URL query parameters (`{\"error\": \"...\"}`).",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": {\n    \"field_name\": [\n      \"can't be blank\"\n    ]\n  }\n}"
                  },
                  "Bill failed review": {
                    "value": "{\n  \"errors\": {\n    \"bill\": [\n      \"must pass review before submission\"\n    ]\n  }\n}"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. The API token is missing or invalid, the user is not active, or the organization does not have API access.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"API Token provided is not valid\"\n}"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The organization is locked for an overdue invoice.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Your organization is locked for overdue invoice.\"\n}"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. A required parameter is missing or a parameter is invalid (wrong type, value outside the allowed range, `per_page` above the maximum, bad date filter), or the path is not a valid endpoint. Also returned when `bill_submission`, `comment` or `supporting_document_ids` is missing for a submission type that requires it, and for independent bill review.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"per_page must be less than or equal 25\"\n}"
                  },
                  "Missing comment": {
                    "value": "{\n  \"error\": \"bill_submission[comment] is missing\"\n}"
                  },
                  "Missing supporting documents": {
                    "value": "{\n  \"error\": \"bill_submission[supporting_document_ids] are missing\"\n}"
                  },
                  "Independent bill review": {
                    "value": "{\n  \"error\": \"independent_bill_review bill submission is not supported\"\n}"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found. The record does not exist or your user cannot access it. Also returned when your user cannot submit the bill.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"404 not found\"\n}"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. The rate limit (100 requests per minute per user by default) was exceeded. Check the `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining` and `X-Rate-Limit-Reset` headers, which are sent on every response.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Rate limit exceeded\"\n}"
                  }
                }
              }
            },
            "headers": {
              "X-Rate-Limit-Limit": {
                "description": "Requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Remaining": {
                "description": "Requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Reset": {
                "description": "UTC time when the window resets",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl \\\n  https://go.daisybill.com/api/v1/bills/545/bill_submissions \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -H 'Authorization: Bearer {API_TOKEN}' \\\n  -d '{\n  \"bill_submission\": {\n    \"comment\": \"Corrected units on line 2\",\n    \"mode\": \"ftp\"\n  }\n}'",
              "name": "cURL"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bill_submission": {
                    "type": "object",
                    "properties": {
                      "comment": {
                        "type": "string",
                        "description": "Required for a corrected submission."
                      },
                      "supporting_document_ids": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "description": "IDs of the bill's attachments. Must not be empty for a second review or appeal submission."
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "ftp",
                          "fax",
                          "print_and_mail",
                          "email",
                          "mail"
                        ],
                        "default": "ftp",
                        "description": "How to send the submission. `ftp` is electronic; when the claims administrator has a preferred route, daisyBill uses that route's mode. `mail` requires a mailing address."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```