curl --location --request POST 'https://sandbox-ledger.fingates.net/api/v1/agents/customers//beneficiaries' \
--header 'Content-Type: application/json' \
--data-raw '{
"person": {
"extra": {
"property1": "string",
"property2": "string"
},
"email": "user@example.com",
"phone_number": {
"country_code": "GB",
"dial_code": "string",
"number": "string",
"phone_number_text": "string",
"phone": "string"
},
"name": "string",
"date_of_birth": "string",
"country_of_residence": "GB",
"country_of_nationality": "GB",
"social_security_number": "string",
"identity_number": "string",
"identity_number_type": "PASSPORT",
"nationalities": [
"GB"
]
},
"company": {
"extra": {
"property1": "string",
"property2": "string"
},
"email": "user@example.com",
"phone_number": {
"country_code": "GB",
"dial_code": "string",
"number": "string",
"phone_number_text": "string",
"phone": "string"
},
"name": "string",
"trading_name": "string",
"incorporation_locality": "GB",
"corporation_type": "PRIVATE_COMPANY_LIMITED_BY_SHARES",
"industry": "ACCOUNTING",
"legal_entry_number": "string",
"foundation_date": "string",
"director_name": "string"
},
"bank_detail": {
"account_number": "string",
"bank_code": "string",
"bank_code_type": "BRANCH_CODE",
"country_code": "GB",
"name": "string",
"bic_swift": "FNHOGB2LXXX",
"bic_iban": "FNHOGB21XXX",
"iban": "string",
"address": {
"country_code": "GB",
"city": "string",
"street": "string",
"postal_code": "string",
"address_line1": "string",
"address_line2": "string",
"region": "string",
"trading_address": true,
"current_address": true
},
"swift_enabled": true,
"sepa_enabled": true,
"chaps_enabled": true,
"currency": "EUR",
"extra": {
"branch_code": "string"
}
},
"addresses": [
{
"country_code": "GB",
"city": "string",
"street": "string",
"postal_code": "string",
"address_line1": "string",
"address_line2": "string",
"region": "string",
"trading_address": true,
"current_address": true
}
]
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"holder_id": "00651377-7deb-4de1-8500-fc7d175b624b",
"entity_status": "ACTIVE",
"person": {
"extra": {
"property1": "string",
"property2": "string"
},
"email": "user@example.com",
"phone_number": {
"country_code": "GB",
"dial_code": "string",
"number": "string",
"phone_number_text": "string",
"phone": "string"
},
"name": "string",
"date_of_birth": "string",
"country_of_residence": "GB",
"country_of_nationality": "GB",
"social_security_number": "string",
"identity_number": "string",
"identity_number_type": "PASSPORT",
"nationalities": [
"GB"
]
},
"company": {
"extra": {
"property1": "string",
"property2": "string"
},
"email": "user@example.com",
"phone_number": {
"country_code": "GB",
"dial_code": "string",
"number": "string",
"phone_number_text": "string",
"phone": "string"
},
"name": "string",
"trading_name": "string",
"incorporation_locality": "GB",
"corporation_type": "PRIVATE_COMPANY_LIMITED_BY_SHARES",
"industry": "ACCOUNTING",
"legal_entry_number": "string",
"foundation_date": "string",
"director_name": "string"
},
"addresses": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"address": {
"country_code": "GB",
"city": "string",
"street": "string",
"postal_code": "string",
"address_line1": "string",
"address_line2": "string",
"region": "string",
"trading_address": true,
"current_address": true
},
"created_at": 1668717762,
"active": true
}
],
"ledgers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"holder_id": "00651377-7deb-4de1-8500-fc7d175b624b",
"balance": {
"amount": 99.96,
"currency": "USD"
},
"status": "ACTIVE",
"enabled": true,
"bank_detail": {
"account_number": "string",
"bank_code": "string",
"bank_code_type": "BRANCH_CODE",
"country_code": "GB",
"name": "string",
"bic_swift": "FNHOGB2LXXX",
"bic_iban": "FNHOGB21XXX",
"iban": "string",
"address": {
"country_code": "GB",
"city": "string",
"street": "string",
"postal_code": "string",
"address_line1": "string",
"address_line2": "string",
"region": "string",
"trading_address": true,
"current_address": true
},
"swift_enabled": true,
"sepa_enabled": true,
"chaps_enabled": true,
"currency": "EUR",
"extra": {
"branch_code": "string"
}
},
"compliance_account_id": "0efdf7c4-f251-41ae-90f1-e731544464f0",
"type": "STANDARD"
}
]
}