| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

Payment items can only be updated when the parent contractor payment status is `pending`.

### Parameters

- **companyID**  
  **Type:** string  
  **Required:** Yes  
  **Description:** ID of company

- **paymentItemID**  
  **Type:** string  
  **Required:** Yes  
  **Description:** ID of payment item

- **contractorPaymentID**  
  **Type:** string  
  **Description:** ID of contractor payment that this payment item will be added to

- **work_info**  
  **Type:** object

- **earning_type**  
  **Type:** string  
  **Enum:**  
  - hourly  
  - per_unit  
  - flat_fee  
  - expense_reimbursement  
  - bonus

**Note:** `earning_type` cannot be changed from rate-based to fixed amount or vice versa.

- **quantity**  
  **Type:** float  
  **Description:** Only required if `earning_type` is `hourly` or `per_unit`

- **rate**  
  **Type:** float  
  **Description:** Only required if `earning_type` is `hourly` or `per_unit`

- **bill_rate**  
  **Type:** float  
  **Description:** Only applicable if `earning_type` is `hourly` or `per_unit`

- **gross_amount**  
  **Type:** float  
  **Description:** Only required if `earning_type` is `flat_fee`, `expense_reimbursement`, or `bonus`

- **bill_amount**  
  **Type:** string  
  **Description:** Only applicable if `earning_type` is `flat_fee`, `expense_reimbursement`, or `bonus`

# Example Request

```
curl --request PATCH \
     --url https://api.zeal.com/payment-items \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```

# Example Response

**HTTP Status Code:** 200  
**Message:** Updated 4 months ago
