Create and Process a Transfer Points Transaction
This use case shows how to take the attribute values provided in an input payload and create a new transfer points transaction record and process the transaction. It shows how to include an additional attribute, ToMemberNumber, to which the points are transferred. In this example, 50 points are transferred from member number 300000183667719 to member number 300000183683779.
Example URL
The following is an example of the resource URL.
POST
https://example.com:port/crmRestApi/resources/11.13.18.05/loyTransactions
Example Request Body
The following is an example of the request body.
{
"MemberNumber" : 300000183667719,
"ProgramName" : "Global Hotels",
"TransactionDate" : "2019-09-18",
"PointTypeName" : "Points",
"Points" : 50,
"TypeCode": "ORA_TXN_RED",
"SubTypeCode": "ORA_RED_TRAN",
"ToMemberNumber" : 300000183683779
}
Example Response
{
"LoyTransactionId": 300000183692802,
"TransactionNumber": "300000183692802",
"TransactionDate": "2019-09-18T00:00:00+00:00",
"TypeMeaning": "Redemption",
"TypeCode": "ORA_TXN_RED",
"SubTypeCode": "ORA_RED_TRAN",
"StatusMeaning": "Processed",
"StatusCode": "ORA_TXN_STAT_PROCESSED",
"ActivityDay": null,
"ActivityHour": null,
"AdjustedListPrice": null,
"AmountValue": null,
"ApproveDt": null,
"BidTransaction": "N",
"BookClassCode": null,
"BookingDt": null,
"BulkReferenceId": null,
"CancReasonCode": null,
"CancelledTransactionId": null,
"ChildTransactionId": null,
"Comments": null,
"CorporateReferenceNumber": null,
"CreatedBy": "george.grant",
"CreationDate": "2019-09-19T06:09:34+00:00",
"CurcyCode": "USD",
"CurcyExchDt": null,
"DestAirportCode": null,
"DestCityCode": null,
"DestZoneCode": null,
"DocumentNumber": null,
"EndDt": null,
"EnrolPromoId": null,
"ExpireInDays": null,
"ExternalReservationNumber": null,
"ExternalTransaction": "N",
"FareBasis": null,
"FareBasisCode": null,
"FareTypeCode": null,
"FlightNumber": null,
"FltTypeCode": null,
"GdsRecLocator": null,
"IncentivChoice": null,
"InternalDest": null,
"InternalFlightDt": null,
"InternalOrigin": null,
"ItemNumber": null,
"LastUpdateDate": "2019-09-19T06:09:37.149+00:00",
"LastUpdateLogin": "92E11FD6C0F80BA6E0539651DD0A2413",
"LastUpdatedBy": "george.grant",
"LoanBalance": null,
"LoanRepaymentDt": null,
"LocationCode": null,
"LocationName": null,
"MarketingFlightNumber": null,
"Points": 50,
"OperFltNum": null,
"OptyCost": null,
"OrderNumber": null,
"OrderQuantity": null,
"OrigAirportCode": null,
"OrigAmount": null,
"OrigOrdItmId": null,
"OrigOrderId": null,
"OrigPoints": null,
"OrigZoneCode": null,
"OriginCityCode": null,
"OvrDupCheck": "N",
"PriceOverriden": "N",
"OwnerId": null,
"PackageCode": null,
"ParentTransactionId": null,
"PartitionName": null,
"PeriodDurCode": null,
"PeriodTypeCode": null,
"PnrName": null,
"PostDt": null,
"ProcFlowId": null,
"ProcessDt": "2019-09-19T06:09:37.158+00:00",
"ProcessingComment": null,
"ProcessingLog": "Redeemed Points: 50.0 Points| (Transfer Points To Receiver)<br>Transfer Points: 50.0 Points, Expiry Date: 2022-06-18 10:42:16.0 (Transfer Points To Receiver)<br>",
"PtnrProcDt": null,
"PtnrStatusCode": null,
"PymtTypeCode": null,
"QualifyingPointUsed": "N",
"RdmItmId": null,
"RedemptionQuantity": null,
"RedemptionQuantityUOMCode": null,
"ReasonCode": null,
"RefundBasisCode": null,
"RefundPct": null,
"RfndOvrdCmnts": null,
"RfndOvrdRsnCode": null,
"SmActionTypeCode": null,
"SourceCode": null,
"StartDt": "2019-09-19T06:09:34.112+00:00",
"SubStatusCode": "ORA_TXN_SUB_STAT_SUCCESS",
"SubmitDt": null,
"TaxAmount": null,
"TicketNumber": null,
"ToMemberNumber": "300000183683779",
"TotalLines": null,
"TrvClassCode": null,
"TrvlDistance": null,
"TransactionChannelCode": null,
"TransactionSourceCode": null,
"UnaccMinor": "N",
"ValStatusCode": null,
"VoucherQuantity": null,
"ActivityDate": "2019-09-19T06:09:34.112+00:00",
"PaymentType": null,
"InvOrgId": null,
"LineItemNumber": null,
"PnrNumber": null,
"Description": null,
"CorpRefName": null,
"CurcyConvRateType": "Corporate",
"CorpCurrencyCode": "USD",
"MemberNumber": "300000183667719",
"PointTypeName": "Points",
"TransferPoints": null,
"TransferToMember": null,
"ExternalProductName": null,
"ExternalProductType": null,
"ExternalProductLine": null,
"TotalDays": null,
"CorpRefMemberId": null,
"DisplayName": "Points",
"LoyAttrdefnBId": 300000158253968,
"ProductNumber": null,
"PartnerNumber": null,
"PartyNumber": null,
"AccrualDisputeStatusCode": null,
"AccrualDisputeTypeCode": null,
"AccrualDisputedTransactionNumber": null,
"AccItmList": "[{\"PointTypeName\":\"Points\",\"LoyAttrdefnBId\":300000158253968,\"AccrualedValue\":50}]",
"ProgramName": "Global Hotels",
"HotelCode_c": null,
"RoomCategory_c": null,
"AirlineZone_c": null,
"CreditCard_c": null,
"links": [
{
"rel": "self",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyTransactions/300000183692802",
"name": "loyTransactions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
}
},
{
"rel": "canonical",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyTransactions/300000183692802",
"name": "loyTransactions",
"kind": "item"
},
.
.
.
{
"rel": "child",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyTransactions/300000183692802/child/Vouchers",
"name": "Vouchers",
"kind": "collection"
}
]
}