Skip to main content

Invitation to Member

POST 

/client/users/:correlation_id/households/:household_id/invites

If the inviter is not a part of any household and sends an invite to another member, 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 an INVITE object for the invitee

If the inviter is part of a household and sends an invite to another member, the following actions will take place:

  • Create an INVITE object for the invitee

Request

Path Variables

  • correlation_id
  • householdID

Body

AttributeDefinitionFormatNotes
identifierTypeContains identifying information to be sent in the request.ENUM: "LOYALTY_ID" or "EMAIL"
identifierValueIdentifier value of the invitee.StringDepending on identifierType selected, this is a valid email address or loyalty card number

Response

AttributeDefinitionFormatNotes
messageGeneric response messageStringContains success message: "The invitation has been sent successfully."

Error Responses

statusCodeerrorMessageerrorCodeDefinition
400 Bad RequestInvitation already sentINVALID_REQUESTInvitation already sent to invitee.
400 Bad RequestInvitee is already member of household.INVALID_REQUESTInvitee already belongs to this household.
400 Bad RequestCannot send invite from an unregistered account.INVALID_REQUESTInviter is unregistered user.
400 Bad RequestCould not send invite, Member does not belong to the mentioned householdINVALID_REQUESTInviter is not belongs to designated household.
400 Bad RequestMember does not have INVITE MEMBER privilege.INVALID_REQUESTInviter requires INVITE MEMBER privilege to send invitation to a household.
400 Bad RequestHousehold Member Capacity Limit ExceededINVALID_REQUESTHousehold member capacity limit is exceeded.
400 Bad RequestMember Daily Invite Capacity Limit ExceededINVALID_REQUESTInviter daily capacity limit exceeded.
400 Bad RequestCould not find the Inviter Account.INVALID_REQUESTInviter Account is not found.
400 Bad RequestInvitee Not Found.INVALID_REQUESTCannot find Invitee by provided details.
400 Bad RequestidentifierValue required to be non-emptyINVALID_REQUESTThe identifierValue value is empty.
400 Bad RequestidentifierType required to be non-emptyINVALID_REQUESTThe identifierType value is empty.
400 Bad RequestidentifierType should be one of EMAIL, LOYALTY_ID.INVALID_REQUESTThe identifierType must have a valid value.
404 Not FoundConfig Not foundNOT_FOUNDConfig does not exist in database.
404 Not FoundHousehold Template Not FoundNOT_FOUNDHousehold template does not exist.

Request

Responses

200 - Invite to Member (Created Household, Primary Member and Invite Object)

Response Headers
    Date
    Example: Sat, 25 Mar 2023 06:34:48 GMT
    Content-Length
    Example: 56
    Connection
    Example: keep-alive
    x-amzn-RequestId
    Example: 58232fbc-77bd-47bf-85c5-cf29b185a2f9
    Referrer-Policy
    Example: no-referrer
    X-XSS-Protection
    Example: 1;mode=block
    Access-Control-Allow-Origin
    Example: *
    MCK-APPID
    Example: ES-CB-V1
    MCK-MSGID
    Example: mck-9c62f5de-9e5f-4c80-bcd7-9dc9818a3b6e
    Expect-CT
    Example: max-age=86400
    Strict-Transport-Security
    Example: max-age=31536000; includeSubDomains; preload
    Feature-Policy
    Example: vibrate 'none'; geolocation 'none'
    X-Frame-Options
    Example: sameorigin
    Content-Security-Policy
    Example: connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.net
    MCK-MSGTIMESTAMP
    Example: March 25th 2023, 6:34:47
    x-amz-apigw-id
    Example: CUxg8HcOoAMFfkg=
    cache-control
    Example: no-cache, no-store, must-revalidate
    MCK_CORRELATIONID
    Example: CORRELATION_ID_NOT_PROVIDED_IN_REQUEST
    X-Content-Type-Options
    Example: nosniff
    X-Amzn-Trace-Id
    Example: Root=1-641e9605-54a8c3c5785c42f07bcf6b00;Sampled=0