updateBusinessEntity
EntityUpdateInput Attributes
| Attribute | Type |
|---|---|
| phone | String |
| phone_country | String |
| contact_first_name | String |
| contact_last_name | String |
| business_name | String |
| business_address1 | String |
| business_address2 | String |
| business_city | String |
| business_state_province_region | String |
| business_postal_code | PostalCode |
| business_country | ISO3166_1 |
| tax_number | TaxNumber |
| trade_name | TradeName |
| naics_code | NAICS |
| currency_needed | [String] |
| destination_countries | [String] |
| business_type | BusinessType |
| business_industry | BusinessIndustry |
| business_description | String |
| trading_symbol | String |
| owned_by | String |
| owned_by_other_entity | Boolean |
| owned_by_public_company | Boolean |
| owned_by_public_company_symbol | String |
| incorporation_date | DateTime |
| average_monthly_transaction_count | String |
| average_monthly_volume | String |
| website_url | String |
Query
string
Defaults to {}
Response
200
object
data
object
updateBusinessEntity
string
400
const axios = require('axios');
let data = JSON.stringify({
query: `mutation updateBusinessEntity (
$entity_id: UUID!
$update: EntityUpdateInput
) {
updateBusinessEntity (
entity_id: $entity_id,
update: $update
)
}`,
variables: {"entity_id":"e717d525-f6c6-4776-8a06-4b63fbc83393","update":{"incorporation_date":"2024-03-01T00:00:00.000Z"}}
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://sandbox.external.routefusion.com/graphql',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <token>'
},
data: data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
{
"data": {
"updateBusinessEntity": "43033d1c-7bf0-4462-a6fe-a74aa1869725"
}
}