# ChargeOver

> Manage ChargeOver customers, invoices, payments and subscriptions, and start workflows when they change.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/chargeover

## Actions

### Cancel subscription

Cancel a subscription now, or on a day you choose.

**Inputs**

- Subscription (`package_id`, number, required): The ID of the subscription to cancel.
- Cancel on (`cancel_date`, date): A future day to cancel on. Leave empty to cancel now.
- Cancel reason (`cancel_reason_id`, number): The ID of one of your account's cancellation reasons.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": true,
    "status": "OK"
  }
}
```

### Create contact

Add a contact to a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer the contact belongs to.
- Username (`username`, text, required): A unique username for their customer portal sign-in.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Job title (`title`, text): Their job title.
- External key (`external_key`, text): Your own ID for this contact, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Create customer

Add a customer.

**Inputs**

- Company (`company`, text, required): The customer's company or name.
- Contact first name (`superuser_first_name`, text): The main contact's first name.
- Contact last name (`superuser_last_name`, text): The main contact's last name.
- Contact email (`superuser_email`, text): The main contact's email address.
- Contact phone (`superuser_phone`, text): The main contact's phone number.
- Billing address line 1 (`bill_addr1`, text): First line of the billing address.
- Billing address line 2 (`bill_addr2`, text): Second line of the billing address.
- Billing city (`bill_city`, text): Billing city.
- Billing state (`bill_state`, text): Billing state or province.
- Billing postal code (`bill_postcode`, text): Billing postal code.
- Billing country (`bill_country`, text): Billing country.
- External key (`external_key`, text): Your own ID for this customer, if you keep one.
- Parent customer (`parent_customer_id`, number): The customer this one belongs to, if any.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Create invoice

Make an invoice for a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer to invoice.
- Lines (`line_items`, list, required): The invoice's lines. Each needs an item ID from List items; the description, rate and quantity are optional.
- Invoice date (`date`, date): The invoice date. Leave empty for today.
- Invoice number (`refnumber`, text): An invoice number of your own. Leave empty to have ChargeOver number it.
- Memo (`memo`, text): A note to the customer shown on the invoice.
- External key (`external_key`, text): Your own ID for this invoice, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Create note

Add a note to a customer, subscription, invoice, contact, quote or item.

**Inputs**

- Note (`note`, text, required): The note's text.
- Attach to (`context_str`, text, required): What kind of record the note is for. One of: `customer`, `billing_package` (Subscription), `invoice`, `user` (Contact), `quote`, `item`.
- Record ID (`context_id`, text, required): The ID of that record, such as a customer ID.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Create subscription

Start a subscription for a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer to subscribe.
- Lines (`line_items`, list, required): The subscription's lines. Each needs an item ID from List items; the description and quantity are optional.
- Nickname (`nickname`, text): A name for the subscription.
- Billing cycle (`paycycle`, text): How often to bill. Leave empty for your account's default. One of: `dly` (Daily), `1wk` (Every week), `2wk` (Every other week), `116` (1st and 16th), `4wk` (Every four weeks), `8wk` (Every eight weeks), `30d` (Every 30 days), `mon` (Monthly), `2mn` (Every other month), `12w` (Every twelve weeks), and 8 more.
- Payment method (`paymethod`, text): How it is paid. Leave empty to send invoices. One of: `crd` (Card on file), `ach` (Bank account on file), `inv` (Send invoices), `tok` (Saved payment token).
- First invoice date (`holduntil_datetime`, date): Hold invoicing until this day.
- External key (`external_key`, text): Your own ID for this subscription, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Delete contact

Delete a contact.

**Inputs**

- Contact (`user`, number, required): The ID of the contact to delete.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": true,
    "status": "OK"
  }
}
```

### Delete note

Delete a note.

**Inputs**

- Note (`note_id`, number, required): The ID of the note to delete.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": true,
    "status": "OK"
  }
}
```

### Email invoice

Email an invoice to the customer, or to the address you give.

**Inputs**

- Invoice (`invoice_id`, number, required): The ID of the invoice to send.
- To (`email`, text): Send it here instead of to the customer's contacts.
- Cc (`cc`, text): Copy it to this address.
- Bcc (`bcc`, text): Blind copy it to this address.
- Subject (`subject`, text): A subject to use instead of the template's.
- Message (`body_text`, text): A plain-text message to use instead of the template's.
- Email template (`message_id`, number): The ID of an email template to use instead of the default, as shown in the template's address in ChargeOver.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": true,
    "status": "OK"
  }
}
```

### Get customer

Get one customer's details and balance.

**Inputs**

