Update allocation status
Experimental

Request

Updates the status of a payout request allocation with a specified ID.

Only the processing and canceled statuses can be set with this operation. The processing status transitions an allocation from pending when payment processing begins. The canceled status stops the allocation before it is processed.

The completed, waiting-completion and failed statuses are set automatically during transaction processing. Allocations are always created in the pending status.

Security
SecretApiKey or JWT
Path
idstring, <= 50 characters^[@~\-\.\w]+$required
ID of the resource.
Bodyapplication/jsonrequired
statusstringrequired

New status for the allocation. Use processing to move an allocation from pending to processing, which begins payment processing. Use canceled to stop the allocation before it is processed.

Enum:"processing""canceled"
Example:"processing"
curl -i -X PATCH \
  'https://www.rebilly.com/_mock/catalog/all/payout-request-allocations/{id}' \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "status": "processing"
  }'

Responses

Payout request allocation updated.
Headers
Rate-Limit-Limitinteger

Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.

Example:500
Rate-Limit-Remaininginteger

Number of requests still available for this rate limit. For more information, see Rate limits.

Example:499
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:"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": [ { … } ] }