const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
industryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
contactEmail: '<string>',
phone: '<string>',
website: '<string>',
addressLine1: '<string>',
addressLine2: '<string>',
city: '<string>',
postalCode: '<string>',
country: '<string>',
taxNumber: '<string>',
companyRegistrationNumber: '<string>',
vatRegistered: true,
incorporationYear: 123,
primaryColour: '<string>',
logoUrl: '<string>',
defaultCurrency: '<string>',
defaultPaymentTermsDays: 123,
latePaymentFee: 123,
bankDetails: {
accountHolderName: '<string>',
accountNumber: '<string>',
sortCode: '<string>',
routingNumber: '<string>',
iban: '<string>',
bicSwift: '<string>',
country: '<string>',
currency: '<string>'
},
hasBeenOnboarded: true
})
};
fetch('https://api.dolfinai.co/organisations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"contactEmail": "<string>",
"country": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"industryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"industryCode": "<string>",
"industryDisplayName": "<string>",
"phone": "<string>",
"website": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"taxNumber": "<string>",
"companyRegistrationNumber": "<string>",
"vatRegistered": true,
"incorporationYear": 123,
"primaryColour": "<string>",
"logoUrl": "<string>",
"defaultCurrency": "<string>",
"defaultPaymentTermsDays": 123,
"latePaymentFee": 123,
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"hasBeenOnboarded": true,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Partially update an organisation’s profile, settings, or bank details.
const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
industryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
contactEmail: '<string>',
phone: '<string>',
website: '<string>',
addressLine1: '<string>',
addressLine2: '<string>',
city: '<string>',
postalCode: '<string>',
country: '<string>',
taxNumber: '<string>',
companyRegistrationNumber: '<string>',
vatRegistered: true,
incorporationYear: 123,
primaryColour: '<string>',
logoUrl: '<string>',
defaultCurrency: '<string>',
defaultPaymentTermsDays: 123,
latePaymentFee: 123,
bankDetails: {
accountHolderName: '<string>',
accountNumber: '<string>',
sortCode: '<string>',
routingNumber: '<string>',
iban: '<string>',
bicSwift: '<string>',
country: '<string>',
currency: '<string>'
},
hasBeenOnboarded: true
})
};
fetch('https://api.dolfinai.co/organisations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"contactEmail": "<string>",
"country": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"industryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"industryCode": "<string>",
"industryDisplayName": "<string>",
"phone": "<string>",
"website": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"taxNumber": "<string>",
"companyRegistrationNumber": "<string>",
"vatRegistered": true,
"incorporationYear": 123,
"primaryColour": "<string>",
"logoUrl": "<string>",
"defaultCurrency": "<string>",
"defaultPaymentTermsDays": 123,
"latePaymentFee": 123,
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"hasBeenOnboarded": true,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
Use this file to discover all available pages before exploring further.
ISO 3166-1 alpha-2 country code (e.g. GB, US, DE)
SoleTrader, LimitedCompany, LLP, Partnership, null OneToTen, ElevenToFifty, FiftyOneToTwoHundred, TwoHundredToOneThousand, OneThousandPlus, null Under100k, OneHundredToFiveHundredK, FiveHundredKToTwoM, TwoMPlus, null OneToTen, ElevenToFifty, FiftyToOneHundred, OneHundredPlus, null Under500, FiveHundredToFiveK, FiveKToFiftyK, Over50k, null BankTransfer, Card, DirectDebit, Cash, null ISO 4217 currency code (e.g. GBP, USD, EUR)
Show child attributes
OK
ISO 3166-1 alpha-2 country code (e.g. GB, US, DE)
SoleTrader, LimitedCompany, LLP, Partnership, null OneToTen, ElevenToFifty, FiftyOneToTwoHundred, TwoHundredToOneThousand, OneThousandPlus, null Under100k, OneHundredToFiveHundredK, FiveHundredKToTwoM, TwoMPlus, null OneToTen, ElevenToFifty, FiftyToOneHundred, OneHundredPlus, null Under500, FiveHundredToFiveK, FiveKToFiftyK, Over50k, null BankTransfer, Card, DirectDebit, Cash, null ISO 4217 currency code (e.g. GBP, USD, EUR)
Show child attributes