Skip to main content

Create US Counterparty

This endpoint creates a counterparty for the United States using ACH or Wire transfer protocols.

Authorization:

bearer

HTTP: bearer

HTTP Authorization Scheme: bearer

Headers:
Authorization: APIKey {YOUR_API_KEY}

Endpoint

POST

/api/v2/banking/counterparties

Request Body Sample​

ACH Counterparty​

{
"accountId": "00000000-0000-0000-0000-000000000000",
"reference": "US-VENDOR-001",
"counterpartyName": "John Smith",
"address": {
"address1": "123 Main Street",
"address2": "Suite 100",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
},
"accountNumber": "123456789",
"routingNumber": "021000021",
"bankName": "Chase Bank",
"type": "individual",
"instrumentType": "ach",
"accountType": "checking",
"bankAddress": {
"address1": "270 Park Avenue",
"city": "New York",
"state": "NY",
"postalCode": "10017",
"country": "US"
}
}

International Wire Counterparty​

{
"accountId": "00000000-0000-0000-0000-000000000000",
"reference": "INTL-VENDOR-001",
"counterpartyName": "Global Corp",
"address": {
"address1": "10 Downing Street",
"city": "London",
"postalCode": "SW1A 2AA",
"country": "GB"
},
"routingNumber": "021000021",
"swiftCode": "CHASUS33",
"iban": "GB29NWBK60161331926819",
"bankName": "National Westminster Bank",
"type": "business",
"instrumentType": "wire",
"wireType": "international",
"bankAddress": {
"address1": "250 Bishopsgate",
"city": "London",
"postalCode": "EC2M 4AA",
"country": "GB"
}
}

Request Body Schema​

FieldTypeDescription
accountIdstring (uuid)Required. The account ID to associate with this counterparty.
referencestringRequired. A unique user-defined reference. Min 1, max 255 characters.
counterpartyNamestringRequired. Counterparty name. Min 2, max 255 characters.
addressobjectRequired. Counterparty's address.
instrumentTypestringRequired. Payment instrument type. Values: ach, wire.
accountTypestringRequired when instrumentType is ach. Bank account type. Values: checking, savings.
wireTypestringRequired when instrumentType is wire. Values: domestic, international.
accountNumberstringBank account number. 4-17 characters. Required for ACH and domestic wire. Required for international wire if iban is not provided.
routingNumberstringBank routing number. Exactly 9 characters. Required for all payment types.
swiftCodestringSWIFT/BIC code. 8-11 characters. Required for international wire.
ibanstringIBAN. 15-34 characters. Required for international wire if accountNumber is not provided.
bankNamestringRequired. Bank name. Min 2, max 255 characters.
typestringOptional. Counterparty type. Values: individual, business.
bankAddressobjectOptional. Bank's address. Same schema as address.

Payment Type Requirements​

TypeRequired Fields
ACH (instrumentType: "ach")routingNumber + accountNumber + accountType
Domestic Wire (instrumentType: "wire", wireType: "domestic")routingNumber + accountNumber
International Wire (instrumentType: "wire", wireType: "international")routingNumber + swiftCode + (accountNumber or iban)

Response Sample​

{
"id": "00000000-0000-0000-0000-000000000000",
"accountId": "00000000-0000-0000-0000-000000000000",
"reference": "US-VENDOR-001",
"currency": "USD",
"counterpartyName": "John Smith",
"address": {
"address1": "123 Main Street",
"address2": "Suite 100",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
},
"accountNumber": "123456789",
"routingNumber": "021000021",
"swiftCode": "",
"iban": "",
"bankName": "Chase Bank",
"type": "individual",
"instrumentType": "ach",
"accountType": "checking",
"bankAddress": {
"address1": "270 Park Avenue",
"city": "New York",
"state": "NY",
"postalCode": "10017",
"country": "US"
},
"status": "active",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z"
}

Support and Resources​

If you need assistance or have any questions, our support team is here to help. You can contact our support team at support@blockwyre.com.

Stay Updated​

Stay up-to-date with the latest news, updates, and features from BlockWyre by following us on social media:

We are excited to have you on board and look forward to seeing how you leverage BlockWyre's powerful tools to enhance your financial operations. Happy integrating!