Search Earning Rules
1 min
GET
https://api.b.preview.loyaltyservices.io/api/v3/earning-rules
Query Parameters
- namestringExampleDescription
- statusCodestringExampleDescription
- fromDatestring<date>ExampleDescriptionFormatdate
- toDatestring<date>ExampleDescriptionFormatdate
- dataReleaseNamestringExampleDescription
- pageNumberintegerExampleDescriptionDefault1Minimum1
- pageSizeintegerExampleDescriptionDefault50Minimum1Maximum500
Responses
200
- FindEarningRulesResponseDescription
- earningRulesEarningRule[]Description
- namestringrequiredExampleDescriptionMax Length50
- statusCodestringrequiredExampleDescription
- startDatestring<date>requiredExampleDescriptionFormatdate
- endDatestring<date>ExampleDescriptionFormatdate
- rankinteger<int32>ExampleDescriptionFormatint32
- informationstringExampleDescriptionMax Length500
- rawExpressionstringDescription
- workflowStatusstringExampleDescription
- dataReleaseNamestringExampleDescriptionMax Length250
- dataReleaseItemStatusstringExampleDescriptionMax Length50
- resultsEarningRuleResultsrequiredDescription
- pointCategoryCodestringExampleDescription
- typeCodestringExampleDescriptionDefaultF
- amountnumberExampleDescription
- tierQualifierbooleanDescriptionDefaultfalse
- roundingstringExampleDescription
- transactionRoundingstringExampleDescription
- numberOfDecimalsinteger<int32>DescriptionFormatint32
- limitsEarningRuleLimitsDescription
- minimumEarninteger<int32>ExampleDescriptionFormatint32
- maximumEarninteger<int32>ExampleDescriptionFormatint32
- pendingDaysinteger<int32>ExampleDescriptionFormatint32
- invoicingProBonusInvoicingDescription
- billablebooleanDescription
- billableToTypeCodestringExampleDescription
- invoiceTypeCodestringExampleDescription
- invoiceAmountnumberExampleDescription
- invoiceRatenumberExampleDescription
- ownerNamestringExampleDescription
- taxablebooleanDescription
- allowedActionsRuleAllowedActionsDescription
- modifybooleanDescription
- managebooleanDescription
- adminbooleanDescription
- deletebooleanDescription
- pageInfoPageInfo
- numberintegerDescription
- sizeintegerDescription
- totalItemsintegerDescription
- hasNextbooleanDescription
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
403
500
curl
curl --request GET \
--url 'https://api.b.preview.loyaltyservices.io/api/v3/earning-rules?pageNumber=1&pageSize=50' \
--header 'accept: application/json'ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/earning-rules?pageNumber=1&pageSize=50")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.b.preview.loyaltyservices.io/api/v3/earning-rules?pageNumber=1&pageSize=50"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
java
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.b.preview.loyaltyservices.io/api/v3/earning-rules?pageNumber=1&pageSize=50")
.method("GET", body)
.addHeader("accept", "application/json")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();200
// Success
{
"earningRules": [
{
"name": "Base Earn Rule 2026",
"statusCode": "A",
"startDate": "2026-01-01",
"endDate": "2026-12-31",
"rank": 10,
"information": "Standard base earn rate for all transactions",
"rawExpression": "",
"workflowStatus": "WORKING",
"dataReleaseName": "Rules Release 2025",
"dataReleaseItemStatus": "LIVE",
"results": {
"pointCategoryCode": "Base",
"typeCode": "F",
"amount": 500,
"tierQualifier": false,
"rounding": "Round",
"transactionRounding": "Round",
"numberOfDecimals": ""
},
"limits": {
"minimumEarn": 1,
"maximumEarn": 10000,
"pendingDays": 3
},
"invoicing": {
"billable": false,
"billableToTypeCode": "Hotel",
"invoiceTypeCode": "Standard",
"invoiceAmount": 25,
"invoiceRate": 0.15,
"ownerName": "Marketing Team",
"taxable": false
},
"allowedActions": {
"modify": false,
"manage": false,
"admin": false,
"delete": false
}
}
],
"pageInfo": {
"number": 0,
"size": 0,
"totalItems": 0,
"hasNext": false
}
}400
// Bad request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
403
// Forbidden
500
// Internal error