Payout Links Synchronous Endpoints
This Payout Links
endpoint provides methods to interact with the payout links of the authenticated user.
Example usage of the Payout links endpoint object:
from pyrevolut.client import Client
CREDS_JSON_LOC = "path/to/creds.json"
client = Client(
creds_loc=CREDS_JSON_LOC,
sandbox=True,
)
with client:
links = client.PayoutLinks.get_all_payout_links()
print(links)
EndpointPayoutLinksSync
Bases: BaseEndpointSync
The Payout Links API
Use payout links to send money without having to request full banking details of the recipient. The recipient must claim the money before the link expires.
Source code in pyrevolut/api/payout_links/endpoint/synchronous.py
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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
|
cancel_payout_link(payout_link_id, **kwargs)
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payout_link_id |
UUID
|
The ID of the payout link. |
required |
Returns:
Type | Description |
---|---|
dict | Response
|
An empty dictionary. |
Source code in pyrevolut/api/payout_links/endpoint/synchronous.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
|
create_payout_link(counterparty_name, request_id, account_id, amount, currency, reference, payout_methods, save_counterparty=None, expiry_period=None, transfer_reason_code=None, **kwargs)
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
counterparty_name |
str
|
The name of the counterparty provided by the sender. |
required |
request_id |
str
|
The ID of the request, provided by the sender. To ensure that a link payment is not processed multiple times if there are network or system errors, the same request_id should be used for requests related to the same link. |
required |
account_id |
UUID
|
The ID of the sender's account. |
required |
amount |
float
|
The amount of money to be sent. |
required |
currency |
str
|
The currency of the amount to be sent. |
required |
reference |
str
|
A reference for the payment. |
required |
payout_methods |
list[EnumPayoutLinkPaymentMethod]
|
The payout methods that the recipient can use to claim the payment. If not provided, the default value is [EnumPayoutLinkPaymentMethod.REVOLUT, EnumPayoutLinkPaymentMethod.BANK_ACCOUNT]. |
required |
save_counterparty |
bool
|
Indicates whether to save the recipient as your counterparty upon link claim. If false then the counterparty will not show up on your counterparties list, for example, when you retrieve your counterparties. However, you will still be able to retrieve this counterparty by its ID. If you don't choose to save the counterparty on link creation, you can do it later from your transactions list in the Business app. If not provided, the default value is false. |
None
|
expiry_period |
Duration | str
|
Possible values: >= P1D and <= P7D Default value: P7D The period after which the payout link expires if not claimed before, provided in ISO 8601 format. The default and maximum value is 7 days from the link creation. |
None
|
transfer_reason_code |
EnumTransferReasonCode
|
The reason code for the transaction. Transactions to certain countries and currencies might require you to provide a transfer reason. You can check available reason codes with the getTransferReasons operation. If a transfer reason is not required for the given currency and country, this field is ignored. |
None
|
Returns:
Type | Description |
---|---|
dict | Response
|
The payout link information. |
Source code in pyrevolut/api/payout_links/endpoint/synchronous.py
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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
|
get_all_payout_links(state=None, created_before=None, limit=None, **kwargs)
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
EnumPayoutLinkState
|
The state that the payout link is in. Possible states are:
|
None
|
created_before |
datetime | DateTime | str | int | float
|
Retrieves links with created_at < created_before. The default value is the current date and time at which you are calling the endpoint. Provided in ISO 8601 format. |
None
|
limit |
int
|
The maximum number of links returned per page. 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 as the value for created_before. If not provided, the default value is 100. |
None
|
Returns:
Type | Description |
---|---|
list[dict] | list[Response]
|
A list of payout links. |
Source code in pyrevolut/api/payout_links/endpoint/synchronous.py
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 |
|
get_payout_link(payout_link_id, **kwargs)
Get the information about a specific link by its ID.
Note
This feature is available in the UK and the EEA.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payout_link_id |
UUID
|
The ID of the payout link. |
required |
Returns:
Type | Description |
---|---|
dict | Response
|
The payout link information. |
Source code in pyrevolut/api/payout_links/endpoint/synchronous.py
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 |
|