# Update an invoice **PUT /api/v1/invoices/{invoice}** Invoices that haven't been paid are fully editable. Once an invoice is paid, it becomes uneditable. ## Servers - Production server: https://api.1099policy.com (Production server) ## Parameters ### Path parameters - **invoice** (string) The ID of the desired invoice (e.g., `in_4RviYgc2Wt`). ### Body: application/json (object) - **contractor** (string) ID of the contractor - **gross_pay** (integer) The gross pay that the contractor earned in the last pay period. - **job** (string) ID of the job that the contractor was paid to do. - **paycycle_enddate** (integer) Pay period end date. - **paycycle_startdate** (integer) Pay period start date. ## Responses ### 200 Returns an invoice object if a valid invoice ID was provided. Returns an error otherwise. #### Body: application/json (object) - **contractor** (string) ID of the contractor. - **created** (integer(int64)) - **gross_pay** (integer) The gross pay that the contractor earned in the last pay period. A positive integer representing the gross pay (e.g., 15000 cents to charge $150.00). The minimum amount is 100 cents US. The maximum amount is 100000000 cents US ($1,000,000). - **id** (string) - **job** (string) ID of the job that the contractor was paid to do. - **paycycle_enddate** (integer(int64)) Pay period end date. Measured in seconds since the Unix epoch. - **paycycle_startdate** (integer(int64)) Pay period start date. Measured in seconds since the Unix epoch. - **premium_due** (integer) Premium due for pay cycle. Calculated as a percentage of gross pay for the period. A positive integer representing the premium due (e.g., 150 cents to charge $1.50). The minimum amount is 100 cents US. [Powered by Bump.sh](https://bump.sh)