Enroll Member
1 min
POST
https://api.b.preview.loyaltyservices.io/api/v3/members
migrateboolean<p>Imports a member i.e. creates or updates a Tally member including their email, address, etc.
If a member exists with the same account number, that member will be updated; otherwise a new member is created.
The "api:member</p><div></div>" scope is required to use this parameter.
Use this service only to migrate existing data to Tally.<p></p>
asyncboolean<p>Submits the operation for background processing and returns a ‘202 Accepted’ response
along with an identifier to track the processing status.
Requires the "api:async-task</p><div></div>" scope.<p></p>
acceptstringGenerated from available response content types
bodyobjectMember Enrollment Request Object
200Success
202Accepted
400Bad request
401Unauthorized
403Forbidden
500Internal error
curl --request POST \
--url 'https://api.b.preview.loyaltyservices.io/api/v3/members?migrate=boolean&async=boolean' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"accountTypeCode": "MBR",
"linkedAccounts": [
{
"memberIdentifier": "500000003B",
"linkedType": "Corp"
}
],
"addresses": [
{
"countryCode": ""
}
],
"emails": [
{
"email": "[email protected]"
}
],
"phones": [
{
"phoneNumber": "1 414 111-1111"
}
],
"preferences": [
{
"preferenceRuleCode": "",
"preferenceRuleDetailCode": ""
}
],
"paymentCards": [
{
"typeCode": "",
"paymentCardAccountNumber": ""
}
],
"aliases": [
{
"typeCode": "Email",
"alias": "A123456",
"statusCode": "Active"
}
]
}'