Create a member

Add a new member to a loyalty program.

Error cases

Individual_id does not exist (400)

{
    "status": 400,
    "errors": [
        {
            "error_key": "individual_id",
            "error": "wrong_value",
            "error_description": "Individual not found for unique key test."
        }
    ]
}

Malformatted value (400)

Generic error for all fields and custom fields values types

{
    "status": 400,
    "errors": [
        {
            "error_key": "card_code",
            "error": "wrong_type",
            "error_description": "This value should be of type string."
        }
    ]
}
{
    "status": 400,
    "errors": [
        {
            "error_key": "custom_fields[0].value",
            "error": "wrong_type",
            "error_description": "This value should be of type string."
        }
    ]
}

program is not running/does not exist (400)

{
    "status": 400,
    "errors": [
        {
            "error_key": "program_id",
            "error": "wrong_status",
            "error_description": "Program must be in running state."
        }
    ]
}

program_joined_at before program start_date (400)

{
    "statusCode": "Bad Request",
    "message": "Subscription request could not be done because of validation error(s)",
    "errors": [
        "loyalty program could not be found (program id: 2, status join date: 1588-01-01T00:00)"
    ]
}

Cardcode not specified on non-autogenerated program (400)

{
    "statusCode": "Bad Request",
    "message": "Subscription request could not be done because of validation error(s)",
    "errors": [
        "status must have a card code if the program doesn't have the card code auto generation option"
    ]
}

tier from forced_tier_name does not exist (400)

{
    "statusCode": "Bad Request",
    "message": "Subscription request could not be done because of validation error(s)",
    "errors": [
        "status program must have at least one active point based tier at tier join date"
    ]
}

Expiration before join_date (400)

{
    "statusCode": "Bad Request",
    "message": "Subscription request could not be done because of validation error(s)",
    "errors": [
        "status expiration date must not be before the program join date"
    ]
}
Language
Credentials
Bearer
JWT
URL
Click Try It! to start a request and see the response here!