Retrieve a payout with specified identifier string.
- Mock serverhttps://www.rebilly.com/_mock/mgs-api-definitions/mgs-api/pay-outs/{OrderID}
- Live Serverhttps://api.rebilly.com/mgs/pay-outs/{OrderID}
- Sandbox Serverhttps://api-sandbox.rebilly.com/mgs/pay-outs/{OrderID}
curl -i -X GET \
'https://www.rebilly.com/_mock/mgs-api-definitions/mgs-api/pay-outs/{OrderID}' \
-H 'Organization-Id: string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Payout retrieved.
Name of the alternative method. The value supplied here determines where the payment is routed.
ID of the card. This ID maps to a payment card in Rebilly. This field is required when the payout method is payment-card. For test cards, see Test cards.
ID of the account to be paid. This field is required when the payout method is alternative.
ID of the transaction. This value is unique for the merchant in Rebilly. Rebilly attempts to use the PayoutExportReference value, but if the value is not unique, a variation is generated.
Payout identifier, also known as the payment export reference. To prevent duplicates, this value must be unique for the merchant within a 24-hour period.
ID of the merchant account to be used for the payout.
ID of the casino. This value maps to a website ID in Rebilly.
ID of the gaming server. This value maps to an organization ID in Rebilly.
ID of the player. This value maps to a customer in Rebilly. It is composed of two parts concatenated by an underscore. The first part is the registration casino ID, and the second part is the user ID.
Three character ISO 4217 alpha-3 code. This value must be configured in the gateway account.
Payment amount with no currency symbol. It is important to check the PurchaseAmount, which may be different from the OrderAmount if the player changed the order mid-process, which could be due to an upsell or bump scenario.
Three character ISO 4217 alpha-3 code. When dynamic currency conversion occurs, this is the currency paid out.
Amount billed. When dynamic currency conversion occurs, this is the amount of the currency paid out.
Billing descriptor that is displayed on the cardholder's billing statement.
For offsite payments that require third-party verification, this URL is called by the system when the payment returns from the offsite process.
If the transaction times out or an other exceptional type of transaction occurs, this URL is used to update when the result changes from unknown to another value.
Extra data list as a map {"field name": "custom value", ...}.
The format must follow the saved format. Recommended fields are BannerTagId, RegistrationDate, and DeviceFingerprint. If a global or master user ID is available, that would be appropriate too.
To test within the sandbox, use these magic values to simulate different outcomes with DesiredResult as the key:
| Magic value | Description |
|---|---|
approved | Transaction with an approved result and completed status. |
declined | Transaction with a declined result and completed status. |
timeout-approved | Transaction with a timeout status and an unknown result. After approximately 5 minutes, the timeout becomes resolved and has an approved result with a completed status. |
timeout-declined | Transaction with a timeout status and an unknown result. After approximately 5 minutes, the timeout becomes resolved and has a declined result and a completed status. |
conn-error-declined | Transaction with a conn-error status and an unknown result. After approximately 5 minutes, it resolves and becomes result declined and status completed. |
sending-declined | Transaction with a sending status and an unknown result. After 5 minutes, it resolves and becomes declined or completed. |
pending-approved | Transaction with a pending status and an unknown result. After 5 minutes, it resolves to approved or completed. |
{ "BannerTagId": "123|456|789|098|765|543|210", "RegistrationDate": "2017-03-23", "DeviceFingerprint": "23932819301914985", "DesiredResult": "approved" }
Status of the payout. Some status values require special handling, such as:
timeout(orconn-error): Rebilly polls the gateway to determine if the payout is processed. The payout should be held open until a determination is made. Rebilly sends a notification to theNotificationURLupon resolution of thetimeoutandconn-errorstates.waiting-gateway: Rebilly polls final status and sends a notification toNotificationURLwhen the payout is completed.
Result of the payout. A result of unknown means the payout should be held open or pending for future changes. This may happen because of a timeout or because interaction is necessary for further processing.
Code that maps to a message. The code is a string number between 0 and 1000. For more information, see Rebilly response codes.
Message mapped from the response code from the gateway.
Transaction identifier from the processor or gateway.
{ "PayoutMethod": "Alipay", "CardID": "411111", "FinancialAccountID": "123-456-789-abc-ef1-234-567", "TransactionID": "22_4567899", "PayoutExportReference": "22_4567899", "GatewayAccountID": "rebilly_001", "CasinoID": "22", "GSID": "45", "PlayerID": "22_112233", "OrderCurrency": "USD", "OrderAmount": "45.00", "BillingCurrency": "USD", "BillingAmount": "45.00", "BillingDescriptor": "My descriptor", "NotificationURL": "string", "ExtraData": { "BannerTagId": "123|456|789|098|765|543|210", "RegistrationDate": "2017-03-23", "DeviceFingerprint": "23932819301914985", "DesiredResult": "approved" }, "Status": "completed", "Result": "approved", "Acquirer": "Natwest", "ResponseCode": "00", "ResponseMessage": "Successful approval", "ResponseCodeGateway": "00", "ResponseMessageGateway": "Approved transaction", "GatewayTransactionID": "11111-22222-33333-44444", "CreatedTime": "2019-08-24T14:15:22Z", "UpdatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }