Browse Source

Add card creation

g 4 months ago
parent
commit
37e81f59b0
1 changed files with 24 additions and 3 deletions
  1. 24 3
      README.md

+ 24 - 3
README.md

@@ -1,4 +1,4 @@
-# Revolur Card API
+# Revolut Card API
 ## Base address
 https://app.revolut.com/api/revolut-secure/retail
 ## Headers
@@ -285,7 +285,7 @@ Get card secret details: pan, cvv, expiration date. The pan and the cvv are encr
     "Authorization": <owner id>:<access token>
 }
 ```
-    
+
 #### Response
 ```
 {
@@ -294,6 +294,27 @@ Get card secret details: pan, cvv, expiration date. The pan and the cvv are encr
     "expiry":{"month":<month>,"year":<year>}
 }
 ```
-    
+
+### 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.
+