Retrieve payout request allocations
Experimental

Request

Retrieves a list of payout request allocations.
Security
SecretApiKey or JWT
Query
limitinteger, [ 0 .. 1000 ]

Limit the number of collection items to be returned. Use 0 to return an empty collection and still receive the count of matching items in Pagination-Total.

offsetinteger, [ 0 .. 1000 ]
Specifies the starting point within the collection of items to be returned.
filterstring

Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.

For more information, see Search filters.

sortArray of strings

Sorts and orders the collection of items. To sort in descending order, prefix with -. Multiple fields can be sorted by separating each with ,.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/payout-request-allocations?limit=0&offset=0&filter=string&sort=string' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

List of payout request allocations retrieved.
Headers
Pagination-Totalinteger

Total number of items that match the request. The value is independent of limit, including when limit is 0.

Example:332
Pagination-Limitinteger
Maximum number of items per page.
Example:100
Pagination-Offsetinteger

Specifies the starting point within the collection of resource results. For example, a request with limit=20 retrieves and displays the first 20 results on a page. A following request with limit=20 and offset=20, retrieves the next page of 20 results.

Example:2
Bodyapplication/json
Array [
idstring, <= 50 charactersread-only
ID of the resource.
Example:"pra_0YVDMDE2BMC6KBB5MX76RF6T80"
payoutRequestIdstring, <= 50 charactersread-onlyrequired
ID of the payout request associated with this allocation.
Example:"pout_req_0YVDMDE2BMC6KBB5MX76RF6T80"
batchIdstring or null, <= 50 charactersread-only
ID of the payout request batch that contains the payout request for this allocation.
Example:"prb_0YVDMDE2BMC6KBB5MX76RF6T80"
paymentInstrumentIdstring, <= 50 charactersrequired
ID of the payment instrument allocated to the payout request.
Example:"inst_0YVB8KPKNXCBR9EDX7JHSED75N"
paymentMethodstring(PaymentMethod)read-only
Payment method of the allocation.
Enum:"payment-card""ach""cash""check""paypal""AdvCash""Aera""Affirm""Afterpay""Aircash"
gatewayAccountIdstring, <= 50 charactersrequired
ID of the gateway account to use for processing this allocation.
Example:"gateway_0YVB8KPKNXCBR9EDX7JHSED75N"
gatewayNamestring, <= 50 characters
Name of the gateway account to use for processing this allocation.
Example:"TestProcessor"
gatewayPayoutInstructionstring or nullread-only
Payout configuration of the gateway account that processes this allocation.
Enum ValueDescription
all
Payout any amount from this gateway.
covered-payout
Payout from this gateway if it previously processed a payment for the same, or a greater, amount.
approved-payment
Payout any amount from this gateway if the customer has a previously approved transaction, in the same currency, on this gateway.
none
Do not allow any payouts with this gateway.
Example:"covered-payout"
amountnumber, (double)required
Amount allocated to this payment instrument.
exposureAmountnumber, (double)read-only

Approved sales and captures, minus associated approved refunds and voids, and minus approved payouts, for the customer, gateway account, and payment instrument, in the allocation currency. The calculation includes only transactions created within the last 180 days. The value is 0 when there are no transactions in the last 180 days, the gateway account is inactive, or its readyToPayoutInstruction is none.

Example:2
currencystring, = 3 characters(CurrencyCode)required
Currency of the payout request allocation.
Example:"USD"
statusstring
Status of this payout request allocation.
Enum ValueDescription
pending
Allocation was created and is waiting to be processed.
queued
Allocation is queued for processing.
processing
Allocation is being processed and a transaction is being created.
waiting-completion
Allocation transaction is processing asynchronously and has not yet reached a terminal state.
completed
Allocation was successfully processed and the transaction was approved.
failed
Allocation was not processed because of an error.
canceled
Allocation was canceled before processing.
declined
Allocation was declined by the gateway.
transactionIdstring or null, <= 50 charactersread-only
ID of the transaction that is created when processing this allocation, if applicable.
Example:"txn_0YVB8KPKNXCBR9EDX7JHSED75N"
transactionResultstring or nullread-only
Result of the transaction created for this allocation, if applicable.
Enum:"abandoned""approved""canceled""declined""unknown"null
transactionStatusstring or nullread-only
Status of the transaction created for this allocation, if applicable.
Enum:"completed""conn-error""disputed""never-sent""offsite""partially-refunded""pending""refunded""sending""timeout"
createdTimestring, (date-time)(CreatedTime)read-only
Date and time when the allocation for the payout request was created.
updatedTimestring, (date-time)(UpdatedTime)read-only
Date and time when the resource is updated. This value is set automatically when the resource is updated.
]
Response
[ { "id": "pra_0YVDMDE2BMC6KBB5MX76RF6T80", "payoutRequestId": "pout_req_0YVDMDE2BMC6KBB5MX76RF6T80", "batchId": "prb_0YVDMDE2BMC6KBB5MX76RF6T80", "paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N", "paymentMethod": "payment-card", "gatewayAccountId": "gateway_0YVB8KPKNXCBR9EDX7JHSED75N", "gatewayName": "TestProcessor", "gatewayPayoutInstruction": "covered-payout", "amount": 0.1, "exposureAmount": 2, "currency": "USD", "status": "pending", "transactionId": "txn_0YVB8KPKNXCBR9EDX7JHSED75N", "transactionResult": "abandoned", "transactionStatus": "completed", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ] } ]