- Customer (`customer_id`, number, required): The customer to get.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": {
      "balance": 1510.65,
      "bill_addr1": "56 Wintergreen Street",
      "bill_city": "Hamden",
      "bill_country": "United States",
      "bill_postcode": "06517",
      "bill_state": "CT",
      "company": "Karli Marie",
      "currency_iso4217": "USD",
      "customer_id": 16,
      "customer_status_name": "Over Due",
      "customer_status_str": "active-overdue",
      "display_as": "Karli Marie",
      "mod_datetime": "2017-12-01 21:37:50",
      "paid": 1145.46,
      "superuser_email": "karli@chargeover.com",
      "superuser_id": 364,
      "superuser_name": "Karli Marie",
      "superuser_phone": "860-249-1317",
      "tags": [
        "tag1",
        "tag2"
      ],
      "terms_name": "Due on Receipt",
      "token": "fozdqj169569",
      "total": 2656.11,
      "url_self": "https://dev.chargeover.com/admin/r/customer/view/16",
      "write_datetime": "2017-05-18 09:36:19"
    },
    "status": "OK"
  }
}
```

### Get invoice

Get one invoice with its lines.

**Inputs**

- Invoice (`invoice_id`, number, required): The ID of the invoice to get.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": {
      "balance": 65,
      "credits": 0,
      "currency_iso4217": "USD",
      "customer_id": 3488,
      "date": "2019-09-26",
      "days_overdue": 0,
      "due_date": "2019-12-20",
      "invoice_id": 98165,
      "invoice_status_name": "Unpaid",
      "invoice_status_str": "open-unpaid",
      "is_overdue": false,
      "is_paid": false,
      "is_void": false,
      "line_items": [
        {
          "descrip": "1-month subscription to gold plan.",
          "item_id": 29,
          "item_name": "Gold Plan",
          "line_quantity": 1,
          "line_rate": 100
        }
      ],
      "payments": 35,
      "refnumber": "98165",
      "subtotal": 100,
      "taxes": 0,
      "terms_name": "Net 30",
      "total": 100,
      "url_paylink": "http://dev1.chargeover.test/r/trans/pay/1tslo5m9h51b",
      "url_pdflink": "http://dev1.chargeover.test/r/invoice/pdf/1tslo5m9h51b",
      "url_permalink": "http://dev1.chargeover.test/r/invoice/view/1tslo5m9h51b",
      "url_self": "http://dev1.chargeover.test/admin/r/invoice/view/98165",
      "write_datetime": "2019-09-26 10:16:43"
    },
    "status": "OK"
  }
}
```

### Get item

Get one product, service or discount.

**Inputs**

- Item (`item_id`, number, required): The item to get.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": {
      "description": "",
      "enabled": true,
      "item_id": 665,
      "item_type": "bundle",
      "mod_datetime": "2024-05-06 15:06:02",
      "name": "My Bundle Example",
      "token": "1jr4crjxtgnt",
      "write_datetime": "2024-05-06 15:06:02"
    },
    "status": "OK"
  }
}
```

### Get subscription

Get one subscription with its lines.

**Inputs**

- Subscription (`package_id`, number, required): The ID of the subscription to get.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": {
      "amount_collected": 0,
      "amount_due": 250,
      "amount_invoiced": 250,
      "currency_iso4217": "USD",
      "customer_id": 22,
      "days_overdue": 0,
      "is_overdue": false,
      "line_items": [
        {
          "item_id": 254,
          "item_name": "Premium Silver",
          "line_item_id": 23,
          "line_quantity": 1,
          "subscribe_datetime": "2017-09-20 12:33:44",
          "tierset": {
            "base": 250,
            "paycycle": "evy",
            "pricemodel": "fla"
          }
        }
      ],
      "mod_datetime": "2017-09-20 12:33:44",
      "next_invoice_datetime": "2017-10-20 00:00:01",
      "package_id": 21,
      "package_status_name": "Current",
      "package_status_state": "a",
      "package_status_str": "active-current",
      "paycycle": "mon",
      "paymethod": "inv",
      "start_datetime": "2017-09-20 12:33:44",
      "terms_name": "Net 30",
      "token": "1tk5j5u2efhi",
      "url_self": "http://dev.chargeover.com/admin/r/package/view/21",
      "write_datetime": "2017-09-20 12:33:44"
    },
    "status": "OK"
  }
}
```

### Get transaction

Get one payment, refund or credit, with the invoices it was applied to.

**Inputs**

