Post Transaction for Earnings Processing
1 min
POST
https://api.b.preview.loyaltyservices.io/api/v3/transactions
Body Parameters
- bodyTransactionRequestrequiredDescription
- referenceIdstringDescription
- memberTransactionMember
- memberIdentifierstringDescriptionMin Length1Max Length200
- firstNamestringDescriptionMin Length1Max Length100
- lastNamestringDescriptionMin Length1Max Length100
- aliasstringDescriptionMin Length1Max Length200
- transactionDateTimestring<date-time>DescriptionFormatdate-time
- descriptionstringDescriptionMax Length250
- originationDatestring<date>DescriptionFormatdate
- awardNumberstringDescriptionMax Length100
- providedAmountnumberExampleDescription
- sourceCodestringExampleDescription
- migrateStatusCodestringDescription
- customDataCustomData
- ace01stringDescription
- ace01DescriptionstringDescription
- ace02stringDescription
- ace02DescriptionstringDescription
- ace03stringDescription
- ace03DescriptionstringDescription
- ace04stringDescription
- ace04DescriptionstringDescription
- ace05stringDescription
- ace05DescriptionstringDescription
- ace06stringDescription
- ace06DescriptionstringDescription
- ace07stringDescription
- ace07DescriptionstringDescription
- ace08stringDescription
- ace08DescriptionstringDescription
- ace09stringDescription
- ace09DescriptionstringDescription
- ace10stringDescription
- ace10DescriptionstringDescription
- ace11stringDescription
- ace11DescriptionstringDescription
- ace12stringDescription
- ace12DescriptionstringDescription
- ace13stringDescription
- ace13DescriptionstringDescription
- ace14stringDescription
- ace14DescriptionstringDescription
- ace15stringDescription
- ace15DescriptionstringDescription
- spendTransactionSpend
- perItemnumberDescriptionMinimum0Maximum9999999999.99
- spendAmountnumberDescriptionMinimum0Maximum9999999999.99
- currencyTypeCodestringDescriptionMin Length0Max Length50
- currencyCategoryCodestringDescriptionMin Length0Max Length50
- isoCurrencyCodestringDescriptionMin Length0Max Length3
- currencyConversionRationumber<double>DescriptionFormatdouble
- quantityinteger<int32>DescriptionFormatint32Minimum0Maximum999999999
- hotelTransactionHotelTransaction
- checkInDatestring<date>DescriptionFormatdate
- checkOutDatestring<date>DescriptionFormatdate
- eligibleStaysinteger<int32>DescriptionFormatint32
- eligibleCappedNightsinteger<int32>DescriptionFormatint32
- eligibleNightsinteger<int32>DescriptionFormatint32
- roomNumberstringDescription
- roomTypestringDescription
- roomRatenumberDescription
- roomRateIntlnumberDescription
- totalRevenueAmountnumberDescription
- totalRevenueAmountIntlnumberDescription
- loyaltyEligibleAmountnumberDescription
- loyaltyEligibleAmountIntlnumberDescription
- loyaltyIneligibleAmountnumberDescription
- loyaltyIneligibleAmountIntlnumberDescription
- isoCurrencyCodestringDescription
- bookingSourcestringDescription
- paymentCodestringDescription
- purposeOfVisitstringDescription
- travelAgentNamestringDescription
- groupNamestringDescription
- companyNamestringDescription
- reservationConfirmationNumberstringDescription
- noShowbooleanDescription
- pmsConfirmationNumberstringDescription
- overlappingStayPoolIdstringDescription
- nonStayIndicatorbooleanDescription
- nonStayLocationIdstringDescription
- nonStayEligibleRevenuenumberDescription
- nonStayEligibleRevenueIntlnumberDescription
- nonStayIneligibleRevenuenumberDescription
- nonStayIneligibleRevenueIntlnumberDescription
- checkNumberstringDescription
- retailTransactionRetailTransaction
- transactionNbrstringDescription
- pointOfSaleTransNbrstringDescription
- transactionSequenceNbrstringDescription
- storestringDescription
- registerstringDescription
- travelTransactionTravelTransaction
- activityStartDateTimestring<date-time>DescriptionFormatdate-time
- activityEndDateTimestring<date-time>DescriptionFormatdate-time
- totalSpendAmountnumberDescriptionMinimum0Maximum9999999999.99
- transactionPartnerTransactionPartnerEarn
- partnerProgramCodestringDescription
- amountnumberDescriptionMaximum9999999999
- transactionMemberPaymentCardAccountTransactionMemberPaymentCardAccount
- memberPaymentCardAccountIdinteger<int64>DescriptionFormatint64
- typeCodestringDescriptionMax Length50
- paymentCardAccountNumberstringDescriptionMax Length50
- transactionReferencemap<string, object>Description
- useCouponCodesstring[]Description
Responses
200
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
403
500
curl
curl --request POST \
--url https://api.b.preview.loyaltyservices.io/api/v3/transactions \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.b.preview.loyaltyservices.io/api/v3/transactions", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/transactions")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.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/transactions"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Success
400
// Bad request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
403
// Forbidden
500
// Internal error