curl --request POST \
--url https://api.example.com/api/v1/user/contact \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"email": "<string>",
"iban": {
"bankName": "<string>",
"bankAddress": {
"addressLine1": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"currency": "<string>",
"accountHolderFirstName": "<string>",
"accountHolderLastName": "<string>",
"accountHolderBusinessName": "<string>",
"accountHolderAddress": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"businessIndustry": "<string>",
"paymentReference": "<string>",
"accountType": "sepa",
"ibanNumber": "<string>",
"bic": "<string>"
},
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
}
'import requests
url = "https://api.example.com/api/v1/user/contact"
payload = {
"currency": "<string>",
"email": "<string>",
"iban": {
"bankName": "<string>",
"bankAddress": {
"addressLine1": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"currency": "<string>",
"accountHolderFirstName": "<string>",
"accountHolderLastName": "<string>",
"accountHolderBusinessName": "<string>",
"accountHolderAddress": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"businessIndustry": "<string>",
"paymentReference": "<string>",
"accountType": "sepa",
"ibanNumber": "<string>",
"bic": "<string>"
},
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency: '<string>',
email: '<string>',
iban: {
bankName: '<string>',
bankAddress: {
addressLine1: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>'
},
currency: '<string>',
accountHolderFirstName: '<string>',
accountHolderLastName: '<string>',
accountHolderBusinessName: '<string>',
accountHolderAddress: {
streetAddress: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
businessIndustry: '<string>',
paymentReference: '<string>',
accountType: 'sepa',
ibanNumber: '<string>',
bic: '<string>'
},
address: {
streetAddress: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
}
})
};
fetch('https://api.example.com/api/v1/user/contact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create contact
Create a new contact for the current user.
curl --request POST \
--url https://api.example.com/api/v1/user/contact \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"email": "<string>",
"iban": {
"bankName": "<string>",
"bankAddress": {
"addressLine1": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"currency": "<string>",
"accountHolderFirstName": "<string>",
"accountHolderLastName": "<string>",
"accountHolderBusinessName": "<string>",
"accountHolderAddress": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"businessIndustry": "<string>",
"paymentReference": "<string>",
"accountType": "sepa",
"ibanNumber": "<string>",
"bic": "<string>"
},
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
}
'import requests
url = "https://api.example.com/api/v1/user/contact"
payload = {
"currency": "<string>",
"email": "<string>",
"iban": {
"bankName": "<string>",
"bankAddress": {
"addressLine1": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"currency": "<string>",
"accountHolderFirstName": "<string>",
"accountHolderLastName": "<string>",
"accountHolderBusinessName": "<string>",
"accountHolderAddress": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"businessIndustry": "<string>",
"paymentReference": "<string>",
"accountType": "sepa",
"ibanNumber": "<string>",
"bic": "<string>"
},
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency: '<string>',
email: '<string>',
iban: {
bankName: '<string>',
bankAddress: {
addressLine1: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>'
},
currency: '<string>',
accountHolderFirstName: '<string>',
accountHolderLastName: '<string>',
accountHolderBusinessName: '<string>',
accountHolderAddress: {
streetAddress: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
businessIndustry: '<string>',
paymentReference: '<string>',
accountType: 'sepa',
ibanNumber: '<string>',
bic: '<string>'
},
address: {
streetAddress: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
}
})
};
fetch('https://api.example.com/api/v1/user/contact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
Request to create a contact.
1 - 200Currency override
3 - 4Crypto contact input.
Show child attributes
Show child attributes
Onchain wallet contact input.
- OnchainAccountInput
- EmailAccountInput
- SepaAccountInput
- SwiftAccountInput
- AchAccountInput
- UaeAccountInput
- UkFpsAccountInput
- PixAccountInput
Show child attributes
Show child attributes
IBAN (SEPA) external account.
- IBANAccountDetails
- USExternalAccountDetails
- SwiftAccountDetails
- PixAccountDetails
- LocalRailAccountDetails
- ProviderUsdAccountDetails
Show child attributes
Show child attributes
Address schema for user.
Canonical field names: street_address, address_line_2, city, state, country, zip. Accepts legacy Align/IBAN field names (street_line_1, street_line_2, postal_code) for backward compatibility with existing JSONB data.
Show child attributes
Show child attributes
How a payout contact relates to the user.
The vocabulary mirrors Swipelux's recipient relationships so the common
values project onto their API unchanged, but this is our own domain type:
SELF marks a first-party payout to the user's own account at another
bank and has no Swipelux counterpart. Providers own that projection — see
SwipeluxRecipients._recipient_relationship — so nothing here depends on
a provider, and no provider enum has to carry a value it cannot accept.
employee, contractor, vendor, subsidiary, merchant, customer, landlord, family, other, self Response
Successful Response
Was this page helpful?