Core API
- Concepts
- Authentication
- Countries
- Users
- KYC
- Capabilities
- Terms of Service
- Files
- Assets
- Accounts
- External Accounts
- Transactions
- Webhooks
Widgets API
- Payment
Create external account
Create an external account for the user.
POST
/
core
/
external-accounts
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/external-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "card",
"label": "My Visa Card",
"number": "4111111111111111",
"securityCode": "123",
"expiryDate": {
"month": 12,
"year": 2030
}
}'
{
"externalAccount": {
"id": "aa6e6efa-8d73-497c-8278-0347f459bd68",
"ownerId": "1e32fca3-23f7-40ed-bc1b-de10c790182d",
"type": "card",
"status": "processing",
"label": "My Visa Card",
"asset": "GBP",
"network": "visa",
"features": [],
"details": {
"last4Digits": "1519",
"expiryDate": {
"month": 12,
"year": 2030
}
},
"createdAt": "2024-06-01T00:00:00Z",
"updatedAt": "2024-07-15T00:00:00Z"
}
}
Authorizations
OAuth 2.0 authentication.
Body
application/json
Response
201
application/json
External account created.
The response is of type object
.
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/external-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "card",
"label": "My Visa Card",
"number": "4111111111111111",
"securityCode": "123",
"expiryDate": {
"month": 12,
"year": 2030
}
}'
{
"externalAccount": {
"id": "aa6e6efa-8d73-497c-8278-0347f459bd68",
"ownerId": "1e32fca3-23f7-40ed-bc1b-de10c790182d",
"type": "card",
"status": "processing",
"label": "My Visa Card",
"asset": "GBP",
"network": "visa",
"features": [],
"details": {
"last4Digits": "1519",
"expiryDate": {
"month": 12,
"year": 2030
}
},
"createdAt": "2024-06-01T00:00:00Z",
"updatedAt": "2024-07-15T00:00:00Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.