payabli 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +4 -4
- data/README.md +4 -1
- data/lib/payabli/client.rb +33 -4
- data/lib/payabli/customer/client.rb +1 -1
- data/lib/payabli/internal/http/raw_client.rb +28 -5
- data/lib/payabli/internal/oauth_provider.rb +67 -0
- data/lib/payabli/money_out/client.rb +7 -2
- data/lib/payabli/token/client.rb +51 -0
- data/lib/payabli/token/types/create_server_side_token_request.rb +17 -0
- data/lib/payabli/types/add_device_response.rb +4 -0
- data/lib/payabli/types/add_method_response.rb +4 -0
- data/lib/payabli/types/add_response_response.rb +4 -0
- data/lib/payabli/types/bill_pay_out_data.rb +15 -9
- data/lib/payabli/types/contacts_response.rb +3 -3
- data/lib/payabli/types/get_method_response_response_data_customers_item.rb +42 -0
- data/lib/payabli/types/get_pay_link_from_id_response.rb +4 -0
- data/lib/payabli/types/modify_approval_bill_response.rb +4 -0
- data/lib/payabli/types/notification_log_detail.rb +24 -0
- data/lib/payabli/types/payabli_access_token_response.rb +17 -0
- data/lib/payabli/types/query_payout_transaction_records_item.rb +54 -34
- data/lib/payabli/types/query_payout_transaction_records_item_payment_data.rb +16 -16
- data/lib/payabli/types/query_payout_transaction_summary.rb +17 -17
- data/lib/payabli/types/query_transaction_events.rb +2 -2
- data/lib/payabli/types/remove_device_response.rb +4 -0
- data/lib/payabli/types/set_approved_bill_response.rb +4 -0
- data/lib/payabli/types/token_error_response.rb +13 -0
- data/lib/payabli/types/tokenize_ach.rb +0 -2
- data/lib/payabli/types/tokenize_card.rb +2 -0
- data/lib/payabli/types/vendor_query_record.rb +45 -41
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +18 -13
- data/reference.md +172 -78
- data/wiremock/docker-compose.test.yml +1 -1
- data/wiremock/wiremock-mappings.json +106 -80
- metadata +7 -2
data/reference.md
CHANGED
|
@@ -339,8 +339,8 @@ Retrieves a file attached to a bill, either as a binary file or as a Base64-enco
|
|
|
339
339
|
|
|
340
340
|
```ruby
|
|
341
341
|
client.bill.get_attached_from_bill(
|
|
342
|
-
filename: "0_Bill.pdf",
|
|
343
342
|
id_bill: 285,
|
|
343
|
+
filename: "0_Bill.pdf",
|
|
344
344
|
return_object: true
|
|
345
345
|
)
|
|
346
346
|
```
|
|
@@ -425,8 +425,8 @@ Delete a file attached to a bill.
|
|
|
425
425
|
|
|
426
426
|
```ruby
|
|
427
427
|
client.bill.delete_attached_from_bill(
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
id_bill: 285,
|
|
429
|
+
filename: "0_Bill.pdf"
|
|
430
430
|
)
|
|
431
431
|
```
|
|
432
432
|
</dd>
|
|
@@ -673,8 +673,8 @@ Approve or disapprove a bill by ID.
|
|
|
673
673
|
|
|
674
674
|
```ruby
|
|
675
675
|
client.bill.set_approved_bill(
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
id_bill: 285,
|
|
677
|
+
approved: "true"
|
|
678
678
|
)
|
|
679
679
|
```
|
|
680
680
|
</dd>
|
|
@@ -1041,7 +1041,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
|
|
|
1041
1041
|
<dl>
|
|
1042
1042
|
<dd>
|
|
1043
1043
|
|
|
1044
|
-
Creates a customer in an entrypoint. An identifier is required to create customer records. Change your identifier settings in Settings > Custom Fields in
|
|
1044
|
+
Creates a customer in an entrypoint. An identifier is required to create customer records. Change your identifier settings in Settings > Custom Fields in the Payabli Portal.
|
|
1045
1045
|
If you don't include an identifier, the record is rejected.
|
|
1046
1046
|
</dd>
|
|
1047
1047
|
</dl>
|
|
@@ -1179,7 +1179,7 @@ client.customer.get_customer(customer_id: 4440)
|
|
|
1179
1179
|
<dl>
|
|
1180
1180
|
<dd>
|
|
1181
1181
|
|
|
1182
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
1182
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
1183
1183
|
|
|
1184
1184
|
</dd>
|
|
1185
1185
|
</dl>
|
|
@@ -1250,7 +1250,7 @@ client.customer.update_customer(
|
|
|
1250
1250
|
<dl>
|
|
1251
1251
|
<dd>
|
|
1252
1252
|
|
|
1253
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
1253
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
1254
1254
|
|
|
1255
1255
|
</dd>
|
|
1256
1256
|
</dl>
|
|
@@ -1320,7 +1320,7 @@ client.customer.delete_customer(customer_id: 4440)
|
|
|
1320
1320
|
<dl>
|
|
1321
1321
|
<dd>
|
|
1322
1322
|
|
|
1323
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
1323
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
1324
1324
|
|
|
1325
1325
|
</dd>
|
|
1326
1326
|
</dl>
|
|
@@ -1382,7 +1382,7 @@ client.customer.request_consent(customer_id: 4440)
|
|
|
1382
1382
|
<dl>
|
|
1383
1383
|
<dd>
|
|
1384
1384
|
|
|
1385
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
1385
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
1386
1386
|
|
|
1387
1387
|
</dd>
|
|
1388
1388
|
</dl>
|
|
@@ -1447,7 +1447,7 @@ client.customer.link_customer_transaction(
|
|
|
1447
1447
|
<dl>
|
|
1448
1448
|
<dd>
|
|
1449
1449
|
|
|
1450
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
1450
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
1451
1451
|
|
|
1452
1452
|
</dd>
|
|
1453
1453
|
</dl>
|
|
@@ -2213,8 +2213,8 @@ A reversal either refunds or voids a transaction independent of the transaction'
|
|
|
2213
2213
|
|
|
2214
2214
|
```ruby
|
|
2215
2215
|
client.money_in.reverse(
|
|
2216
|
-
|
|
2217
|
-
|
|
2216
|
+
trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
|
|
2217
|
+
amount: 0
|
|
2218
2218
|
)
|
|
2219
2219
|
```
|
|
2220
2220
|
</dd>
|
|
@@ -2296,8 +2296,8 @@ Refund a transaction that has settled and send money back to the account holder.
|
|
|
2296
2296
|
|
|
2297
2297
|
```ruby
|
|
2298
2298
|
client.money_in.refund(
|
|
2299
|
-
|
|
2300
|
-
|
|
2299
|
+
trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
|
|
2300
|
+
amount: 0
|
|
2301
2301
|
)
|
|
2302
2302
|
```
|
|
2303
2303
|
</dd>
|
|
@@ -2381,9 +2381,8 @@ Refunds a settled transaction with split instructions.
|
|
|
2381
2381
|
client.money_in.refund_with_instructions(
|
|
2382
2382
|
trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
|
|
2383
2383
|
idempotency_key: "8A29FC40-CA47-1067-B31D-00DD010662DB",
|
|
2384
|
-
source: "api",
|
|
2385
|
-
order_description: "Materials deposit",
|
|
2386
2384
|
amount: 100,
|
|
2385
|
+
order_description: "Materials deposit",
|
|
2387
2386
|
refund_details: {
|
|
2388
2387
|
split_refunding: [{
|
|
2389
2388
|
origination_entry_point: "7f1a381696",
|
|
@@ -2396,7 +2395,8 @@ client.money_in.refund_with_instructions(
|
|
|
2396
2395
|
description: "Refunding deposit for undelivered materials",
|
|
2397
2396
|
amount: 40
|
|
2398
2397
|
}]
|
|
2399
|
-
}
|
|
2398
|
+
},
|
|
2399
|
+
source: "api"
|
|
2400
2400
|
)
|
|
2401
2401
|
```
|
|
2402
2402
|
</dd>
|
|
@@ -3320,6 +3320,96 @@ client.money_in.voidv_2(trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723")
|
|
|
3320
3320
|
</dl>
|
|
3321
3321
|
|
|
3322
3322
|
|
|
3323
|
+
</dd>
|
|
3324
|
+
</dl>
|
|
3325
|
+
</details>
|
|
3326
|
+
|
|
3327
|
+
## Token
|
|
3328
|
+
<details><summary><code>client.token.<a href="/lib/payabli/token/client.rb">create_server_side_token</a>(request) -> Payabli::Types::PayabliAccessTokenResponse</code></summary>
|
|
3329
|
+
<dl>
|
|
3330
|
+
<dd>
|
|
3331
|
+
|
|
3332
|
+
#### 📝 Description
|
|
3333
|
+
|
|
3334
|
+
<dl>
|
|
3335
|
+
<dd>
|
|
3336
|
+
|
|
3337
|
+
<dl>
|
|
3338
|
+
<dd>
|
|
3339
|
+
|
|
3340
|
+
Exchanges a client ID and client secret for a short-lived Bearer access token using the OAuth2 client-credentials flow. Designed for server-to-server use: the credentials and the returned token stay on your backend. Send the returned `access_token` in the `Authorization` header as `Bearer <access_token>` on subsequent API calls. See the [OAuth authentication guide](/developers/oauth-authentication) for the full flow.
|
|
3341
|
+
</dd>
|
|
3342
|
+
</dl>
|
|
3343
|
+
</dd>
|
|
3344
|
+
</dl>
|
|
3345
|
+
|
|
3346
|
+
#### 🔌 Usage
|
|
3347
|
+
|
|
3348
|
+
<dl>
|
|
3349
|
+
<dd>
|
|
3350
|
+
|
|
3351
|
+
<dl>
|
|
3352
|
+
<dd>
|
|
3353
|
+
|
|
3354
|
+
```ruby
|
|
3355
|
+
client.token.create_server_side_token(
|
|
3356
|
+
client_id: "YOUR_CLIENT_ID",
|
|
3357
|
+
client_secret: "YOUR_CLIENT_SECRET"
|
|
3358
|
+
)
|
|
3359
|
+
```
|
|
3360
|
+
</dd>
|
|
3361
|
+
</dl>
|
|
3362
|
+
</dd>
|
|
3363
|
+
</dl>
|
|
3364
|
+
|
|
3365
|
+
#### ⚙️ Parameters
|
|
3366
|
+
|
|
3367
|
+
<dl>
|
|
3368
|
+
<dd>
|
|
3369
|
+
|
|
3370
|
+
<dl>
|
|
3371
|
+
<dd>
|
|
3372
|
+
|
|
3373
|
+
**client_id:** `String` — The client ID issued for your integration when credentials are provisioned in the Payabli Portal.
|
|
3374
|
+
|
|
3375
|
+
</dd>
|
|
3376
|
+
</dl>
|
|
3377
|
+
|
|
3378
|
+
<dl>
|
|
3379
|
+
<dd>
|
|
3380
|
+
|
|
3381
|
+
**client_secret:** `String` — The client secret issued alongside the client ID. Keep it on your backend and never expose it in client-side code.
|
|
3382
|
+
|
|
3383
|
+
</dd>
|
|
3384
|
+
</dl>
|
|
3385
|
+
|
|
3386
|
+
<dl>
|
|
3387
|
+
<dd>
|
|
3388
|
+
|
|
3389
|
+
**state:** `String` — An optional opaque value echoed back in the response. Use it to correlate the request with its response.
|
|
3390
|
+
|
|
3391
|
+
</dd>
|
|
3392
|
+
</dl>
|
|
3393
|
+
|
|
3394
|
+
<dl>
|
|
3395
|
+
<dd>
|
|
3396
|
+
|
|
3397
|
+
**permissions:** `Internal::Types::Array[String]` — An optional array of permission IDs that scopes the token to a subset of the credential's granted permissions. When omitted, the token carries all permissions granted to the credential.
|
|
3398
|
+
|
|
3399
|
+
</dd>
|
|
3400
|
+
</dl>
|
|
3401
|
+
|
|
3402
|
+
<dl>
|
|
3403
|
+
<dd>
|
|
3404
|
+
|
|
3405
|
+
**request_options:** `Payabli::Token::RequestOptions`
|
|
3406
|
+
|
|
3407
|
+
</dd>
|
|
3408
|
+
</dl>
|
|
3409
|
+
</dd>
|
|
3410
|
+
</dl>
|
|
3411
|
+
|
|
3412
|
+
|
|
3323
3413
|
</dd>
|
|
3324
3414
|
</dl>
|
|
3325
3415
|
</details>
|
|
@@ -3576,7 +3666,7 @@ client.subscription.new_subscription(
|
|
|
3576
3666
|
},
|
|
3577
3667
|
payment_method: {
|
|
3578
3668
|
cardcvv: "123",
|
|
3579
|
-
cardexp: "
|
|
3669
|
+
cardexp: "12/29",
|
|
3580
3670
|
card_holder: "John Cassian",
|
|
3581
3671
|
cardnumber: "4111111111111111",
|
|
3582
3672
|
cardzip: "37615",
|
|
@@ -3943,8 +4033,8 @@ Deletes a file attached to an invoice.
|
|
|
3943
4033
|
|
|
3944
4034
|
```ruby
|
|
3945
4035
|
client.invoice.delete_attached_from_invoice(
|
|
3946
|
-
|
|
3947
|
-
|
|
4036
|
+
id_invoice: 23548884,
|
|
4037
|
+
filename: "0_Bill.pdf"
|
|
3948
4038
|
)
|
|
3949
4039
|
```
|
|
3950
4040
|
</dd>
|
|
@@ -6112,7 +6202,7 @@ client.token_storage.add_method(
|
|
|
6112
6202
|
method_description: "Primary Visa card",
|
|
6113
6203
|
payment_method: {
|
|
6114
6204
|
cardcvv: "123",
|
|
6115
|
-
cardexp: "
|
|
6205
|
+
cardexp: "12/29",
|
|
6116
6206
|
card_holder: "John Doe",
|
|
6117
6207
|
cardnumber: "4111111111111111",
|
|
6118
6208
|
cardzip: "12345",
|
|
@@ -6322,7 +6412,7 @@ client.token_storage.update_method(
|
|
|
6322
6412
|
fallback_auth: true,
|
|
6323
6413
|
payment_method: {
|
|
6324
6414
|
cardcvv: "123",
|
|
6325
|
-
cardexp: "
|
|
6415
|
+
cardexp: "12/29",
|
|
6326
6416
|
card_holder: "John Doe",
|
|
6327
6417
|
cardnumber: "4111111111111111",
|
|
6328
6418
|
cardzip: "12345",
|
|
@@ -7268,15 +7358,15 @@ Add a payment method domain to an organization or paypoint.
|
|
|
7268
7358
|
|
|
7269
7359
|
```ruby
|
|
7270
7360
|
client.payment_method_domain.add_payment_method_domain(
|
|
7271
|
-
domain_name: "checkout.example.com",
|
|
7272
|
-
entity_id: 109,
|
|
7273
|
-
entity_type: "paypoint",
|
|
7274
7361
|
apple_pay: {
|
|
7275
7362
|
is_enabled: true
|
|
7276
7363
|
},
|
|
7277
7364
|
google_pay: {
|
|
7278
7365
|
is_enabled: true
|
|
7279
|
-
}
|
|
7366
|
+
},
|
|
7367
|
+
domain_name: "checkout.example.com",
|
|
7368
|
+
entity_id: 109,
|
|
7369
|
+
entity_type: "paypoint"
|
|
7280
7370
|
)
|
|
7281
7371
|
```
|
|
7282
7372
|
</dd>
|
|
@@ -12497,6 +12587,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
|
|
|
12497
12587
|
- `payaccountLastfour` (nct, ct)
|
|
12498
12588
|
- `payaccountType` (ne, eq, in, nin)
|
|
12499
12589
|
- `payaccountCurrency` (ne, eq, in, nin)
|
|
12590
|
+
- `binCardType` (eq, ne, in, nin). Filters by card type for card transactions. Accepts `CREDIT`, `DEBIT`, or `PREPAID`. Case-insensitive.
|
|
12500
12591
|
- `customerFirstname` (ct, nct, eq, ne)
|
|
12501
12592
|
- `customerLastname` (ct, nct, eq, ne)
|
|
12502
12593
|
- `customerName` (ct, nct)
|
|
@@ -12697,6 +12788,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
|
|
|
12697
12788
|
- `payaccountLastfour` (nct, ct)
|
|
12698
12789
|
- `payaccountType` (ne, eq, in, nin)
|
|
12699
12790
|
- `payaccountCurrency` (ne, eq, in, nin)
|
|
12791
|
+
- `binCardType` (eq, ne, in, nin). Filters by card type for card transactions. Accepts `CREDIT`, `DEBIT`, or `PREPAID`. Case-insensitive.
|
|
12700
12792
|
- `customerFirstname` (ct, nct, eq, ne)
|
|
12701
12793
|
- `customerLastname` (ct, nct, eq, ne)
|
|
12702
12794
|
- `customerName` (ct, nct)
|
|
@@ -14991,9 +15083,9 @@ client.notificationlogs.search_notification_logs(
|
|
|
14991
15083
|
page_size: 20,
|
|
14992
15084
|
start_date: "2024-01-01T00:00:00Z",
|
|
14993
15085
|
end_date: "2024-01-31T23:59:59Z",
|
|
14994
|
-
org_id: 123,
|
|
14995
15086
|
notification_event: "ActivatedMerchant",
|
|
14996
|
-
succeeded: true
|
|
15087
|
+
succeeded: true,
|
|
15088
|
+
org_id: 123
|
|
14997
15089
|
)
|
|
14998
15090
|
```
|
|
14999
15091
|
</dd>
|
|
@@ -15307,8 +15399,8 @@ Register a cloud device to an entrypoint. See [Devices Quickstart](/developers/d
|
|
|
15307
15399
|
```ruby
|
|
15308
15400
|
client.cloud.add_device(
|
|
15309
15401
|
entry: "8cfec329267",
|
|
15310
|
-
|
|
15311
|
-
|
|
15402
|
+
description: "Front Desk POS",
|
|
15403
|
+
registration_code: "YS7DS5"
|
|
15312
15404
|
)
|
|
15313
15405
|
```
|
|
15314
15406
|
</dd>
|
|
@@ -15402,8 +15494,8 @@ Remove a cloud device from an entrypoint.
|
|
|
15402
15494
|
|
|
15403
15495
|
```ruby
|
|
15404
15496
|
client.cloud.remove_device(
|
|
15405
|
-
|
|
15406
|
-
|
|
15497
|
+
entry: "8cfec329267",
|
|
15498
|
+
device_id: "499585-389fj484-3jcj8hj3"
|
|
15407
15499
|
)
|
|
15408
15500
|
```
|
|
15409
15501
|
</dd>
|
|
@@ -15475,8 +15567,8 @@ Retrieve the registration history for a device.
|
|
|
15475
15567
|
|
|
15476
15568
|
```ruby
|
|
15477
15569
|
client.cloud.history_device(
|
|
15478
|
-
|
|
15479
|
-
|
|
15570
|
+
entry: "8cfec329267",
|
|
15571
|
+
device_id: "499585-389fj484-3jcj8hj3"
|
|
15480
15572
|
)
|
|
15481
15573
|
```
|
|
15482
15574
|
</dd>
|
|
@@ -16597,7 +16689,7 @@ client.boarding.get_by_template_id_link_application(template_id: 80)
|
|
|
16597
16689
|
<dl>
|
|
16598
16690
|
<dd>
|
|
16599
16691
|
|
|
16600
|
-
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in
|
|
16692
|
+
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in the Payabli Portal. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
|
|
16601
16693
|
|
|
16602
16694
|
</dd>
|
|
16603
16695
|
</dl>
|
|
@@ -17239,7 +17331,7 @@ client.templates.delete_template(template_id: 80)
|
|
|
17239
17331
|
<dl>
|
|
17240
17332
|
<dd>
|
|
17241
17333
|
|
|
17242
|
-
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in
|
|
17334
|
+
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in the Payabli Portal. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
|
|
17243
17335
|
|
|
17244
17336
|
</dd>
|
|
17245
17337
|
</dl>
|
|
@@ -17287,8 +17379,8 @@ Generates a boarding link from a boarding template.
|
|
|
17287
17379
|
|
|
17288
17380
|
```ruby
|
|
17289
17381
|
client.templates.getlink_template(
|
|
17290
|
-
|
|
17291
|
-
|
|
17382
|
+
template_id: 80,
|
|
17383
|
+
ignore_empty: true
|
|
17292
17384
|
)
|
|
17293
17385
|
```
|
|
17294
17386
|
</dd>
|
|
@@ -17304,7 +17396,7 @@ client.templates.getlink_template(
|
|
|
17304
17396
|
<dl>
|
|
17305
17397
|
<dd>
|
|
17306
17398
|
|
|
17307
|
-
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in
|
|
17399
|
+
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in the Payabli Portal. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
|
|
17308
17400
|
|
|
17309
17401
|
</dd>
|
|
17310
17402
|
</dl>
|
|
@@ -17374,7 +17466,7 @@ client.templates.get_template(template_id: 80)
|
|
|
17374
17466
|
<dl>
|
|
17375
17467
|
<dd>
|
|
17376
17468
|
|
|
17377
|
-
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in
|
|
17469
|
+
**template_id:** `Integer` — The boarding template ID. You can find this at the end of the boarding template URL in the Payabli Portal. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
|
|
17378
17470
|
|
|
17379
17471
|
</dd>
|
|
17380
17472
|
</dl>
|
|
@@ -17735,8 +17827,8 @@ Export batch details for a paypoint. Use filters to limit results.
|
|
|
17735
17827
|
|
|
17736
17828
|
```ruby
|
|
17737
17829
|
client.export.export_batch_details(
|
|
17738
|
-
entry: "8cfec329267",
|
|
17739
17830
|
format: "csv",
|
|
17831
|
+
entry: "8cfec329267",
|
|
17740
17832
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
17741
17833
|
from_record: 251,
|
|
17742
17834
|
limit_record: 1000
|
|
@@ -18087,8 +18179,8 @@ Export a list of batches for an entrypoint. Use filters to limit results.
|
|
|
18087
18179
|
|
|
18088
18180
|
```ruby
|
|
18089
18181
|
client.export.export_batches(
|
|
18090
|
-
entry: "8cfec329267",
|
|
18091
18182
|
format: "csv",
|
|
18183
|
+
entry: "8cfec329267",
|
|
18092
18184
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
18093
18185
|
from_record: 251,
|
|
18094
18186
|
limit_record: 1000
|
|
@@ -18417,8 +18509,8 @@ Export a list of money out batches for a paypoint. Use filters to limit results.
|
|
|
18417
18509
|
|
|
18418
18510
|
```ruby
|
|
18419
18511
|
client.export.export_batches_out(
|
|
18420
|
-
entry: "8cfec329267",
|
|
18421
18512
|
format: "csv",
|
|
18513
|
+
entry: "8cfec329267",
|
|
18422
18514
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
18423
18515
|
from_record: 251,
|
|
18424
18516
|
limit_record: 1000
|
|
@@ -18709,8 +18801,8 @@ Export a list of bills for an entrypoint. Use filters to limit results.
|
|
|
18709
18801
|
|
|
18710
18802
|
```ruby
|
|
18711
18803
|
client.export.export_bills(
|
|
18712
|
-
entry: "8cfec329267",
|
|
18713
18804
|
format: "csv",
|
|
18805
|
+
entry: "8cfec329267",
|
|
18714
18806
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
18715
18807
|
from_record: 251,
|
|
18716
18808
|
limit_record: 1000
|
|
@@ -19037,8 +19129,8 @@ Export a list of chargebacks and ACH returns for an entrypoint. Use filters to l
|
|
|
19037
19129
|
|
|
19038
19130
|
```ruby
|
|
19039
19131
|
client.export.export_chargebacks(
|
|
19040
|
-
entry: "8cfec329267",
|
|
19041
19132
|
format: "csv",
|
|
19133
|
+
entry: "8cfec329267",
|
|
19042
19134
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
19043
19135
|
from_record: 251,
|
|
19044
19136
|
limit_record: 1000
|
|
@@ -19407,8 +19499,8 @@ Export a list of customers for an entrypoint. Use filters to limit results.
|
|
|
19407
19499
|
|
|
19408
19500
|
```ruby
|
|
19409
19501
|
client.export.export_customers(
|
|
19410
|
-
entry: "8cfec329267",
|
|
19411
19502
|
format: "csv",
|
|
19503
|
+
entry: "8cfec329267",
|
|
19412
19504
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
19413
19505
|
from_record: 251,
|
|
19414
19506
|
limit_record: 1000
|
|
@@ -19763,8 +19855,8 @@ Export list of invoices for an entrypoint. Use filters to limit results.
|
|
|
19763
19855
|
|
|
19764
19856
|
```ruby
|
|
19765
19857
|
client.export.export_invoices(
|
|
19766
|
-
entry: "8cfec329267",
|
|
19767
19858
|
format: "csv",
|
|
19859
|
+
entry: "8cfec329267",
|
|
19768
19860
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
19769
19861
|
from_record: 251,
|
|
19770
19862
|
limit_record: 1000
|
|
@@ -20302,8 +20394,8 @@ Export a list of payouts and their statuses for an entrypoint. Use filters to li
|
|
|
20302
20394
|
|
|
20303
20395
|
```ruby
|
|
20304
20396
|
client.export.export_payout(
|
|
20305
|
-
entry: "8cfec329267",
|
|
20306
20397
|
format: "csv",
|
|
20398
|
+
entry: "8cfec329267",
|
|
20307
20399
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
20308
20400
|
from_record: 251,
|
|
20309
20401
|
limit_record: 1000
|
|
@@ -20790,8 +20882,8 @@ Export a list of settled transactions for an entrypoint. Use filters to limit re
|
|
|
20790
20882
|
|
|
20791
20883
|
```ruby
|
|
20792
20884
|
client.export.export_settlements(
|
|
20793
|
-
entry: "8cfec329267",
|
|
20794
20885
|
format: "csv",
|
|
20886
|
+
entry: "8cfec329267",
|
|
20795
20887
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
20796
20888
|
from_record: 251,
|
|
20797
20889
|
limit_record: 1000
|
|
@@ -21158,8 +21250,8 @@ Export a list of subscriptions for an entrypoint. Use filters to limit results.
|
|
|
21158
21250
|
|
|
21159
21251
|
```ruby
|
|
21160
21252
|
client.export.export_subscriptions(
|
|
21161
|
-
entry: "8cfec329267",
|
|
21162
21253
|
format: "csv",
|
|
21254
|
+
entry: "8cfec329267",
|
|
21163
21255
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
21164
21256
|
from_record: 251,
|
|
21165
21257
|
limit_record: 1000
|
|
@@ -21530,8 +21622,8 @@ Export a list of transactions for an entrypoint in a file in XLSX or CSV format.
|
|
|
21530
21622
|
|
|
21531
21623
|
```ruby
|
|
21532
21624
|
client.export.export_transactions(
|
|
21533
|
-
entry: "8cfec329267",
|
|
21534
21625
|
format: "csv",
|
|
21626
|
+
entry: "8cfec329267",
|
|
21535
21627
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
21536
21628
|
from_record: 251,
|
|
21537
21629
|
limit_record: 1000
|
|
@@ -21910,8 +22002,8 @@ Export a list of transfer details for an entrypoint. Use filters to limit result
|
|
|
21910
22002
|
|
|
21911
22003
|
```ruby
|
|
21912
22004
|
client.export.export_transfer_details(
|
|
21913
|
-
entry: "8cfec329267",
|
|
21914
22005
|
format: "csv",
|
|
22006
|
+
entry: "8cfec329267",
|
|
21915
22007
|
transfer_id: 4521,
|
|
21916
22008
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
21917
22009
|
from_record: 251,
|
|
@@ -22237,8 +22329,8 @@ Export a list of vendors for an entrypoint. Use filters to limit results.
|
|
|
22237
22329
|
|
|
22238
22330
|
```ruby
|
|
22239
22331
|
client.export.export_vendors(
|
|
22240
|
-
entry: "8cfec329267",
|
|
22241
22332
|
format: "csv",
|
|
22333
|
+
entry: "8cfec329267",
|
|
22242
22334
|
columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
22243
22335
|
from_record: 251,
|
|
22244
22336
|
limit_record: 1000
|
|
@@ -23489,12 +23581,12 @@ Retrieves the basic statistics for an organization or a paypoint, for a given ti
|
|
|
23489
23581
|
|
|
23490
23582
|
```ruby
|
|
23491
23583
|
client.statistic.basic_stats(
|
|
23492
|
-
|
|
23584
|
+
mode: "custom",
|
|
23493
23585
|
freq: "m",
|
|
23494
23586
|
level: 2,
|
|
23495
|
-
|
|
23496
|
-
|
|
23497
|
-
|
|
23587
|
+
entry_id: 1000000,
|
|
23588
|
+
end_date: "2025-11-30",
|
|
23589
|
+
start_date: "2025-11-01"
|
|
23498
23590
|
)
|
|
23499
23591
|
```
|
|
23500
23592
|
</dd>
|
|
@@ -23648,9 +23740,9 @@ Retrieves the basic statistics for a customer for a specific time period, groupe
|
|
|
23648
23740
|
|
|
23649
23741
|
```ruby
|
|
23650
23742
|
client.statistic.customer_basic_stats(
|
|
23651
|
-
|
|
23743
|
+
mode: "ytd",
|
|
23652
23744
|
freq: "m",
|
|
23653
|
-
|
|
23745
|
+
customer_id: 4440
|
|
23654
23746
|
)
|
|
23655
23747
|
```
|
|
23656
23748
|
</dd>
|
|
@@ -23705,7 +23797,7 @@ For example, `w` groups the results by week.
|
|
|
23705
23797
|
<dl>
|
|
23706
23798
|
<dd>
|
|
23707
23799
|
|
|
23708
|
-
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in
|
|
23800
|
+
**customer_id:** `Integer` — Payabli-generated customer ID. Maps to "Customer ID" column in the Payabli Portal.
|
|
23709
23801
|
|
|
23710
23802
|
</dd>
|
|
23711
23803
|
</dl>
|
|
@@ -23761,9 +23853,9 @@ Retrieves the subscription statistics for a given interval for a paypoint or org
|
|
|
23761
23853
|
|
|
23762
23854
|
```ruby
|
|
23763
23855
|
client.statistic.sub_stats(
|
|
23764
|
-
entry_id: 1000000,
|
|
23765
23856
|
interval: "30",
|
|
23766
|
-
level: 2
|
|
23857
|
+
level: 2,
|
|
23858
|
+
entry_id: 1000000
|
|
23767
23859
|
)
|
|
23768
23860
|
```
|
|
23769
23861
|
</dd>
|
|
@@ -23863,9 +23955,9 @@ Retrieve the basic statistics about a vendor for a given time period, grouped by
|
|
|
23863
23955
|
|
|
23864
23956
|
```ruby
|
|
23865
23957
|
client.statistic.vendor_basic_stats(
|
|
23958
|
+
mode: "ytd",
|
|
23866
23959
|
freq: "m",
|
|
23867
|
-
id_vendor: 1
|
|
23868
|
-
mode: "ytd"
|
|
23960
|
+
id_vendor: 1
|
|
23869
23961
|
)
|
|
23870
23962
|
```
|
|
23871
23963
|
</dd>
|
|
@@ -25090,9 +25182,9 @@ Resends the MFA code to the user via the selected MFA mode (email or SMS).
|
|
|
25090
25182
|
|
|
25091
25183
|
```ruby
|
|
25092
25184
|
client.user.resend_mfa_code(
|
|
25185
|
+
usrname: "usrname",
|
|
25093
25186
|
entry: "8cfec329267",
|
|
25094
|
-
entry_type: 1
|
|
25095
|
-
usrname: "usrname"
|
|
25187
|
+
entry_type: 1
|
|
25096
25188
|
)
|
|
25097
25189
|
```
|
|
25098
25190
|
</dd>
|
|
@@ -25488,12 +25580,12 @@ client.vendor.enrich_vendor(
|
|
|
25488
25580
|
vendor_id: 456,
|
|
25489
25581
|
scope: ["invoice_scan"],
|
|
25490
25582
|
apply_enrichment_data: false,
|
|
25491
|
-
fallback_method: "check",
|
|
25492
25583
|
invoice_file: {
|
|
25493
25584
|
ftype: "pdf",
|
|
25494
25585
|
filename: "invoice-2026-001.pdf",
|
|
25495
25586
|
f_content: "<base64-encoded-pdf>"
|
|
25496
|
-
}
|
|
25587
|
+
},
|
|
25588
|
+
fallback_method: "check"
|
|
25497
25589
|
)
|
|
25498
25590
|
```
|
|
25499
25591
|
</dd>
|
|
@@ -26093,9 +26185,11 @@ Authorizes a transaction for payout.
|
|
|
26093
26185
|
|
|
26094
26186
|
If you don't pass `autoCapture` with a value of `true`, authorized transactions aren't flagged for settlement until captured. Use the `referenceId` returned in the response to capture the transaction.
|
|
26095
26187
|
|
|
26096
|
-
When `autoCapture` is `true`, Payabli captures the transaction asynchronously after authorization. The response confirms only that the transaction was authorized; it doesn't confirm that capture succeeded. To confirm capture, listen for the [`payout_transaction_approvedcaptured`](/developers/webhooks/payout-transaction-approved-captured) webhook event.
|
|
26188
|
+
When `autoCapture` is `true`, Payabli captures the transaction asynchronously after authorization. The response confirms only that the transaction was authorized; it doesn't confirm that capture succeeded. To confirm capture, listen for the [`payout_transaction_approvedcaptured`](/developers/api-reference/webhooks-overview/payout-transaction-approved-captured) webhook event.
|
|
26097
26189
|
|
|
26098
26190
|
If a velocity fraud alert is triggered, the endpoint returns a `202` response with `responseCode` `9051`, and the authorization is held for risk review rather than rejected. If a risk policy blocks the transaction, the endpoint returns a `422` response with `responseCode` `9005`, a terminal rejection.
|
|
26191
|
+
|
|
26192
|
+
For check payouts, Payabli validates the remit (mailing) address at authorization. If the address fails deliverability validation, the endpoint returns a `422` response and doesn't charge the paypoint. Correct the address and re-authorize. Other payout rails (ACH, RTP, virtual card, wire, and managed payables) aren't affected.
|
|
26099
26193
|
</dd>
|
|
26100
26194
|
</dl>
|
|
26101
26195
|
</dd>
|
|
@@ -26112,21 +26206,21 @@ If a velocity fraud alert is triggered, the endpoint returns a `202` response wi
|
|
|
26112
26206
|
```ruby
|
|
26113
26207
|
client.money_out.authorize_out(
|
|
26114
26208
|
entry_point: "8cfec329267",
|
|
26115
|
-
auto_capture: true,
|
|
26116
|
-
invoice_data: [{
|
|
26117
|
-
bill_id: 54323
|
|
26118
|
-
}],
|
|
26119
26209
|
order_description: "Window Painting",
|
|
26210
|
+
payment_method: {
|
|
26211
|
+
method_: "managed"
|
|
26212
|
+
},
|
|
26120
26213
|
payment_details: {
|
|
26121
26214
|
total_amount: 47,
|
|
26122
26215
|
unbundled: false
|
|
26123
26216
|
},
|
|
26124
|
-
payment_method: {
|
|
26125
|
-
method_: "managed"
|
|
26126
|
-
},
|
|
26127
26217
|
vendor_data: {
|
|
26128
26218
|
vendor_number: "VEN-123"
|
|
26129
|
-
}
|
|
26219
|
+
},
|
|
26220
|
+
invoice_data: [{
|
|
26221
|
+
bill_id: 54323
|
|
26222
|
+
}],
|
|
26223
|
+
auto_capture: true
|
|
26130
26224
|
)
|
|
26131
26225
|
```
|
|
26132
26226
|
</dd>
|
|
@@ -5,7 +5,7 @@ services:
|
|
|
5
5
|
- "0:8080" # Use dynamic port to avoid conflicts with concurrent tests
|
|
6
6
|
volumes:
|
|
7
7
|
- ./wiremock-mappings.json:/home/wiremock/mappings/wiremock-mappings.json
|
|
8
|
-
command: ["--
|
|
8
|
+
command: ["--verbose"]
|
|
9
9
|
healthcheck:
|
|
10
10
|
test: ["CMD", "curl", "-f", "http://localhost:8080/__admin/health"]
|
|
11
11
|
interval: 2s
|