Instant settlement service
InstantSettlementService
Bases: BaseAPIWrapper
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
9 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 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 |
|
all(page_size, page_number)
Allows a user to get all merchants and the terminals assigned to them.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page_size |
int
|
This specifies the maximum number of terminals to be retrieved. |
required |
page_number |
int
|
This specifies the index of the paginated results retrieved. |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
create_terminal(terminal_id, merchant_id, kuda_account_number, serial_number, is_receiving_payment, is_active)
Gives the partner the ability to add certain parameters to a POS device.
It allows the partner to anchor routing communications between the processor and the Kuda settlement system.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
terminal_id |
str
|
The terminal identifier. |
required |
merchant_id |
str
|
The merchant identifier. |
required |
kuda_account_number |
int
|
The client's Kuda account number. |
required |
serial_number |
str
|
The serial number. |
required |
is_receiving_payment |
bool
|
Set to |
required |
is_active |
bool
|
Set to |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
get_settlement_status(transaction_id)
Retrieves insight on the status of a particular/all settlements for a terminal.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
transaction_id |
str
|
The transaction reference number or unique identifier. |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
log_transaction(amount, transaction_id, terminal_id)
Logs a complete transaction.
For complete transaction fulfilment, a user will call this method with the transaction amount that needs to be fulfilled. This way, the terminal management system is updated with the transaction status in real-time and completes settlement to the specified user's account.
Logging a transaction sends a notification to Kuda which triggers instant settlement.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
amount |
Union[int, float]
|
The transaction amount. Note care should be taken when performing calculations as money is involved.
a |
required |
transaction_id |
str
|
The transaction reference number or unique identifier. |
required |
terminal_id |
str
|
The terminal unique identifier. |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
transactions(terminal_id, from_, to, page_size, page_number)
Retrieves transactions.
This method allows a user to do back office operations while searching for transactions disputes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
terminal_id |
str
|
The terminal unique identifier |
required |
from_ |
str
|
The start date |
required |
to |
str
|
The end date |
required |
page_size |
int
|
This specifies the maximum number of transactions to be retrieved. |
required |
page_number |
int
|
This specifies the index of the paginated results retrieved. |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |
Source code in pykuda2/wrappers/sync_wrappers/instant_settlement_service.py
update_terminal(kuda_merchant_id, terminal_id, kuda_account_number, kuda_account_name, serial_number, is_active, is_receiving_payment, fee_percentage, date_created)
Allows a partner to swap the location and user of a POS device.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kuda_merchant_id |
str
|
The client's Kuda merchant identifier |
required |
terminal_id |
str
|
The terminal unique identifier |
required |
kuda_account_number |
int
|
The client's Kuda account number |
required |
kuda_account_name |
str
|
The client's account name |
required |
serial_number |
str
|
The terminal's serial number |
required |
is_active |
bool
|
Set to |
required |
is_receiving_payment |
bool
|
Set to |
required |
fee_percentage |
float
|
Fee percentage |
required |
date_created |
str
|
The date the terminal was created |
required |
Returns:
Type | Description |
---|---|
APIResponse
|
An |
Raises:
Type | Description |
---|---|
ConnectionException
|
when the request times out or in the absence of an internet connection. |