Messages sent from device to cloud count toward the daily message quota. Actions sent and/or received by a device don’t count towards the daily quota. For example, if a device sends 1 message to ARTIK Cloud which triggers a rule that sends actions to 5 other devices, only the message from the device to the cloud will count towards the message quota.
If a message is rejected at the public API, it is does not count towards the daily quota. A few common reasons for messages being rejected can include: exceeded payload size, missing meta data, invalid authentication/authorization. Once a message enters the pipeline, it is counted even if it fails to be normalized.