UpdateDBA
UpdateDBA
This endpoint modifies the name or address of an existing DBA associated with a recipient.
Identify the DBA using its DBAId or DBARef.
PUT recipient/updatedbaRequest Body
| Field | Type | Description |
|---|---|---|
| RecipientId | GUID | TaxBandits-generated unique identifier for the recipient. |
| PayeeRef | String | Optional Your unique identifier for the recipient. |
| DBADetails | Object [] | Information about the DBA. |
| DBAId | GUID | TaxBandits-generated unique identifier for the DBA. |
| SequenceId | String | Optional A unique reference ID for the submission that can be used to identify a particular DBA. The Sequence ID will be returned in the Response for your reference. Max 50 characters |
| DBANm | String | Name of the DBA. Max 75 characters |
| DBARef | String | Your unique identifier for the DBA. 1-50 characters |
| Address | Object | Address information of DBA. |
| Address1 | String | Street address or PO Box. Max 46 characters |
| Address2 | String | Optional Suite or apartment number. Max 46 characters |
| City | String | DBA's city. Max 40 characters |
| ProvinceOrState | String | DBA's province or state name. Max 40 characters |
| ZipCd | String | DBA's zip code. 8-10 characters |
| Country | String | Allowed values"AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "OD", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI" |
Response Body
| Field | Type | Description |
|---|---|---|
| StatusCode | number | HTTP status code of the response. |
| RecipientId | GUID | TaxBandits-generated unique identifier for the recipient. |
| PayeeRef | String | Your unique identifier for the recipient. |
| SuccessRecords | Object [] | DBA records that were updated successfully. |
| SequenceId | String | A unique reference ID for the submission that can be used to identify a particular DBA. |
| DBAId | GUID | TaxBandits-generated unique identifier for the DBA. |
| DBARef | String | Your unique identifier for the DBA. |
| DBANm | String | Name of the DBA. |
| ErrorRecords | Object [] | A unique reference ID for the submission that can be used to identify a particular DBA. |
| DBAId | GUID | TaxBandits-generated unique identifier for the DBA. |
| DBARef | String | Your unique identifier for the DBA. |
| DBANm | String | Name of the DBA. |
| Errors | Object [] | Validation error details. |
| Id | String | Validation error code. |
| Name | String | Name of the validation rule that failed. |
| Message | String | Description of the error. |
| Errors | Object [] | Top-level request errors if the entire request cannot be processed. |
| Id | String | Validation error code. |
| Name | String | Name of the validation rule that failed. |
| Message | String | Description of what went wrong. |
Payload

Go Lang
Node.js
Python
.NET C#

Ruby
Java

cURL
| Sample | Description | Action |
|---|---|---|
| Sample 1 | Update DBA details for a recipient using PayeeRef and DBAId. |
Sample 1
{
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
}
| Sample | Description | Action |
|---|---|---|
| 200 | Success Response - This is a sample response for successful API requests. | |
| 207 | Multi-status Response - You'll get the below response when multiple statuses are included. | |
| 400 | Bad Request Response - You'll get the below response when your API requests contain any validation errors. | |
| 401 | Unauthorized Response - You'll get the below response when your API requests don't contain valid authentication credentials. |
Response: 200
{
"StatusCode": 200,
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": {
"SuccessRecords": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBARef": "STS001",
"DBANm": "Sunrise Tech Solutions Inc."
}
],
"ErrorRecords": null
},
"Errors": null
}
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
url := "<APIURL>/v2.0.0/recipient/updatedba"
method := "PUT"
payload := strings.NewReader(`{
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
}`)
client := &http.Client{}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "<ACCESS_TOKEN>")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println("Status:", res.Status)
fmt.Println(string(body))
}
const axios = require('axios');
let data = JSON.stringify({
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
});
let config = {
method: 'put',
maxBodyLength: Infinity,
url: '<APIURL>/v2.0.0/recipient/updatedba',
headers: {
'Authorization': '<ACCESS_TOKEN>',
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import http.client
import json
conn = http.client.HTTPSConnection("<APIURL>")
payload = json.dumps({
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
})
headers = {
'Authorization': '<ACCESS_TOKEN>',
'Content-Type': 'application/json'
}
conn.request("PUT", "/v2.0.0/recipient/updatedba", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "<APIURL>/v2.0.0/recipient/updatedba");
request.Headers.Add("Authorization", "<ACCESS_TOKEN>");
var content = new StringContent("{
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
}
", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
require "uri"
require "json"
require "net/http"
url = URI("<APIURL>/v2.0.0/recipient/updatedba")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Put.new(url)
request["Authorization"] = "<ACCESS_TOKEN>"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
})
response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
}
");
Request request = new Request.Builder()
.url("<APIURL>/v2.0.0/recipient/updatedba")
.method("PUT", body)
.addHeader("Authorization", "<ACCESS_TOKEN>")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
curl --location --request PUT '<APIURL>/v2.0.0/recipient/updatedba' --header 'Authorization: <ACCESS_TOKEN>' --header 'Content-Type: application/json' --data '{
"RecipientId": "d67539c3-0603-4fb7-9a29-3ae15339269a",
"PayeeRef": "PAYEE001",
"DBADetails": [
{
"SequenceId": "002",
"DBAId": "9425a051-a2b9-4cf9-b853-e56246464b3f",
"DBANm": "Sunrise Tech Solutions Inc.",
"DBARef": "STS001",
"Address": {
"Address1": "123 Biscayne Blvd",
"Address2": "Suite 120",
"City": "Miami",
"ProvinceOrState": "FL",
"ZipCd": "33132",
"Country": "US"
}
}
]
}