Skip to main content

Update US Counterparty

This endpoint updates an existing US counterparty.

Authorization:

bearer

HTTP: bearer

HTTP Authorization Scheme: bearer

Headers:
Authorization: APIKey {YOUR_API_KEY}

Endpoint

PUT

/api/v2/banking/counterparties/{id}

Path Parameters​

ParameterTypeDescription
idstring (uuid)Required. The counterparty ID to update.

Request Body Sample​

{
"counterpartyName": "John Smith Updated",
"address": {
"address1": "456 Broadway",
"city": "Los Angeles",
"state": "CA",
"postalCode": "90001",
"country": "US"
},
"accountNumber": "987654321",
"routingNumber": "021000021",
"bankName": "Bank of America",
"type": "individual",
"instrumentType": "wire",
"wireType": "domestic",
"bankAddress": {
"address1": "100 N Tryon St",
"city": "Charlotte",
"state": "NC",
"postalCode": "28202",
"country": "US"
}
}

Request Body Schema​

FieldTypeDescription
counterpartyNamestringRequired. Counterparty name. Min 2, max 255 characters.
addressobjectRequired. Counterparty's address.
instrumentTypestringRequired. Payment instrument type. Values: ach, wire.
wireTypestringRequired when instrumentType is wire. Values: domestic, international.
accountNumberstringBank account number. 4-17 characters.
routingNumberstringBank routing number. Exactly 9 characters.
swiftCodestringSWIFT/BIC code. 8-11 characters.
ibanstringIBAN. 15-34 characters.
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
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 Updated",
"address": {
"address1": "456 Broadway",
"city": "Los Angeles",
"state": "CA",
"postalCode": "90001",
"country": "US"
},
"accountNumber": "987654321",
"routingNumber": "021000021",
"swiftCode": "",
"iban": "",
"bankName": "Bank of America",
"type": "individual",
"instrumentType": "wire",
"wireType": "domestic",
"bankAddress": {
"address1": "100 N Tryon St",
"city": "Charlotte",
"state": "NC",
"postalCode": "28202",
"country": "US"
},
"status": "active",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-02T00: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!