---
updatedAt: 2025-10-02T22:25:50.000Z
agentTools:
  projectIndex: https://developer.bill.com/v2/llms.txt
---

# Invite a customer or vendor in the BILL network

Send an invitation to connect your organization with a customer or vendor organization in the BILL network.

The invitation is sent to the organization email address. If the invited organization does not respond, cancel the invite (with `/v2/CancelInvite.json`) before sending a new invitation.

**Note**: If an organization does not respond to an invitation for 60 days, the invitation expires.

### Prerequisites
This is an MFA protected endpoint. Create an MFA-protected API session with `/v2/Login.json` before using `/v2/SendInvite.json`.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "BILL network operations",
    "version": "2.0",
    "description": "BILL is a cloud-based cash flow management system for an organization's Accounts Payable (AP) and Accounts Receivable (AR) automation.\n * **AP**: Automate workflows to pay vendors bills at scale for the goods and services they provide. Pay vendors with a wide range of payment methods. Generate vendor credits, bill credits, and payment disbursement reports.\n * **AR**: Automate workflows to get paid by customers at scale for the goods and services you provide. Generate and send invoices on a schedule, generate customer and invoice credits, and seamlessly charge authorized customers.\n * **Organization**: Manage your bank accounts (for sending and receiving payments), users (with user roles), and sync with your choice of accounting software.\n\nIntegrate with the BILL API to send and receive payments for your business. See [Support Center](https://help.bill.com/hc/en-us) for resources about using the BILL web app.",
    "contact": {
      "email": "developerprogram@hq.bill.com"
    }
  },
  "servers": [
    {
      "url": "https://api-stage.bill.com/api/v2",
      "description": "Sandbox base URL"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "java",
      "javascript",
      "python",
      "ruby"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "paths": {
    "/SendInvite.json": {
      "post": {
        "summary": "Invite a customer or vendor in the BILL network",
        "operationId": "network-sendinvite",
        "description": "Send an invitation to connect your organization with a customer or vendor organization in the BILL network.\n\nThe invitation is sent to the organization email address. If the invited organization does not respond, cancel the invite (with `/v2/CancelInvite.json`) before sending a new invitation.\n\n**Note**: If an organization does not respond to an invitation for 60 days, the invitation expires.\n\n### Prerequisites\nThis is an MFA protected endpoint. Create an MFA-protected API session with `/v2/Login.json` before using `/v2/SendInvite.json`.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendInviteResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "devKey",
                  "sessionId",
                  "data"
                ],
                "properties": {
                  "devKey": {
                    "type": "string",
                    "description": "Developer key generated with your BILL developer account"
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "API session ID generated with [`/v2/Login.json`](ref:auth-login)"
                  },
                  "data": {
                    "$ref": "#/components/schemas/SendInviteRequest"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Network operations"
        ]
      },
      "parameters": []
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code (only when `response_status` is `1`)"
          },
          "error_message": {
            "type": "string",
            "description": "Error message (only when `response_status` is `1`)"
          }
        }
      },
      "SendInviteRequest": {
        "type": "object",
        "required": [
          "networkId",
          "id"
        ],
        "properties": {
          "networkId": {
            "type": "string",
            "description": "Payment Network ID (PNI) of the invited organization. BILL uses the PNI to uniquely identify the customer or vendor in the BILL network (retrieved with `/v2/NetworkSearch.json`)."
          },
          "id": {
            "type": "string",
            "description": "BILL-generated ID of your customer organization (for receiving payments) or vendor organization (for making payments). Retrieve the `id` with `/v2/List/Customer.json` or `/v2/List/Vendor.json`."
          }
        }
      },
      "SendInviteResponse": {
        "type": "object",
        "properties": {
          "response_status": {
            "type": "integer",
            "description": "Response status.\n* `0`: Success response\n* `1`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_message": {
            "type": "string",
            "description": "Response status.\n* `Success`: Success response\n* `Error`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_data": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorResponse"
              }
            ],
            "properties": {
              "requestId": {
                "type": "string",
                "description": "Invitation request ID.\n\nYou can use this ID to cancel your invite with `/v2/CancelInvite.json`."
              }
            }
          }
        }
      }
    }
  }
}
```