Skip to content

ProfilesApi::bulkSubscribeProfilesRequest not subscribing to a list. #69

Open
@vehikl-laumei

Description

@vehikl-laumei

While using the ProfilesApi to send bulkSubscribeProfilesRequest, we never receive "Subscribed to.." events.

Identical payloads work within Postman but oddly don't work through the php-sdk.

Here is an example of the payload we send;

{
    "data": {
        "type": "profile-subscription-bulk-create-job",
        "attributes": {
            "profiles": {
                "data": [
                    {
                        "type": "profile",
                        "attributes": {
                            "email": "[email protected]",
                            "subscriptions": {
                                "email": {
                                    "marketing": {
                                        "consent": "SUBSCRIBED"
                                    }
                                }
                            }
                        }
                    }
                ]
            },
            "historical_import": false
        },
        "relationships": {
            "list": {
                "data": {
                    "type": "list",
                    "id": "LIST_ID"
                }
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions