curl --request POST \
--url http://localhost:55001/api/payments/bank-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"country": "GB",
"connectorID": "<string>",
"name": "My account",
"accountNumber": "<string>",
"iban": "<string>",
"swiftBicCode": "<string>",
"metadata": {}
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"country": "<string>",
"connectorID": "<string>",
"accountID": "<string>",
"provider": "<string>",
"iban": "<string>",
"accountNumber": "<string>",
"swiftBicCode": "<string>",
"relatedAccounts": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"provider": "<string>",
"connectorID": "<string>",
"accountID": "<string>"
}
],
"metadata": {}
}
}
Create a bank account in Payments and on the PSP.
curl --request POST \
--url http://localhost:55001/api/payments/bank-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"country": "GB",
"connectorID": "<string>",
"name": "My account",
"accountNumber": "<string>",
"iban": "<string>",
"swiftBicCode": "<string>",
"metadata": {}
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"country": "<string>",
"connectorID": "<string>",
"accountID": "<string>",
"provider": "<string>",
"iban": "<string>",
"accountNumber": "<string>",
"swiftBicCode": "<string>",
"relatedAccounts": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"provider": "<string>",
"connectorID": "<string>",
"accountID": "<string>"
}
],
"metadata": {}
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
OK
The response is of type object
.