Enroll a Member Into an Enrollable Promotion
If you've considered using the REST API to enroll a member to an enrollable promotion in Oracle Loyalty Cloud, then this use case is for you!. It shows you how to enroll a member, member number 300100152563636, into an enrollable promotion, named TimeZonePromo.
Example URL
The following is an example of the resource URL.
POST
https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions
Example Request Body
The following is an example of the request body.
{
"MemberNumber": "300100152563636",
"PromotionName": "TimeZonePromo",
"EnrollmentStart": "2018-12-04T01:43:30.588-08:00",
"EnrollmentEnd": "2018-12-05T00:00:00-08:00"
}
Example Response
The following is an example of the response body.
"LoyPromomemId": 300100153928219,
"MemberNumber": "300100152563636",
"PromotionName": "TimeZonePromo",
"EnrollmentStart": "2018-12-04T09:43:30.588+00:00",
"EnrollmentEnd": "2018-12-05T08:00:00+00:00",
"CreatedBy": "LOYALTY_PROGRAM_ADMINISTRATOR",
"CreationDate": "2018-11-13T16:00:28+00:00",
"LastUpdateDate": "2018-11-13T16:00:28.041+00:00",
"LastUpdateLogin": "7A8BC65DB87F5A6DE0530740F00A250E",
"LastUpdatedBy": "LOYALTY_PROGRAM_ADMINISTRATOR",
"MemberId": 300100152563635,
"TypeCode": "ORA_TXN_ACC",
"SubTypeCode": "ORA_ACC_PROD",
"IncentiveChoice": null,
"IsMergeSurvivor": "N",
"links": [
{
"rel": "self",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions/300100153928219",
"name": "promotions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions/300100153928219",
"name": "promotions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636",
"name": "loyMembers",
"kind": "item"
},
{
"rel": "lov",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions/300100153928219/lov/PromotionVO1",
"name": "PromotionVO1",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions/300100153928219/lov/PromotionIncentiveChoiceVO1",
"name": "PromotionIncentiveChoiceVO1",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://example.com:port/crmRestApi/resources/11.13.18.05/loyMembers/300100152563636/child/promotions/300100153928219/lov/MemberNumberVA",
"name": "MemberNumberVA",
"kind": "collection"
}
]
}