---
agentTools:
  projectIndex: https://docs.developer.plastiq.com/llms.txt
---

# Create a Recipient

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Plastiq Public API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://connect.sandbox.plastiq.com/api",
      "description": "Sandbox server"
    },
    {
      "url": "https://connect.plastiq.com/api",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/recipients": {
      "post": {
        "parameters": [
          {
            "$ref": "#/components/parameters/TraceId"
          },
          {
            "$ref": "#/components/parameters/EndUserAgent"
          },
          {
            "$ref": "#/components/parameters/EndUserIp"
          },
          {
            "$ref": "#/components/parameters/EndUserOS"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceId"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceManufacturer"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceModel"
          }
        ],
        "summary": "Create a Recipient",
        "tags": [
          "Recipients"
        ],
        "requestBody": {
          "description": "Recipient to create",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecipientRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Recipient created successfully",
            "headers": {
              "Trace-Id": {
                "$ref": "#/components/headers/Trace-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recipient"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/RecipientBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "token"
      }
    },
    "headers": {
      "Trace-Id": {
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "description": "The trace ID for the request"
      }
    },
    "responses": {
      "RecipientBadRequest": {
        "description": "Bad Request. When a payer-scoped Recipient's `businessAddress` is rejected, `errors[0].field` is\n`businessAddress` and `errors[0].details` describes the reason. `errors` contains a single item; if\nmore than one address problem is found, they are combined in that one `details` string. Other rejected\nrequests return the generic `Bad request` details without `field`.\n\n`details` is informational and may change; rely on `errors[0].field` to identify the field to fix. It\nuses internal field names: `addressLine1` = `line1`, `stateOrProvince` = `state`, `zip` = `postalCode`.\n\nAddress Line 1 (`businessAddress.line1`) rules include:\n- At least 2 characters (any country).\n- When `businessAddress.country` is `US`, at least one letter (A-Z), e.g. `12345` and `#100` are rejected.\n",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "addressLine1TooShort": {
                "summary": "Address Line 1 shorter than 2 characters",
                "value": {
                  "code": "VALIDATION_ERROR",
                  "message": "Validation error",
                  "errors": [
                    {
                      "details": "Address validation failed: addressLine1 must be at least 2 characters",
                      "field": "businessAddress"
                    }
                  ],
                  "traceId": "39c9665f-09e7-40f6-8f54-1d1ef3f4f043"
                }
              },
              "addressLine1MissingLetter": {
                "summary": "US Address Line 1 without a letter",
                "value": {
                  "code": "VALIDATION_ERROR",
                  "message": "Validation error",
                  "errors": [
                    {
                      "details": "Address validation failed: addressLine1 must contain at least one letter (A-Z)",
                      "field": "businessAddress"
                    }
                  ],
                  "traceId": "39c9665f-09e7-40f6-8f54-1d1ef3f4f043"
                }
              },
              "genericBadRequest": {
                "summary": "Any other rejected request",
                "value": {
                  "code": "VALIDATION_ERROR",
                  "message": "Validation error",
                  "errors": [
                    {
                      "details": "Bad request"
                    }
                  ],
                  "traceId": "493fd53a-67eb-4009-9c31-6c67d70ea8be"
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "GENERIC_ERROR"
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "details": {
                  "type": "string"
                },
                "field": {
                  "type": "string",
                  "description": "Request field the error applies to. Only present on validation errors that name a field, e.g. `businessAddress`.",
                  "example": "businessAddress"
                }
              }
            }
          },
          "traceId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "payerId": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "8f51c396-6e29-49a6-ba5a-1a31d5420158"
          }
        }
      },
      "billerId": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "b5a9f084-033d-5a50-88d3-cce1c73a2fb1"
          }
        }
      },
      "Recipient": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "a8d4e641-e130-43d1-90a0-9717561539aa"
          },
          "externalId": {
            "type": "string",
            "description": "Consumer defined ID that will be attached to this resource",
            "pattern": "^[-a-zA-Z0-9_~.]*$"
          },
          "businessName": {
            "type": "string",
            "example": "Coffee Beans Supply Co."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "example": "d7a2beba-0c2c-42de-9690-26f00ba08339"
          },
          "businessAddress": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/RecipientAddress"
              }
            ]
          },
          "contact": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string",
                "example": "Bob"
              },
              "lastName": {
                "type": "string",
                "example": "Smith"
              },
              "email": {
                "type": "string",
                "example": "bobsmith@coffeebean.supply"
              },
              "phone": {
                "type": "string",
                "example": "4155550100"
              }
            }
          },
          "payer": {
            "$ref": "#/components/schemas/payerId"
          },
          "metadata": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/RecipientMetadata"
              }
            ]
          },
          "receivingMethod": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ACH"
              },
              {
                "$ref": "#/components/schemas/Check"
              },
              {
                "$ref": "#/components/schemas/EFT"
              }
            ],
            "example": {
              "type": "ACH",
              "accountLastFour": "4723",
              "routingNumber": "021000021",
              "beneficiaryName": "Coffee Beans Supply Co."
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2020-11-19T01:35:53.096Z"
          },
          "status": {
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Status"
              }
            ]
          }
        }
      },
      "CreateRecipientRequest": {
        "type": "object",
        "required": [
          "businessName",
          "categoryId",
          "businessAddress",
          "contact",
          "receivingMethod"
        ],
        "properties": {
          "businessName": {
            "type": "string",
            "example": "Coffee Beans Supply Co."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "example": "d7a2beba-0c2c-42de-9690-26f00ba08339"
          },
          "businessAddress": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/RecipientAddress"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ContactWithEmail"
              },
              {
                "$ref": "#/components/schemas/ContactWithPhone"
              }
            ]
          },
          "receivingMethod": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ACH"
              },
              {
                "$ref": "#/components/schemas/Check"
              },
              {
                "$ref": "#/components/schemas/EFT"
              },
              {
                "$ref": "#/components/schemas/Wire"
              }
            ],
            "example": {
              "type": "ACH",
              "accountNumber": "3829473294723",
              "routingNumber": "021000021",
              "beneficiaryName": "Coffee Beans Supply Co."
            }
          },
          "payer": {
            "$ref": "#/components/schemas/payerId"
          },
          "biller": {
            "$ref": "#/components/schemas/billerId"
          },
          "externalId": {
            "type": "string",
            "description": "Consumer defined ID that will be attached to this resource",
            "pattern": "^[-a-zA-Z0-9_~.]*$"
          },
          "metadata": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/RecipientMetadata"
              }
            ]
          }
        }
      },
      "ACH": {
        "type": "object",
        "required": [
          "type",
          "accountNumber",
          "routingNumber",
          "beneficiaryName"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ACH"
            ]
          },
          "accountNumber": {
            "type": "string",
            "example": "3829473294723",
            "description": "Bank ACH account number",
            "minLength": 6,
            "maxLength": 17
          },
          "routingNumber": {
            "type": "string",
            "example": "021000021",
            "description": "9 digit bank routing number",
            "minLength": 9,
            "maxLength": 9
          },
          "beneficiaryName": {
            "type": "string",
            "example": "Coffee Beans Supply Co.",
            "minLength": 1,
            "maxLength": 70
          }
        }
      },
      "Check": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CHECK"
            ]
          }
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/AddressWithNormalization"
          }
        ]
      },
      "EFT": {
        "type": "object",
        "required": [
          "type",
          "accountNumber",
          "routingNumber",
          "beneficiaryName"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "EFT"
            ]
          },
          "accountNumber": {
            "type": "string",
            "example": "3864328462",
            "description": "Bank EFT account number"
          },
          "routingNumber": {
            "type": "string",
            "example": "001012345",
            "description": "9 digit routing number (Example Canada EFT: 0IIIBBBBB)",
            "minLength": 9,
            "maxLength": 9
          },
          "beneficiaryName": {
            "type": "string",
            "example": "Coffee Beans Supply Co.",
            "minLength": 1,
            "maxLength": 70
          }
        }
      },
      "Wire": {
        "type": "object",
        "required": [
          "type",
          "accountNumber",
          "routingNumber",
          "beneficiaryName",
          "country"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WIRE"
            ]
          },
          "accountNumber": {
            "type": "string",
            "example": "3829473294723",
            "description": "Bank wire account number (alphanumeric)",
            "minLength": 1,
            "maxLength": 35
          },
          "routingNumber": {
            "type": "string",
            "example": "021000021",
            "description": "Bank wire routing number",
            "minLength": 8,
            "maxLength": 11
          },
          "beneficiaryName": {
            "type": "string",
            "example": "Coffee Beans Supply Co.",
            "minLength": 1,
            "maxLength": 70
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "enum": [
              "US"
            ]
          }
        }
      },
      "AddressWithNormalization": {
        "type": "object",
        "required": [
          "line1",
          "country",
          "city",
          "state",
          "postalCode"
        ],
        "properties": {
          "line1": {
            "type": "string",
            "description": "Address line 1 (e.g., street, PO Box, or company name).",
            "example": "360 9th St."
          },
          "line2": {
            "type": "string",
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "example": null
          },
          "city": {
            "type": "string",
            "description": "City, district, suburb, town, or village.",
            "example": "San Francisco"
          },
          "state": {
            "type": "string",
            "description": "State, county, province, or region.",
            "example": "CA"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP or postal code.",
            "example": "94103"
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "example": "US"
          },
          "normalize": {
            "type": "boolean",
            "description": "Normalize address and validate deliverability",
            "example": true
          }
        }
      },
      "ContactWithPhone": {
        "type": "object",
        "required": [
          "phone"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "example": "Bob"
          },
          "lastName": {
            "type": "string",
            "example": "Smith"
          },
          "email": {
            "type": "string",
            "example": "bobsmith@coffeebean.supply"
          },
          "phone": {
            "type": "string",
            "example": "4155550100"
          }
        }
      },
      "ContactWithEmail": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "example": "Bob"
          },
          "lastName": {
            "type": "string",
            "example": "Smith"
          },
          "email": {
            "type": "string",
            "example": "bobsmith@coffeebean.supply"
          },
          "phone": {
            "type": "string",
            "example": "4155550100"
          }
        }
      },
      "RecipientAddress": {
        "type": "object",
        "required": [
          "line1",
          "country",
          "city",
          "state",
          "postalCode"
        ],
        "properties": {
          "line1": {
            "type": "string",
            "description": "Address line 1 (e.g., street, PO Box, or company name).",
            "example": "19439 Stevens Creek Blvd"
          },
          "line2": {
            "type": "string",
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "example": null
          },
          "city": {
            "type": "string",
            "description": "City, district, suburb, town, or village.",
            "example": "Cupertino"
          },
          "state": {
            "type": "string",
            "description": "State, county, province, or region.",
            "example": "CA"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP or postal code.",
            "example": "95014"
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "example": "US"
          }
        }
      },
      "RecipientMetadata": {
        "description": "Additional Recipient information to support operational requirements",
        "properties": {
          "accountSettings": {
            "$ref": "#/components/schemas/AccountSettingsMetadata"
          },
          "beneficialOwners": {
            "$ref": "#/components/schemas/BeneficialOwnersMetadata"
          }
        }
      },
      "AccountSettingsMetadata": {
        "type": "object",
        "properties": {
          "emailConfirmation": {
            "type": "boolean",
            "description": "Whether or not the associated entity has confirmed its email.",
            "example": true
          },
          "phoneConfirmation": {
            "type": "boolean",
            "description": "Whether or not the associated entity has confirmed its phone number.",
            "example": true
          },
          "singleSignOn": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses single-sign-on.",
            "example": true
          },
          "singleSignOnType": {
            "type": "string",
            "description": "The single-sign-on service the associated entity uses.",
            "example": "OKTA"
          },
          "twoFactor": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses two-factor authentication.",
            "example": true
          },
          "multiFactor": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses multi-factor authentication.",
            "example": true
          }
        }
      },
      "BeneficialOwnersMetadata": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/BeneficialOwner"
        }
      },
      "BeneficialOwner": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "example": "Bob"
          },
          "lastName": {
            "type": "string",
            "example": "Smith"
          }
        }
      },
      "Status": {
        "example": "ACTIVE",
        "type": "string",
        "description": "The status of an object",
        "enum": [
          "ACTIVE",
          "INACTIVE",
          "UNKNOWN"
        ]
      }
    },
    "parameters": {
      "TraceId": {
        "in": "header",
        "name": "Trace-Id",
        "schema": {
          "type": "string"
        },
        "description": "A valid UUID (V4) for tracing requests. Will be returned as a header. If not present or invalid, a generated UUID will be returned."
      },
      "EndUserAgent": {
        "name": "End-User-Agent",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "A string representing the User Agent of the end user. Recommended for compliance. Required only when the request is not coming from the end user's browser."
      },
      "EndUserDeviceId": {
        "name": "End-User-Device-Id",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "A unique identifier for the end user's device. Recommended for compliance."
      },
      "EndUserDeviceModel": {
        "name": "End-User-Device-Model",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The device model used by the end user. Recommended for compliance."
      },
      "EndUserDeviceManufacturer": {
        "name": "End-User-Device-Manufacturer",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The manufacturer of the device used by the end user. Recommended for compliance."
      },
      "EndUserIp": {
        "name": "End-User-Ip",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The IP address of the end user. Recommended for compliance."
      },
      "EndUserOS": {
        "name": "End-User-OS",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The Operating System of the end user. Recommended for compliance."
      }
    }
  },
  "tags": [
    {
      "name": "Recipients",
      "description": "The recipient is the party (usually a business) to whom funds are sent. This is usually a business address or bank account."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 186,
      "2": 221,
      "3": 177,
      "4": 47,
      "5": 247,
      "6": 88,
      "7": 60,
      "8": 163,
      "9": 25,
      "10": 117,
      "11": 185
    }
  }
}
```