Add card creation

This commit is contained in:
g 2023-12-24 12:44:12 +01:00
parent ddda13d8a3
commit 37e81f59b0

View File

@ -1,4 +1,4 @@
# Revolur Card API
# Revolut Card API
## Base address
https://app.revolut.com/api/revolut-secure/retail
## Headers
@ -295,5 +295,26 @@ Get card secret details: pan, cvv, expiration date. The pan and the cvv are encr
}
```
### POST /my-card/issue/virtual
#### Description
Create a new virtual card. Design is an enum and must match the card type (there are virtual designs and disposable designs).
#### Headers
```
{
"Authorization": <owner id>:<access token>
}
```
#### Request
```
{
design: "<color>_VIRTUAL",
label: "<label>",
disposable: false
}
```
#### Response
Card object, same as `/my-card/all`.
## TODO
Support for card termination, issue, freeze, unfreeze, labeling, and creation is quite simple too.