> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# repairshopr-billing

> RepairShopr Billing - manage invoices, estimates, payments, and payment profiles

**Server path:** `/repairshopr-billing` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                                                                        | Description                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [`repairshopr_billing_create_customers_by_customer_id_payment_profiles`](#repairshopr_billing_create_customers_by_customer_id_payment_profiles)             | Creates a Payment Profile                    |
| [`repairshopr_billing_create_estimates`](#repairshopr_billing_create_estimates)                                                                             | Creates an Estimate                          |
| [`repairshopr_billing_create_estimates_by_id_convert_to_invoice`](#repairshopr_billing_create_estimates_by_id_convert_to_invoice)                           | Convert an Estimate to an Invoice            |
| [`repairshopr_billing_create_estimates_by_id_email`](#repairshopr_billing_create_estimates_by_id_email)                                                     | Sends an Estimate to a Customer              |
| [`repairshopr_billing_create_estimates_by_id_line_items`](#repairshopr_billing_create_estimates_by_id_line_items)                                           | Adds a Line Item to an Estimate              |
| [`repairshopr_billing_create_estimates_by_id_print`](#repairshopr_billing_create_estimates_by_id_print)                                                     | Queues a print job for an Estimate           |
| [`repairshopr_billing_create_invoices`](#repairshopr_billing_create_invoices)                                                                               | Creates an Invoice                           |
| [`repairshopr_billing_create_invoices_by_id_email`](#repairshopr_billing_create_invoices_by_id_email)                                                       | Sends invoice to customer                    |
| [`repairshopr_billing_create_invoices_by_id_line_items`](#repairshopr_billing_create_invoices_by_id_line_items)                                             | Creates a new line item                      |
| [`repairshopr_billing_create_invoices_by_id_print`](#repairshopr_billing_create_invoices_by_id_print)                                                       | Queues a print job for an invoice            |
| [`repairshopr_billing_create_payments`](#repairshopr_billing_create_payments)                                                                               | Creates a Payment                            |
| [`repairshopr_billing_delete_customers_by_customer_id_payment_profiles_by_id`](#repairshopr_billing_delete_customers_by_customer_id_payment_profiles_by_id) | Deletes a Payment Profile                    |
| [`repairshopr_billing_delete_estimates_by_id`](#repairshopr_billing_delete_estimates_by_id)                                                                 | Deletes an Estimate by ID                    |
| [`repairshopr_billing_delete_estimates_by_id_line_items_by_line_item_id`](#repairshopr_billing_delete_estimates_by_id_line_items_by_line_item_id)           | Deletes a Line Item                          |
| [`repairshopr_billing_delete_invoices_by_id`](#repairshopr_billing_delete_invoices_by_id)                                                                   | Deletes an invoice by ID                     |
| [`repairshopr_billing_delete_invoices_by_id_line_items_by_line_item_id`](#repairshopr_billing_delete_invoices_by_id_line_items_by_line_item_id)             | Deletes an a line item of an invoice by ID   |
| [`repairshopr_billing_get_customers_by_customer_id_payment_profiles`](#repairshopr_billing_get_customers_by_customer_id_payment_profiles)                   | Returns a paginated list of Payment Profiles |
| [`repairshopr_billing_get_customers_by_customer_id_payment_profiles_by_id`](#repairshopr_billing_get_customers_by_customer_id_payment_profiles_by_id)       | Retrieves a Payment Profile by ID            |
| [`repairshopr_billing_get_estimates_by_id`](#repairshopr_billing_get_estimates_by_id)                                                                       | Retrieves an Estimate by ID or number        |
| [`repairshopr_billing_get_invoices_by_id`](#repairshopr_billing_get_invoices_by_id)                                                                         | Retrieves an Invoice by ID or Number         |
| [`repairshopr_billing_get_invoices_by_id_ticket`](#repairshopr_billing_get_invoices_by_id_ticket)                                                           | Returns the associated ticket for an invoice |
| [`repairshopr_billing_get_payments_by_id`](#repairshopr_billing_get_payments_by_id)                                                                         | Retrieves a Payment by ID                    |
| [`repairshopr_billing_list_estimates`](#repairshopr_billing_list_estimates)                                                                                 | Returns a paginated list of Estimates        |
| [`repairshopr_billing_list_invoices`](#repairshopr_billing_list_invoices)                                                                                   | Returns a paginated list of Invoices         |
| [`repairshopr_billing_list_line_items`](#repairshopr_billing_list_line_items)                                                                               | Returns a paginated list of Line Items       |
| [`repairshopr_billing_list_payment_methods`](#repairshopr_billing_list_payment_methods)                                                                     | Returns a paginated list of Payment Methods  |
| [`repairshopr_billing_list_payments`](#repairshopr_billing_list_payments)                                                                                   | Returns a paginated list of Payments         |
| [`repairshopr_billing_update_customers_by_customer_id_payment_profiles_by_id`](#repairshopr_billing_update_customers_by_customer_id_payment_profiles_by_id) | Updates a Payment Profile                    |
| [`repairshopr_billing_update_estimates_by_id`](#repairshopr_billing_update_estimates_by_id)                                                                 | Updates an existing Estimate by ID           |
| [`repairshopr_billing_update_estimates_by_id_line_items_by_line_item_id`](#repairshopr_billing_update_estimates_by_id_line_items_by_line_item_id)           | Updates a Line Item                          |
| [`repairshopr_billing_update_invoices_by_id`](#repairshopr_billing_update_invoices_by_id)                                                                   | Updates an existing invoice by ID            |
| [`repairshopr_billing_update_invoices_by_id_line_items_by_line_item_id`](#repairshopr_billing_update_invoices_by_id_line_items_by_line_item_id)             | Updates an a line item of an invoice by ID   |

***

## repairshopr\_billing\_create\_customers\_by\_customer\_id\_payment\_profiles

Creates a Payment Profile

**Parameters:**

| Parameter              | Type    | Required | Default | Description                                    |
| ---------------------- | ------- | -------- | ------- | ---------------------------------------------- |
| `customer_id`          | integer | Yes      | —       | Customer Id                                    |
| `customer_external_id` | string  | No       | —       | Payment Gateway's Customer token               |
| `expiration`           | string  | No       | —       | The expiration value                           |
| `last_four`            | string  | No       | —       | Last Four                                      |
| `payment_profile_id`   | string  | No       | —       | Payment Gateway's stored payment profile token |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "customer_external_id": {
        "type": "string",
        "description": "Payment Gateway's Customer token"
      },
      "expiration": {
        "type": "string",
        "description": "The expiration value"
      },
      "last_four": {
        "type": "string",
        "description": "Last Four"
      },
      "payment_profile_id": {
        "type": "string",
        "description": "Payment Gateway's stored payment profile token"
      }
    },
    "required": [
      "PCID",
      "customer_id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_estimates

Creates an Estimate

**Parameters:**

| Parameter     | Type      | Required | Default | Description                                        |
| ------------- | --------- | -------- | ------- | -------------------------------------------------- |
| `created_at`  | string    | No       | —       | Created At                                         |
| `customer_id` | integer   | No       | —       | Customer Id                                        |
| `date`        | string    | No       | —       | The date value                                     |
| `line_items`  | object\[] | No       | —       | Array of Line Items.                               |
| `location_id` | integer   | No       | —       | Location Id                                        |
| `name`        | string    | No       | —       | The name value                                     |
| `note`        | string    | No       | —       | The note value                                     |
| `number`      | string    | No       | —       | The number value                                   |
| `status`      | string    | No       | —       | Valid values are Fresh, Draft, Approved, Declined. |
| `ticket_id`   | integer   | No       | —       | Ticket Id                                          |
| `updated_at`  | string    | No       | —       | Updated At                                         |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "created_at": {
        "type": "string",
        "description": "Created At"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "date": {
        "type": "string",
        "description": "The date value"
      },
      "line_items": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "item": {
              "type": "string",
              "description": "The item value"
            },
            "name": {
              "type": "string",
              "description": "The name value"
            },
            "product_id": {
              "type": "integer",
              "description": "Product Id"
            },
            "quantity": {
              "type": "integer",
              "description": "The quantity value"
            }
          }
        },
        "description": "Array of Line Items."
      },
      "location_id": {
        "type": "integer",
        "description": "Location Id"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "note": {
        "type": "string",
        "description": "The note value"
      },
      "number": {
        "type": "string",
        "description": "The number value"
      },
      "status": {
        "type": "string",
        "description": "Valid values are Fresh, Draft, Approved, Declined."
      },
      "ticket_id": {
        "type": "integer",
        "description": "Ticket Id"
      },
      "updated_at": {
        "type": "string",
        "description": "Updated At"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_estimates\_by\_id\_convert\_to\_invoice

Convert an Estimate to an Invoice

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_estimates\_by\_id\_email

Sends an Estimate to a Customer

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_estimates\_by\_id\_line\_items

Adds a Line Item to an Estimate

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `id`               | integer | Yes      | —       | The id value       |
| `cost`             | number  | No       | —       | The cost value     |
| `discount_percent` | number  | No       | —       | Discount Percent   |
| `item`             | string  | No       | —       | The item value     |
| `name`             | string  | No       | —       | The name value     |
| `position`         | integer | No       | —       | The position value |
| `price`            | number  | No       | —       | The price value    |
| `product_category` | string  | No       | —       | Product Category   |
| `product_id`       | integer | No       | —       | Product Id         |
| `quantity`         | number  | No       | —       | The quantity value |
| `tax_note`         | string  | No       | —       | Tax Note           |
| `tax_rate_id`      | integer | No       | —       | Tax Rate Id        |
| `taxable`          | boolean | No       | —       | The taxable value  |
| `upc_code`         | string  | No       | —       | Upc Code           |
| `user_id`          | integer | No       | —       | User Id            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "cost": {
        "type": "number",
        "description": "The cost value"
      },
      "discount_percent": {
        "type": "number",
        "description": "Discount Percent"
      },
      "item": {
        "type": "string",
        "description": "The item value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "position": {
        "type": "integer",
        "description": "The position value"
      },
      "price": {
        "type": "number",
        "description": "The price value"
      },
      "product_category": {
        "type": "string",
        "description": "Product Category"
      },
      "product_id": {
        "type": "integer",
        "description": "Product Id"
      },
      "quantity": {
        "type": "number",
        "description": "The quantity value"
      },
      "tax_note": {
        "type": "string",
        "description": "Tax Note"
      },
      "tax_rate_id": {
        "type": "integer",
        "description": "Tax Rate Id"
      },
      "taxable": {
        "type": "boolean",
        "description": "The taxable value"
      },
      "upc_code": {
        "type": "string",
        "description": "Upc Code"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_estimates\_by\_id\_print

Queues a print job for an Estimate

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_invoices

Creates an Invoice

**Parameters:**

| Parameter      | Type      | Required | Default | Description            |
| -------------- | --------- | -------- | ------- | ---------------------- |
| `contact_id`   | integer   | No       | —       | Contact Id             |
| `created_at`   | string    | No       | —       | Created At             |
| `customer_id`  | integer   | Yes      | —       | Customer Id            |
| `date`         | string    | Yes      | —       | The date value         |
| `due_date`     | string    | No       | —       | Due Date               |
| `hardwarecost` | number    | No       | —       | The hardwarecost value |
| `line_items`   | object\[] | No       | —       | Line Items             |
| `location_id`  | integer   | No       | —       | Location Id            |
| `note`         | string    | No       | —       | The note value         |
| `number`       | string    | Yes      | —       | The number value       |
| `po_number`    | string    | No       | —       | Po Number              |
| `ticket_id`    | integer   | No       | —       | Ticket Id              |
| `updated_at`   | string    | No       | —       | Updated At             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "contact_id": {
        "type": "integer",
        "description": "Contact Id"
      },
      "created_at": {
        "type": "string",
        "description": "Created At"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "date": {
        "type": "string",
        "description": "The date value"
      },
      "due_date": {
        "type": "string",
        "description": "Due Date"
      },
      "hardwarecost": {
        "type": "number",
        "description": "The hardwarecost value"
      },
      "line_items": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "item": {
              "type": "string",
              "description": "The item value"
            },
            "name": {
              "type": "string",
              "description": "The name value"
            },
            "product_id": {
              "type": "integer",
              "description": "Product Id"
            },
            "quantity": {
              "type": "number",
              "description": "The quantity value"
            },
            "cost": {
              "type": "number",
              "description": "The cost value"
            },
            "price": {
              "type": "number",
              "description": "The price value"
            },
            "discount_percent": {
              "type": "integer",
              "description": "Discount Percent"
            },
            "taxable": {
              "type": "boolean",
              "description": "The taxable value"
            },
            "upc_code": {
              "type": "string",
              "description": "Upc Code"
            },
            "tax_note": {
              "type": "string",
              "description": "Tax Note"
            },
            "wholesale": {
              "type": "number",
              "description": "The wholesale value"
            },
            "invoice_bundle_id": {
              "type": "integer",
              "description": "Invoice Bundle Id"
            },
            "tax_rate_id": {
              "type": "integer",
              "description": "Tax Rate Id"
            },
            "user_id": {
              "type": "integer",
              "description": "User Id"
            },
            "position": {
              "type": "integer",
              "description": "The position value"
            }
          }
        },
        "description": "Line Items"
      },
      "location_id": {
        "type": "integer",
        "description": "Location Id"
      },
      "note": {
        "type": "string",
        "description": "The note value"
      },
      "number": {
        "type": "string",
        "description": "The number value"
      },
      "po_number": {
        "type": "string",
        "description": "Po Number"
      },
      "ticket_id": {
        "type": "integer",
        "description": "Ticket Id"
      },
      "updated_at": {
        "type": "string",
        "description": "Updated At"
      }
    },
    "required": [
      "PCID",
      "customer_id",
      "date",
      "number"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_invoices\_by\_id\_email

Sends invoice to customer

**Parameters:**

| Parameter | Type    | Required | Default | Description                         |
| --------- | ------- | -------- | ------- | ----------------------------------- |
| `id`      | integer | Yes      | —       | ID of Invoice which will be emailed |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice which will be emailed"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_invoices\_by\_id\_line\_items

Creates a new line item

**Parameters:**

| Parameter               | Type    | Required | Default | Description             |
| ----------------------- | ------- | -------- | ------- | ----------------------- |
| `id`                    | integer | Yes      | —       | ID of Invoice to update |
| `cost`                  | number  | No       | —       | The cost value          |
| `discount_dollars`      | string  | No       | —       | Discount Dollars        |
| `item`                  | string  | No       | —       | The item value          |
| `line_discount_percent` | integer | No       | —       | Line Discount Percent   |
| `name`                  | string  | No       | —       | The name value          |
| `price`                 | number  | No       | —       | The price value         |
| `taxable`               | boolean | No       | —       | The taxable value       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice to update"
      },
      "cost": {
        "type": "number",
        "description": "The cost value"
      },
      "discount_dollars": {
        "type": "string",
        "description": "Discount Dollars"
      },
      "item": {
        "type": "string",
        "description": "The item value"
      },
      "line_discount_percent": {
        "type": "integer",
        "description": "Line Discount Percent"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "price": {
        "type": "number",
        "description": "The price value"
      },
      "taxable": {
        "type": "boolean",
        "description": "The taxable value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_invoices\_by\_id\_print

Queues a print job for an invoice

**Parameters:**

| Parameter | Type    | Required | Default | Description                    |
| --------- | ------- | -------- | ------- | ------------------------------ |
| `id`      | integer | Yes      | —       | The ID of the Invoice to print |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The ID of the Invoice to print"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_create\_payments

Creates a Payment

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                       |
| ---------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `address_city`   | string  | No       | —       | Address City                                                                                      |
| `address_street` | string  | No       | —       | Address Street                                                                                    |
| `address_zip`    | string  | No       | —       | Address Zip                                                                                       |
| `amount_cents`   | integer | No       | —       | Amount Cents                                                                                      |
| `apply_payments` | object  | No       | —       | Object where a key is an Invoice ID and a value is a payment amount to be applied to the invoice. |
| `customer_id`    | integer | No       | —       | Customer Id                                                                                       |
| `date_month`     | string  | No       | —       | Date Month                                                                                        |
| `date_year`      | string  | No       | —       | Date Year                                                                                         |
| `firstname`      | string  | No       | —       | The firstname value                                                                               |
| `invoice_id`     | integer | No       | —       | Invoice Id                                                                                        |
| `invoice_number` | string  | No       | —       | Invoice Number                                                                                    |
| `lastname`       | string  | No       | —       | The lastname value                                                                                |
| `payment_method` | string  | No       | —       | Payment Method                                                                                    |
| `ref_num`        | string  | No       | —       | Ref Num                                                                                           |
| `register_id`    | integer | No       | —       | Register Id                                                                                       |
| `signature_data` | string  | No       | —       | Signature Data                                                                                    |
| `signature_date` | string  | No       | —       | Signature Date                                                                                    |
| `signature_name` | string  | No       | —       | Signature Name                                                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "address_city": {
        "type": "string",
        "description": "Address City"
      },
      "address_street": {
        "type": "string",
        "description": "Address Street"
      },
      "address_zip": {
        "type": "string",
        "description": "Address Zip"
      },
      "amount_cents": {
        "type": "integer",
        "description": "Amount Cents"
      },
      "apply_payments": {
        "type": "object",
        "description": "Object where a key is an Invoice ID and a value is a payment amount to be applied to the invoice."
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "date_month": {
        "type": "string",
        "description": "Date Month"
      },
      "date_year": {
        "type": "string",
        "description": "Date Year"
      },
      "firstname": {
        "type": "string",
        "description": "The firstname value"
      },
      "invoice_id": {
        "type": "integer",
        "description": "Invoice Id"
      },
      "invoice_number": {
        "type": "string",
        "description": "Invoice Number"
      },
      "lastname": {
        "type": "string",
        "description": "The lastname value"
      },
      "payment_method": {
        "type": "string",
        "description": "Payment Method"
      },
      "ref_num": {
        "type": "string",
        "description": "Ref Num"
      },
      "register_id": {
        "type": "integer",
        "description": "Register Id"
      },
      "signature_data": {
        "type": "string",
        "description": "Signature Data"
      },
      "signature_date": {
        "type": "string",
        "description": "Signature Date"
      },
      "signature_name": {
        "type": "string",
        "description": "Signature Name"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_delete\_customers\_by\_customer\_id\_payment\_profiles\_by\_id

Deletes a Payment Profile

**Parameters:**

| Parameter     | Type    | Required | Default | Description  |
| ------------- | ------- | -------- | ------- | ------------ |
| `customer_id` | integer | Yes      | —       | Customer Id  |
| `id`          | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "customer_id",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_delete\_estimates\_by\_id

Deletes an Estimate by ID

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_delete\_estimates\_by\_id\_line\_items\_by\_line\_item\_id

Deletes a Line Item

**Parameters:**

| Parameter      | Type    | Required | Default | Description  |
| -------------- | ------- | -------- | ------- | ------------ |
| `id`           | integer | Yes      | —       | The id value |
| `line_item_id` | integer | Yes      | —       | Line Item Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "line_item_id": {
        "type": "integer",
        "description": "Line Item Id"
      }
    },
    "required": [
      "PCID",
      "id",
      "line_item_id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_delete\_invoices\_by\_id

Deletes an invoice by ID

**Parameters:**

| Parameter | Type    | Required | Default | Description             |
| --------- | ------- | -------- | ------- | ----------------------- |
| `id`      | integer | Yes      | —       | ID of Invoice to delete |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice to delete"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_delete\_invoices\_by\_id\_line\_items\_by\_line\_item\_id

Deletes an a line item of an invoice by ID

**Parameters:**

| Parameter      | Type    | Required | Default | Description               |
| -------------- | ------- | -------- | ------- | ------------------------- |
| `id`           | integer | Yes      | —       | ID of Invoice to delete   |
| `line_item_id` | integer | Yes      | —       | ID of line item to update |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice to delete"
      },
      "line_item_id": {
        "type": "integer",
        "description": "ID of line item to update"
      }
    },
    "required": [
      "PCID",
      "id",
      "line_item_id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_customers\_by\_customer\_id\_payment\_profiles

Returns a paginated list of Payment Profiles

**Parameters:**

| Parameter     | Type    | Required | Default | Description |
| ------------- | ------- | -------- | ------- | ----------- |
| `customer_id` | integer | Yes      | —       | Customer Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      }
    },
    "required": [
      "PCID",
      "customer_id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_customers\_by\_customer\_id\_payment\_profiles\_by\_id

Retrieves a Payment Profile by ID

**Parameters:**

| Parameter     | Type    | Required | Default | Description  |
| ------------- | ------- | -------- | ------- | ------------ |
| `customer_id` | integer | Yes      | —       | Customer Id  |
| `id`          | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "customer_id",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_estimates\_by\_id

Retrieves an Estimate by ID or number

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                           |
| --------- | ------- | -------- | ------- | --------------------------------------------------------------------- |
| `id`      | integer | Yes      | —       | Estimate ID                                                           |
| `number`  | string  | No       | —       | Estimate number is used when the server cannot find an Estimate by ID |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Estimate ID"
      },
      "number": {
        "type": "string",
        "description": "Estimate number is used when the server cannot find an Estimate by ID"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_invoices\_by\_id

Retrieves an Invoice by ID or Number

**Parameters:**

| Parameter | Type    | Required | Default | Description                         |
| --------- | ------- | -------- | ------- | ----------------------------------- |
| `id`      | integer | Yes      | —       | ID or Number of Invoice to retrieve |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID or Number of Invoice to retrieve"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_invoices\_by\_id\_ticket

Returns the associated ticket for an invoice

**Parameters:**

| Parameter | Type    | Required | Default | Description                                 |
| --------- | ------- | -------- | ------- | ------------------------------------------- |
| `id`      | integer | Yes      | —       | ID of Invoice whose Ticket will be returned |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice whose Ticket will be returned"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_get\_payments\_by\_id

Retrieves a Payment by ID

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_list\_estimates

Returns a paginated list of Estimates

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                                           |
| --------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------- |
| `mine`    | boolean | No       | —       | Returns estimates that belong to the current user                                     |
| `status`  | string  | No       | —       | Returns estimates with a given status. Possible values are 'approved' and 'declined'. |
| `page`    | integer | No       | —       | Returns provided page of results, each 'page' contains 50 results                     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "mine": {
        "type": "boolean",
        "description": "Returns estimates that belong to the current user"
      },
      "status": {
        "type": "string",
        "description": "Returns estimates with a given status. Possible values are 'approved' and 'declined'."
      },
      "page": {
        "type": "integer",
        "description": "Returns provided page of results, each 'page' contains 50 results"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_list\_invoices

Returns a paginated list of Invoices

**Parameters:**

| Parameter          | Type    | Required | Default | Description                                                            |
| ------------------ | ------- | -------- | ------- | ---------------------------------------------------------------------- |
| `paid`             | boolean | No       | —       | Whether or not the returned list of invoices has been marked as paid   |
| `unpaid`           | boolean | No       | —       | Whether or not the returned list of invoices has been marked as unpaid |
| `ticket_id`        | integer | No       | —       | Any invoices attached to a Ticket ID                                   |
| `since_updated_at` | string  | No       | —       | Any invoices updated since a date                                      |
| `page`             | integer | No       | —       | Returns provided page of results, each 'page' contains 25 results      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "paid": {
        "type": "boolean",
        "description": "Whether or not the returned list of invoices has been marked as paid"
      },
      "unpaid": {
        "type": "boolean",
        "description": "Whether or not the returned list of invoices has been marked as unpaid"
      },
      "ticket_id": {
        "type": "integer",
        "description": "Any invoices attached to a Ticket ID"
      },
      "since_updated_at": {
        "type": "string",
        "description": "Any invoices updated since a date"
      },
      "page": {
        "type": "integer",
        "description": "Returns provided page of results, each 'page' contains 25 results"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_list\_line\_items

Returns a paginated list of Line Items

**Parameters:**

| Parameter              | Type    | Required | Default | Description                                      |
| ---------------------- | ------- | -------- | ------- | ------------------------------------------------ |
| `invoice_id`           | integer | No       | —       | Returns Line Items that belong to an Invoice ID  |
| `estimate_id`          | integer | No       | —       | Returns Line Items that belong to an Estimate ID |
| `invoice_id_not_null`  | boolean | No       | —       | Returns Line Items that belong to any Invoice    |
| `estimate_id_not_null` | boolean | No       | —       | Returns Line Items that belong to any Estimate   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "invoice_id": {
        "type": "integer",
        "description": "Returns Line Items that belong to an Invoice ID"
      },
      "estimate_id": {
        "type": "integer",
        "description": "Returns Line Items that belong to an Estimate ID"
      },
      "invoice_id_not_null": {
        "type": "boolean",
        "description": "Returns Line Items that belong to any Invoice"
      },
      "estimate_id_not_null": {
        "type": "boolean",
        "description": "Returns Line Items that belong to any Estimate"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_list\_payment\_methods

Returns a paginated list of Payment Methods

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_list\_payments

Returns a paginated list of Payments

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                       |
| --------- | ------- | -------- | ------- | ----------------------------------------------------------------- |
| `query`   | string  | No       | —       | Search query                                                      |
| `page`    | integer | No       | —       | Returns provided page of results, each 'page' contains 25 results |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "query": {
        "type": "string",
        "description": "Search query"
      },
      "page": {
        "type": "integer",
        "description": "Returns provided page of results, each 'page' contains 25 results"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_update\_customers\_by\_customer\_id\_payment\_profiles\_by\_id

Updates a Payment Profile

**Parameters:**

| Parameter     | Type    | Required | Default | Description          |
| ------------- | ------- | -------- | ------- | -------------------- |
| `customer_id` | integer | Yes      | —       | Customer Id          |
| `id`          | integer | Yes      | —       | The id value         |
| `expiration`  | string  | No       | —       | The expiration value |
| `last_four`   | string  | No       | —       | Last Four            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "expiration": {
        "type": "string",
        "description": "The expiration value"
      },
      "last_four": {
        "type": "string",
        "description": "Last Four"
      }
    },
    "required": [
      "PCID",
      "customer_id",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_update\_estimates\_by\_id

Updates an existing Estimate by ID

**Parameters:**

| Parameter     | Type    | Required | Default | Description                                        |
| ------------- | ------- | -------- | ------- | -------------------------------------------------- |
| `id`          | integer | Yes      | —       | The id value                                       |
| `customer_id` | integer | No       | —       | Customer Id                                        |
| `date`        | string  | No       | —       | The date value                                     |
| `location_id` | integer | No       | —       | Location Id                                        |
| `name`        | string  | No       | —       | The name value                                     |
| `note`        | string  | No       | —       | The note value                                     |
| `number`      | string  | No       | —       | The number value                                   |
| `status`      | string  | No       | —       | Valid values are Fresh, Draft, Approved, Declined. |
| `ticket_id`   | integer | No       | —       | Ticket Id                                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "date": {
        "type": "string",
        "description": "The date value"
      },
      "location_id": {
        "type": "integer",
        "description": "Location Id"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "note": {
        "type": "string",
        "description": "The note value"
      },
      "number": {
        "type": "string",
        "description": "The number value"
      },
      "status": {
        "type": "string",
        "description": "Valid values are Fresh, Draft, Approved, Declined."
      },
      "ticket_id": {
        "type": "integer",
        "description": "Ticket Id"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_update\_estimates\_by\_id\_line\_items\_by\_line\_item\_id

Updates a Line Item

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `id`               | integer | Yes      | —       | The id value       |
| `line_item_id`     | integer | Yes      | —       | Line Item Id       |
| `cost`             | number  | No       | —       | The cost value     |
| `discount_percent` | number  | No       | —       | Discount Percent   |
| `item`             | string  | No       | —       | The item value     |
| `name`             | string  | No       | —       | The name value     |
| `position`         | integer | No       | —       | The position value |
| `price`            | number  | No       | —       | The price value    |
| `product_category` | string  | No       | —       | Product Category   |
| `product_id`       | integer | No       | —       | Product Id         |
| `quantity`         | number  | No       | —       | The quantity value |
| `tax_note`         | string  | No       | —       | Tax Note           |
| `tax_rate_id`      | integer | No       | —       | Tax Rate Id        |
| `taxable`          | boolean | No       | —       | The taxable value  |
| `upc_code`         | string  | No       | —       | Upc Code           |
| `user_id`          | integer | No       | —       | User Id            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "line_item_id": {
        "type": "integer",
        "description": "Line Item Id"
      },
      "cost": {
        "type": "number",
        "description": "The cost value"
      },
      "discount_percent": {
        "type": "number",
        "description": "Discount Percent"
      },
      "item": {
        "type": "string",
        "description": "The item value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "position": {
        "type": "integer",
        "description": "The position value"
      },
      "price": {
        "type": "number",
        "description": "The price value"
      },
      "product_category": {
        "type": "string",
        "description": "Product Category"
      },
      "product_id": {
        "type": "integer",
        "description": "Product Id"
      },
      "quantity": {
        "type": "number",
        "description": "The quantity value"
      },
      "tax_note": {
        "type": "string",
        "description": "Tax Note"
      },
      "tax_rate_id": {
        "type": "integer",
        "description": "Tax Rate Id"
      },
      "taxable": {
        "type": "boolean",
        "description": "The taxable value"
      },
      "upc_code": {
        "type": "string",
        "description": "Upc Code"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "id",
      "line_item_id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_update\_invoices\_by\_id

Updates an existing invoice by ID

**Parameters:**

| Parameter      | Type    | Required | Default | Description             |
| -------------- | ------- | -------- | ------- | ----------------------- |
| `id`           | integer | Yes      | —       | ID of Invoice to update |
| `contact_id`   | integer | No       | —       | Contact Id              |
| `created_at`   | string  | No       | —       | Created At              |
| `customer_id`  | integer | No       | —       | Customer Id             |
| `date`         | string  | No       | —       | The date value          |
| `due_date`     | string  | No       | —       | Due Date                |
| `hardwarecost` | number  | No       | —       | The hardwarecost value  |
| `location_id`  | integer | No       | —       | Location Id             |
| `note`         | string  | No       | —       | The note value          |
| `number`       | string  | No       | —       | The number value        |
| `po_number`    | string  | No       | —       | Po Number               |
| `ticket_id`    | integer | No       | —       | Ticket Id               |
| `updated_at`   | string  | No       | —       | Updated At              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice to update"
      },
      "contact_id": {
        "type": "integer",
        "description": "Contact Id"
      },
      "created_at": {
        "type": "string",
        "description": "Created At"
      },
      "customer_id": {
        "type": "integer",
        "description": "Customer Id"
      },
      "date": {
        "type": "string",
        "description": "The date value"
      },
      "due_date": {
        "type": "string",
        "description": "Due Date"
      },
      "hardwarecost": {
        "type": "number",
        "description": "The hardwarecost value"
      },
      "location_id": {
        "type": "integer",
        "description": "Location Id"
      },
      "note": {
        "type": "string",
        "description": "The note value"
      },
      "number": {
        "type": "string",
        "description": "The number value"
      },
      "po_number": {
        "type": "string",
        "description": "Po Number"
      },
      "ticket_id": {
        "type": "integer",
        "description": "Ticket Id"
      },
      "updated_at": {
        "type": "string",
        "description": "Updated At"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## repairshopr\_billing\_update\_invoices\_by\_id\_line\_items\_by\_line\_item\_id

Updates an a line item of an invoice by ID

**Parameters:**

| Parameter               | Type    | Required | Default | Description               |
| ----------------------- | ------- | -------- | ------- | ------------------------- |
| `id`                    | integer | Yes      | —       | ID of Invoice to update   |
| `line_item_id`          | integer | Yes      | —       | ID of line item to update |
| `cost`                  | number  | No       | —       | The cost value            |
| `discount_dollars`      | string  | No       | —       | Discount Dollars          |
| `item`                  | string  | No       | —       | The item value            |
| `line_discount_percent` | integer | No       | —       | Line Discount Percent     |
| `name`                  | string  | No       | —       | The name value            |
| `price`                 | number  | No       | —       | The price value           |
| `taxable`               | boolean | No       | —       | The taxable value         |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "ID of Invoice to update"
      },
      "line_item_id": {
        "type": "integer",
        "description": "ID of line item to update"
      },
      "cost": {
        "type": "number",
        "description": "The cost value"
      },
      "discount_dollars": {
        "type": "string",
        "description": "Discount Dollars"
      },
      "item": {
        "type": "string",
        "description": "The item value"
      },
      "line_discount_percent": {
        "type": "integer",
        "description": "Line Discount Percent"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "price": {
        "type": "number",
        "description": "The price value"
      },
      "taxable": {
        "type": "boolean",
        "description": "The taxable value"
      }
    },
    "required": [
      "PCID",
      "id",
      "line_item_id"
    ]
  }
  ```
</Expandable>
