Payout Links Pydantic Models
In order to simplify and standardize the data that is passed between the client and the Revolut Business API, PyRevolut uses Pydantic models to define the structure of the data.
Below are the Pydantic models used by the Payout Links
endpoint.
ResourcePayoutLink
Bases: BaseModel
Payout Link resource model.
Source code in pyrevolut/api/payout_links/resources/payout_link.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
RetrieveListOfPayoutLinks
Get all the links that you have created, or use the query parameters to filter the results.
The links are sorted by the created_at date in reverse chronological order.
The returned links are paginated. The maximum number of payout links returned per page is specified by the limit parameter. To get to the next page, make a new request and use the created_at date of the last payout link returned in the previous response.
Note
This feature is available in the UK and the EEA.
Source code in pyrevolut/api/payout_links/get/retrieve_list_of_payout_links.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
Params
Bases: BaseModel
The query parameters for the request.
Source code in pyrevolut/api/payout_links/get/retrieve_list_of_payout_links.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
Response
Bases: ResourcePayoutLink
The response model for the request.
Source code in pyrevolut/api/payout_links/get/retrieve_list_of_payout_links.py
84 85 86 87 88 89 |
|
RetrievePayoutLink
Get the information about a specific link by its ID.
Note
This feature is available in the UK and the EEA.
Source code in pyrevolut/api/payout_links/get/retrieve_payout_link.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Params
Bases: BaseModel
The query parameters for the request.
Source code in pyrevolut/api/payout_links/get/retrieve_payout_link.py
17 18 19 20 21 22 |
|
Response
Bases: ResourcePayoutLink
The response model for the request.
Source code in pyrevolut/api/payout_links/get/retrieve_payout_link.py
24 25 26 27 28 29 |
|
CreatePayoutLink
Create a payout link to send money even when you don't have the full banking details of the counterparty. After you have created the link, send it to the recipient so that they can claim the payment.
Note
This feature is available in the UK and the EEA.
Source code in pyrevolut/api/payout_links/post/create_payout_link.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
Body
Bases: BaseModel
The request body model for the request.
Source code in pyrevolut/api/payout_links/post/create_payout_link.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
Response
Bases: ResourcePayoutLink
The response model for the request.
Source code in pyrevolut/api/payout_links/post/create_payout_link.py
148 149 150 151 152 153 |
|
CancelPayoutLink
Cancel a payout link. You can only cancel a link that hasn't been claimed yet. A successful request does not get any content in response.
Note
This feature is available in the UK and the EEA.
Source code in pyrevolut/api/payout_links/post/cancel_payout_link.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Body
Bases: BaseModel
The request body model for the request.
Source code in pyrevolut/api/payout_links/post/cancel_payout_link.py
17 18 19 20 21 22 |
|
Response
Bases: BaseModel
The response model for the request.
Source code in pyrevolut/api/payout_links/post/cancel_payout_link.py
24 25 26 27 28 29 |
|