Retrieve a payout request allocation
Experimental

Request

Retrieves a payout request allocation with a specified ID.

Security
SecretApiKey or JWT
Path
idstring, <= 50 characters^[@~\-\.\w]+$required

ID of the resource.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/payout-request-allocations/{id}' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

Payout request allocation retrieved.

Bodyapplication/json
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:"preq_batch_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 it processed an earlier payment. The customer must have 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

Total approved sales and captures minus approved payouts for the customer, gateway account, and payment instrument, in the allocation currency.

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": "preq_batch_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": [ {} ] }