Search orders

Request

Searches orders. Recommended to filter by OrderID (eg. ?filter=OrderID:1234_567890).

Security
ApiKey
Query
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 the field with -. Multiple fields can be sorted by separating each with ,.

Headers
Organization-Idstring

Unique organization identifier. The gaming server ID maps to an organization in Rebilly. If this value is not set, the default user gaming server is used.

curl -i -X GET \
  'https://www.rebilly.com/_mock/mgs-api-definitions/mgs-api/orders?filter=string&sort=string' \
  -H 'Organization-Id: string' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

Orders retrieved.

Bodyapplication/json
array [
PaymentMethodstring(PaymentMethod)required

Payment method.

Enum:"payment-card""alternative"
Discriminator
TransactionIDstring, <= 50 characters(ResourceId)read-only

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.

Example:"123_4567899"
OrderIDstring, <= 50 characters(ResourceId)required

ID of the payment. This value must be unique for the merchant within a 24-hour period, to prevent duplicate requests.

Example:"123_4567899"
CasinoIDstring, <= 50 characters(ResourceId)required

ID of the casino. This value maps to a website ID in Rebilly.

Example:"123"
GSIDstring, <= 50 characters(ResourceId)read-only

ID of the gaming server. This value maps to an organization ID in Rebilly.

Example:"22"
PlayerIDstring, <= 50 characters(ResourceId)required

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.

Example:"123_111222333"
LimitCurrencystring, (ISO-4217-alpha-3)

Three character ISO 4217 alpha-3 code. This value must be configured in the gateway account.

Example:"GBP"
LimitAmountstring

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.

Example:"55.00"
LimitResetTimestring, (date-time)

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.

Example:"2019-02-12T22:45:00+00:00"
OrderCurrencystring, (ISO-4217-alpha-3)required

Three character ISO 4217 alpha-3 code. This value must be configured in the gateway account.

Example:"GBP"
OrderAmountstringrequired

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.

Example:"45.00"
PurchaseCurrencystring, (ISO-4217-alpha-3)read-only

Three character ISO 4217 alpha-3 code. This value must be configured in the gateway account. This value always matches the OrderCurrency.

Example:"GBP"
PurchaseAmountstringread-only

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.

Example:"55.00"
BillingCurrencystring, (ISO-4217-alpha-3)read-only

Three character ISO 4217 alpha-3 code. When dynamic currency conversion occurs, this is the currency billed.

Example:"GBP"
BillingAmountstringread-only

Amount billed. When dynamic currency conversion occurs, this is the amount of the currency billed.

Example:"45.00"
BillingDescriptorstringread-only

Billing descriptor that is displayed on the cardholder's billing statement.

Example:"My descriptor"
DOBstring, (date)

Player's date of birth in ISO 8601 full-date format (yyyy-mm-dd).

IpAddressstring, (ipv4)required

IPv4 address in dotted decimal format.

Example:"127.0.0.1"
Emailstring, (email)required

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.

Example:"user@example.com"
FirstNamestring, [ 3 .. 45 ] charactersrequired

Player's first name.

Example:"Arnold"
LastNamestring, [ 3 .. 45 ] charactersrequired

Player's last name.

Example:"Schwartzenegger"
Addressstring, <= 60 characters

Player's street address.

Example:"31 Guild Street"
Address2string, <= 60 characters

Player's second line of street address.

Example:"Apartment 2"
Citystring, <= 45 characters

Player's city.

Example:"London"
Regionstring, <= 45 characters

Player's state, province, territory, parish, or region.

Example:"Westminster"
Countrystring, (ISO-3166-1-alpha-2), <= 2 charactersrequired

Player's country in ISO 3166-1 alpha-2 format. Two characters max.

Example:"GB"
PostalCodestring, <= 10 characters

Player's postal code, also known as the post code or zip code.

Example:"E8 6XD"
PhoneNumberstring, <= 20 characters

Player's telephone number, which may be either a landline or mobile.

Example:"077 8826 0192"
NotificationURLstring, (url)required

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.

RedirectURLstring, (url)

For offsite payment due to third party verification, this URL is used to redirect the player upon the completion of the interaction.

UserAgentstring, <= 255 characters

Player's user-agent header from the browser request.

Example:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
Languagestring, (ISO-639-1-alpha-2), <= 5 characters

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.

Example:"en-US"
ExtraDataobject

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.

Example:
{ "BannerTagId": "123|456|789|098|765|543|210", "RegistrationDate": "2017-03-23", "DeviceFingerprint": "23932819301914985", "CPF": "123456789" }
Statusstringread-only

Status of the payout. Some status values require special handling, such as:

  • timeout (or conn-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 the NotificationURL upon resolution of the timeout and conn-error states.
  • waiting-gateway: Rebilly polls final status and sends a notification to NotificationURL when the payout is completed.
  • offsite: The user has already been redirected to the approvalUrl and is awaiting notification from the third party gateway.
Enum:"pending""sending""timeout""conn-error""never-sent""waiting-capture""waiting-gateway""waiting-refund""waiting-approval""offsite"
Example:"completed"
Resultstringread-only

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.

Enum:"approved""declined""canceled""abandoned""unknown"
GatewayAccountIDstringread-only

Merchant account used for the payment.

Example:"101_WorldPay_GBP_X"
Acquirerstringread-only

Acquirer used for the payment.

Example:"Natwest"
ResponseCodestringread-only

Code that maps to a message. The code is a string number between 0 and 1000. See Rebilly response codes.

Example:"00"
ResponseMessagestringread-only

Message mapped from the code.

Example:"Successful approval"
ResponseCodeGatewaystringread-only

Code from the downstream gateway.

Example:"00"
ResponseMessageGatewaystringread-only

Message mapped from the code from the gateway.

Example:"Approved transaction"
HumanMessagestringread-only

Message that is appropriate for presentation to a customer, translated into the language supplied in the request.

Example:"Your card has expired. Please update your expiry dates and try again."
GatewayTransactionIDstringread-only

ID of the transaction from the gateway.

Example:"11111-22222-33333-44444"
Displaystringread-only

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.

Default:"iframe"
Enum:"pop""iframe"
CreatedTimestring, (date-time)(ServerTimestamp)read-only

Date and time when the payment is created.

UpdatedTimestring, (date-time)(ServerTimestamp)read-only

Date and time when the payment is updated.

AlternativeMethodstring(AlternativeMethod)required

Name of the alternative method. The value supplied here determines where the payment is routed.

Enum:"Alipay""Aircash""Airpay""AstroPay Card""AstroPay-GO""bank-transfer""bank-transfer-2""bank-transfer-3""bank-transfer-4""bank-transfer-5"
FinancialAccountIdstringread-only

Unique financial account ID from the payment service.

PaymentDataobjectread-only

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.

]
Response
[ { "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": { … }, "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": { … } } ]