Skip to content

Commit d3056ed

Browse files
Update API definitions
1 parent 4e3cce5 commit d3056ed

4 files changed

Lines changed: 113 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
content:
2+
application/json:
3+
schema:
4+
type: object
5+
title: Patch payout request batch
6+
properties:
7+
description:
8+
description: |-
9+
Description of the batch.
10+
Omit this property when not updating the description.
11+
Do not send `null`; use a string value when this property is present.
12+
type: string
13+
maxLength: 255
14+
allocationOrder:
15+
description: |-
16+
Order for auto-allocation of payout requests in this batch.
17+
When set, this field overrides the organization-level allocation order during batch auto-allocation.
18+
Must contain `selected-payment-instrument` exactly once.
19+
Valid values: `payment-card` (payment cards), `alternative-payment-methods` (catch-all for alternative payment methods), `selected-payment-instrument` (customer-requested instrument), or any payment method API name (for example, `paypal`, `Interac-eTransfer`).
20+
Omit this property when not updating the allocation order.
21+
Do not send `null`; use an array value when this property is present.
22+
type: array
23+
items:
24+
type: string
25+
minItems: 2
26+
maxItems: 25
27+
uniqueItems: true
28+
example:
29+
- paypal
30+
- Interac-eTransfer
31+
- payment-card
32+
- alternative-payment-methods
33+
- selected-payment-instrument
34+
description: |-
35+
Fields for updating the payout request batch.
36+
At least one property must be present.
37+
Do not set `description` or `allocationOrder` to `null`.

openapi/components/schemas/Organization.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,25 @@ properties:
250250
type: string
251251
format: email
252252
default: [ ]
253+
payoutRequestAllocationOrder:
254+
description: |-
255+
Default order for auto-allocation of payout requests.
256+
When set, this value is used when a payout request batch does not specify its own allocation order.
257+
The order defines which payment instruments are attempted first during auto-allocation.
258+
Must contain `selected-payment-instrument` exactly once.
259+
Valid values: `payment-card` (payment cards), `alternative-payment-methods` (catch-all for alternative payment methods), `selected-payment-instrument` (customer-requested instrument), or any payment method API name (for example, `paypal`, `Interac-eTransfer`).
260+
type:
261+
- 'array'
262+
- 'null'
263+
items:
264+
type: string
265+
minItems: 2
266+
maxItems: 25
267+
uniqueItems: true
268+
example:
269+
- payment-card
270+
- alternative-payment-methods
271+
- selected-payment-instrument
253272
taxNumbers:
254273
type:
255274
- 'array'

openapi/components/schemas/PayoutRequestBatch.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,26 @@ properties:
7272
- 'null'
7373
maxLength: 255
7474
example: Batch processed on 2024-01-15
75+
allocationOrder:
76+
description: |-
77+
Order for auto-allocation of payout requests in this batch.
78+
When set, this field overrides the organization-level allocation order during batch auto-allocation.
79+
Must contain `selected-payment-instrument` exactly once.
80+
Valid values: `payment-card` (payment cards), `alternative-payment-methods` (catch-all for alternative payment methods), `selected-payment-instrument` (customer-requested instrument), or any payment method API name (for example, `paypal`, `Interac-eTransfer`).
81+
type:
82+
- 'array'
83+
- 'null'
84+
items:
85+
type: string
86+
minItems: 2
87+
maxItems: 25
88+
uniqueItems: true
89+
example:
90+
- paypal
91+
- Interac-eTransfer
92+
- payment-card
93+
- alternative-payment-methods
94+
- selected-payment-instrument
7595
createdTime:
7696
description: Date and time when the batch was created.
7797
$ref: ./CreatedTime.yaml

openapi/paths/payout-request-batches@{id}.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,41 @@ get:
3131
$ref: ../components/responses/NotFound.yaml
3232
'429':
3333
$ref: ../components/responses/TooManyRequests.yaml
34+
patch:
35+
x-badges:
36+
- name: Experimental
37+
x-products:
38+
- Core
39+
tags:
40+
- Transactions
41+
summary: Update a payout request batch
42+
operationId: PatchPayoutRequestBatch
43+
x-sdk-operation-name: patch
44+
description: |-
45+
Partially updates a payout request batch with a specified ID.
46+
Use this operation to update the description and allocation order.
47+
requestBody:
48+
$ref: ../components/requestBodies/PatchPayoutRequestBatch.yaml
49+
responses:
50+
'200':
51+
description: Payout request batch updated.
52+
headers:
53+
X-RateLimit-Limit:
54+
$ref: ../components/headers/X-RateLimit-Limit.yaml
55+
X-RateLimit-Remaining:
56+
$ref: ../components/headers/X-RateLimit-Remaining.yaml
57+
content:
58+
application/json:
59+
schema:
60+
$ref: ../components/schemas/PayoutRequestBatch.yaml
61+
'401':
62+
$ref: ../components/responses/Unauthorized.yaml
63+
'403':
64+
$ref: ../components/responses/Forbidden.yaml
65+
'404':
66+
$ref: ../components/responses/NotFound.yaml
67+
'422':
68+
$ref: ../components/responses/ValidationError.yaml
69+
'429':
70+
$ref: ../components/responses/TooManyRequests.yaml
3471

0 commit comments

Comments
 (0)