- Transaction (`transaction_id`, number, required): The ID of the transaction to get.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": {
      "amount": 75,
      "applied": 75,
      "applied_to": [
        {
          "applied": 75,
          "invoice_id": 1027
        }
      ],
      "currency_iso4217": "USD",
      "customer_id": 48,
      "fee": 0,
      "gateway_status": 1,
      "gateway_transid": "1563978556",
      "transaction_date": "2019-07-24",
      "transaction_datetime": "2019-07-24 09:29:16",
      "transaction_detail": "x1111",
      "transaction_id": 43,
      "transaction_method": "Visa",
      "transaction_status_name": "Success",
      "transaction_status_str": "ok-successful",
      "transaction_type": "pay",
      "transaction_type_name": "Payment",
      "unapplied": 0,
      "url_self": "https://dev1.chargeover.com/admin/r/transaction/view/43"
    },
    "status": "OK"
  }
}
```

### List contacts

List contacts, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only contacts matching all of these conditions, each written as field:OPERATOR:value, such as customers.customer_id:EQUALS:16. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as user_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "display_as": "Keith Palmer",
        "email": "keith@chargeover.com",
        "first_name": "Keith",
        "last_name": "Palmer",
        "mod_datetime": "2014-07-08 14:26:01",
        "name": "Keith Palmer",
        "phone": "860-634-1602",
        "title": "",
        "user_id": 362,
        "username": "7yanhoctj6qs",
        "write_datetime": "2014-07-02 09:58:37"
      }
    ],
    "status": "OK"
  }
}
```

### List customers

List customers, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only customers matching all of these conditions, each written as field:OPERATOR:value, such as company:CONTAINS:Acme. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as customer_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "bill_block": "Canada",
        "bill_country": "Canada",
        "company": "CA Test Customer 1",
        "customer_id": 7,
        "display_as": "CA Test Customer 1",
        "email": "asgdadg@asdgaggd.com",
        "mod_datetime": "2013-08-22 08:57:09",
        "phone": "",
        "superuser_id": 357,
        "write_datetime": "2013-08-22 08:57:09"
      }
    ],
    "status": "OK"
  }
}
```

### List invoices

List invoices, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only invoices matching all of these conditions, each written as field:OPERATOR:value, such as invoice_status_str:EQUALS:open-overdue. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as invoice_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "balance": 150,
        "credits": 0,
        "customer_id": "1",
        "invoice_id": "2688",
        "invoice_status_name": "Unpaid",
        "invoice_status_state": "o",
        "invoice_status_str": "open-unpaid",
        "is_paid": false,
        "is_void": false,
        "payments": 0,
        "total": 150,
        "url_pdflink": "https://dev.chargeover.com/r/invoice/pdf/i17fq4huy2ar",
        "url_permalink": "https://dev.chargeover.com/r/invoice/view/i17fq4huy2ar",
        "write_datetime": "2012-11-09 18:10:03"
      }
    ],
    "status": "OK"
  }
}
```

### List items

List products, services and discounts, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only items matching all of these conditions, each written as field:OPERATOR:value, such as item_type:EQUALS:service. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as item_id:ASC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "description": "This is a ChargeOver test item.",
        "item_id": 1,
        "item_type": "service",
        "mod_datetime": "2014-12-02 18:46:48",
        "name": "My Test Service Plan",
        "tiersets": [
          {
            "base": 10.95,
            "base_formatted": "$ 10.95",
            "paycycle": "mon",
            "pricemodel": "fla",
            "pricemodel_desc": "Flat Pricing (e.g. $X dollars per month)",
            "setup": 0,
            "tierset_id": 1
          }
        ],
        "token": "d56c047651ec",
        "write_datetime": "2014-12-02 18:46:48"
      }
    ],
    "status": "OK"
  }
}
```

### List notes

List notes, such as every note on one customer.

**Inputs**

- Filters (`where`, list): Only notes matching all of these conditions, each written as field:OPERATOR:value, such as context_str:EQUALS:customer. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as note_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "admin_id": 1,
        "context_id": 265,
        "context_str": "customer",
        "note": "Customer agreed to upgrade to PRO plan.",
        "note_datetime": "2024-02-16 07:46:58",
        "note_id": 3,
        "note_is_pinned": false
      },
      {
        "admin_id": 1,
        "context_id": 265,
        "context_str": "customer",
        "note": "Customer requested billing date be changed from 14th of the month to 12th of the month; credit issues.",
        "note_datetime": "2024-02-16 07:47:14",
        "note_id": 4,
        "note_is_pinned": false
      }
    ],
    "status": "OK"
  }
}
```

### List subscriptions

