Skip to content

Create vendor

Request

This endpoint creates a new vendor.

Security
OAuth2(Required scopes: vendors)
Headers
Idempotency-Keystringrequired
Bodyapplication/jsonrequired
company_namestringrequired

Name for vendor. The name must be unique.

emailstring or null, (email)

Email for vendor.

phonestring or null

Phone number for vendor.

payment_accountsArray of objects or null(PaymentAccountRequest)

Payment accounts associated with the vendor.

curl -i -X POST \
  https://api.brex.com/v1/vendors \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: string' \
  -d '{
    "company_name": "string",
    "email": "user@example.com",
    "phone": "string",
    "payment_accounts": [
      {
        "details": {
          "type": "DOMESTIC_WIRE",
          "routing_number": "string",
          "account_number": "string",
          "address": {
            "line1": "string",
            "line2": "string",
            "city": "string",
            "state": "string",
            "country": "string",
            "postal_code": "string",
            "phone_number": "string"
          },
          "beneficiary_name": "string"
        }
      }
    ]
  }'

Responses

createVendor 200 response

Bodyapplication/json
idstringrequired

Vendor ID: Can be passed to /transfers endpoint to specify counterparty.

company_namestring or null
emailstring or null
phonestring or null
payment_accountsArray of objects or null(PaymentAccountResponse)
Response
{ "id": "string", "company_name": "string", "email": "string", "phone": "string", "payment_accounts": [ { … } ] }