Retrieve an order with specified identifier string.
- Mock serverhttps://www.rebilly.com/_mock/mgs-api-definitions/mgs-api/orders/{OrderID}
- Live Serverhttps://api.rebilly.com/mgs/orders/{OrderID}
- Sandbox Serverhttps://api-sandbox.rebilly.com/mgs/orders/{OrderID}
curl -i -X GET \
'https://www.rebilly.com/_mock/mgs-api-definitions/mgs-api/orders/{OrderID}' \
-H 'Organization-Id: string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Order retrieved.
Payment method.
ID of the transaction. This value is unique for the merchant in Rebilly. Rebilly attempts to use the OrderID, but if the value is not unique, a variation is generated.
ID of the payment. This value must be unique for the merchant within a 24-hour period, to prevent duplicate requests.
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.
Limit amount with no currency symbol.
If no purchase limit is in place, this value is null, 0, 0.00, or not supplied with the request.
If a purchase limit is in place, this value designates the available purchase limit remaining. For example, if the player has set a daily limit of $200, and has already deposited $150 during that day, the limit remaining is $50. Rebilly prevents any purchase adjustment or bump from causing the limit to be breached.
Date and time when the purchase limit resets. If a message must be displayed to the player, this value may be transformed and used by the user interface.
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. This value must be configured in the gateway account. This value always matches the OrderCurrency.
Amount purchased. If a bump occurs, this value is larger than the OrderAmount. Use this value to credit the player. Please pay careful attention to this field.
Three character ISO 4217 alpha-3 code. When dynamic currency conversion occurs, this is the currency billed.
Amount billed. When dynamic currency conversion occurs, this is the amount of the currency billed.
Billing descriptor that is displayed on the cardholder's billing statement.
Player's date of birth in ISO 8601 full-date format (yyyy-mm-dd).
Player's email address. The email must match an email regex, and also be at a domain with a valid MX record. Rebilly does not send any emails.
Player's state, province, territory, parish, or region.
Player's country in ISO 3166-1 alpha-2 format. Two characters max.
Player's postal code, also known as the post code or zip code.
Player's telephone number, which may be either a landline or mobile.
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.
For offsite payment due to third party verification, this URL is used to redirect the player upon the completion of the interaction.
Player's user-agent header from the browser request.
Player's designated language in ISO-639-1 alpha-2 format and optional ISO-3166-1 alpha-2 country code. For example, en-AU for Australian English.
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.
{ "BannerTagId": "123|456|789|098|765|543|210", "RegistrationDate": "2017-03-23", "DeviceFingerprint": "23932819301914985", "CPF": "123456789" }
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.offsite: The user has already been redirected to theapprovalUrland is awaiting notification from the third party gateway.
Result of the payment. A result of unknown means the payment should be held open or pending for future changes. This may happen because of a timeout or because interaction is necessary for further processing. If interaction is necessary, there is a status of waiting-approval, or if the user has already been redirected to the third party for approval, it would be offsite.
Code that maps to a message. The code is a string number between 0 and 1000. See Rebilly response codes.
Message mapped from the code from the gateway.
Message that is appropriate for presentation to a customer, translated into the language supplied in the request.
ID of the transaction from the gateway.
If interaction is required to complete the payment, there is an approvalUrl field in the _links section of the API response.
This field determines if the approvalUrl should be displayed inline, as an iframe, or as a pop in a new window.
If the field has an empty string value, there is no fixed requirement for the user experience.
If the value is iframe, it is recommended to display it as an iframe. If the value is pop, it is required to display it as a pop in a new window.
Name of the alternative method. The value supplied here determines where the payment is routed.
Other alternative payment data that provides additional context about the payment.
This data is optional and may not be relevant for normal processing, but can be useful to retain for audits or payment investigations.
This data is not intended to be parsed, and its structure is unreliable.
{ "PaymentMethod": "alternative", "TransactionID": "123_4567899", "OrderID": "123_4567899", "CasinoID": "123", "GSID": "22", "PlayerID": "123_111222333", "LimitCurrency": "GBP", "LimitAmount": "55.00", "LimitResetTime": "2019-02-12T22:45:00+00:00", "OrderCurrency": "GBP", "OrderAmount": "45.00", "PurchaseCurrency": "GBP", "PurchaseAmount": "55.00", "BillingCurrency": "GBP", "BillingAmount": "45.00", "BillingDescriptor": "My descriptor", "DOB": "2019-08-24", "IpAddress": "127.0.0.1", "Email": "user@example.com", "FirstName": "Arnold", "LastName": "Schwartzenegger", "Address": "31 Guild Street", "Address2": "Apartment 2", "City": "London", "Region": "Westminster", "Country": "GB", "PostalCode": "E8 6XD", "PhoneNumber": "077 8826 0192", "NotificationURL": "string", "RedirectURL": "string", "UserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36", "Language": "en-US", "ExtraData": { "BannerTagId": "123|456|789|098|765|543|210", "RegistrationDate": "2017-03-23", "DeviceFingerprint": "23932819301914985", "CPF": "123456789" }, "Status": "completed", "Result": "approved", "GatewayAccountID": "101_WorldPay_GBP_X", "Acquirer": "Natwest", "ResponseCode": "00", "ResponseMessage": "Successful approval", "ResponseCodeGateway": "00", "ResponseMessageGateway": "Approved transaction", "HumanMessage": "Your card has expired. Please update your expiry dates and try again.", "GatewayTransactionID": "11111-22222-33333-44444", "Display": "pop", "CreatedTime": "2019-08-24T14:15:22Z", "UpdatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ], "AlternativeMethod": "Alipay", "FinancialAccountId": "string", "PaymentData": { "property1": "string", "property2": "string" } }