Add Household Member (in Transition Period)
POST/client/users/:correlation_id/household/members
An administrator want to add households without creating an Invite object during the transition period (while member data is being migrated/synched) to the ES Loyalty platform. With inTransition = true in configuration, the following takes place to establish a household and its members.
This API will create the following objects:
If the primary member is not a part of any household, the following actions take place behind the scenes:
- Set up the HOUSEHOLD with Household ID(AccountID) = Primary member’s AccountID.
- Create the PRIMARY member object.
- Create the SECONDARY member object.
If the primary member is part of a household, the following actions take place:
- Create the SECONDARY member object
This endpoint creates the necessary objects; no INVITE object is created. The request is rejected if inTransition config is false.
Request
Path Variables
- correlation_id
- householdID
Body
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| identifierType | Contains identifying information to be sent in the request. | ENUM: "LOYALTY_ID" or "EMAIL" | |
| identifierValue | Identifier value of the invitee. | String | Depending on identifierType selected, this is a valid email address or loyalty card number |
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| message | Generic response message | String | Contains success message: "The invitation has been sent successfully." |
Error Responses
| statusCode | errorMessage | errorCode | Definition |
|---|---|---|---|
| 400 Bad Request | inTransition is not enabled. | INVALID_REQUEST | The configuration inTransition = false, so this request cannot be used to establish a household or add members. |
| 400 Bad Request | Household Member Capacity Limit Exceeded | INVALID_REQUEST | The limit on the number of household members cannot be exceeded. |
| 400 Bad Request | identifierType should be one of EMAIL, LOYALTY_ID. | INVALID_REQUEST | The identifierType must have a valid value. |
| 400 Bad Request | Member already exist in the household. | INVALID_REQUEST | The request was made using CARD and the member already exists in the household. |
| 400 Bad Request | Secondary member already exist in the household. | INVALID_REQUEST | The request was made using EMAIL and the member already exists in the household. |
| 400 Bad Request | Member is already part of another household. | INVALID_REQUEST | The member is already part of a different household and cannot be added to this one. |
Request
Responses
- 200
- 400
200 - Add Household Member
Response Headers
Date
Example:
Thu, 13 Apr 2023 18:40:02 GMTContent-Length
Example:
53Connection
Example:
keep-alivex-amzn-RequestId
Example:
9d5516ff-4683-4279-a647-f0084e409c37Referrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*MCK-APPID
Example:
ES-CB-V1MCK-MSGID
Example:
mck-5d0ae009-5ea1-40fd-95ce-577df8fd45c0Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000; includeSubDomains; preloadFeature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netMCK-MSGTIMESTAMP
Example:
April 13th 2023, 6:40:02x-amz-apigw-id
Example:
DVDkWETRIAMFcFg=cache-control
Example:
no-cache, no-store, must-revalidateMCK_CORRELATIONID
Example:
CORRELATION_ID_NOT_PROVIDED_IN_REQUESTX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-64384c81-5afabad7199e361307e84277;Sampled=0;lineage=815bc71e:0400 - inTransition Disabled
Response Headers
Date
Example:
Thu, 13 Apr 2023 14:03:50 GMTContent-Length
Example:
94Connection
Example:
keep-alivex-amzn-RequestId
Example:
abae1896-3b41-4793-abc6-60e1b3290a2eReferrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*MCK-APPID
Example:
ES-CB-V1MCK-MSGID
Example:
mck-b2ae94e3-d20d-41f5-a61c-677bce21f3fbExpect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000; includeSubDomains; preloadFeature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netMCK-MSGTIMESTAMP
Example:
April 13th 2023, 2:03:50x-amz-apigw-id
Example:
DUbGxFv-oAMFvIA=cache-control
Example:
no-cache, no-store, must-revalidateMCK_CORRELATIONID
Example:
CORRELATION_ID_NOT_PROVIDED_IN_REQUESTX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-64380bc4-3932dc4b131bbaff6d6ad7ec;Sampled=0;lineage=815bc71e:0