List subscriptions, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only subscriptions matching all of these conditions, each written as field:OPERATOR:value, such as package_status_state:EQUALS:a. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as package_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "amount_collected": 0,
        "amount_due": 0,
        "amount_invoiced": 0,
        "currency_iso4217": "USD",
        "customer_id": 16,
        "external_key": "adlink_5901",
        "mod_datetime": "2014-06-20 15:52:57",
        "next_invoice_datetime": "2014-09-01 00:00:01",
        "package_id": 16,
        "package_status_name": "Current",
        "package_status_state": "a",
        "package_status_str": "active-current",
        "paycycle": "mon",
        "paymethod": "crd",
        "write_datetime": "2014-06-20 15:52:47"
      }
    ],
    "status": "OK"
  }
}
```

### List transactions

List payments, refunds and credits, filtered and sorted as you choose.

**Inputs**

- Filters (`where`, list): Only transactions matching all of these conditions, each written as field:OPERATOR:value, such as transaction_type:EQUALS:pay. Operators are EQUALS, NOTEQUALS, GT, LT, GTE, LTE, CONTAINS, IS:NULL and ISNOT:NULL.
- Sort (`order`, text): A field and direction to sort by, such as transaction_id:DESC.
- Limit (`limit`, number): How many to return, up to 500. ChargeOver returns 10 if you leave it empty. From 1 to 500.
- Skip (`offset`, number): How many to skip before the first one returned, for reading later pages. At least 0.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": [
      {
        "amount": 10.95,
        "currency_iso4217": "USD",
        "customer_id": 1,
        "fee": -0.33,
        "gateway_status": 1,
        "gateway_transid": "*TEST CC* Mon, 16 Feb 2015 16:29:13 -0500",
        "token": "6by30nr7dxlh",
        "transaction_date": "2015-02-16",
        "transaction_datetime": "2015-02-16 20:29:13",
        "transaction_detail": "x1111",
        "transaction_id": 65,
        "transaction_method": "Visa",
        "transaction_type": "pay",
        "transaction_type_name": "Payment"
      },
      {
        "amount": 25.95,
        "currency_iso4217": "USD",
        "customer_id": 1,
        "fee": 0,
        "gateway_status": 0,
        "gateway_transid": "example",
        "token": "flsxubzeao0t",
        "transaction_date": "2015-02-20",
        "transaction_datetime": "2015-02-20 20:20:34",
        "transaction_detail": "x1111",
        "transaction_id": 66,
        "transaction_method": "Visa",
        "transaction_type": "pay",
        "transaction_type_name": "Payment"
      }
    ],
    "status": "OK"
  }
}
```

### Record payment

Record a payment a customer made outside ChargeOver, such as a check. Nothing is charged.

**Inputs**

- Customer (`customer_id`, number, required): The customer who paid.
- Amount (`amount`, number, required): How much they paid. At least 0.
- Payment method (`gateway_method`, text): How they paid. One of: `visa`, `mastercard`, `american-express` (American Express), `discover`, `check`, `paypal`, `credit`, `ach`.
- Payment date (`transaction_date`, date): The day they paid. Leave empty for today.
- Reference (`gateway_transid`, text): A reference for the payment, such as a check number.
- Details (`transaction_detail`, text): Any details to keep with the payment.
- External key (`external_key`, text): Your own ID for this payment, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Update contact

Change a contact's details. Fields you leave empty stay as they are.

**Inputs**

- Contact (`user`, number, required): The ID of the contact to change.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Job title (`title`, text): Their job title.
- External key (`external_key`, text): Your own ID for this contact, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Update customer

Change a customer's details. Fields you leave empty stay as they are.

**Inputs**

- Customer (`customer_id`, number, required): The customer to change.
- Company (`company`, text): The customer's company or name.
- Contact first name (`superuser_first_name`, text): The main contact's first name.
- Contact last name (`superuser_last_name`, text): The main contact's last name.
- Contact email (`superuser_email`, text): The main contact's email address.
- Contact phone (`superuser_phone`, text): The main contact's phone number.
- Billing address line 1 (`bill_addr1`, text): First line of the billing address.
- Billing address line 2 (`bill_addr2`, text): Second line of the billing address.
- Billing city (`bill_city`, text): Billing city.
- Billing state (`bill_state`, text): Billing state or province.
- Billing postal code (`bill_postcode`, text): Billing postal code.
- Billing country (`bill_country`, text): Billing country.
- External key (`external_key`, text): Your own ID for this customer, if you keep one.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 201,
    "message": "",
    "response": {
      "id": 1234
    },
    "status": "OK"
  }
}
```

### Void invoice

Void an invoice so nothing is due and no more payments are tried.

**Inputs**

- Invoice (`invoice_id`, number, required): The ID of the invoice to void.

**Outputs**

- `data` (object): The response from ChargeOver.

**Example output**

```json
{
  "data": {
    "code": 200,
    "message": "",
    "response": true,
    "status": "OK"
  }
}
```
