API OverviewAPI Reference
developer.placewise.comapp.placewise.complacewise.com
API OverviewAPI Reference
developer.placewise.comapp.placewise.complacewise.com
IndexPublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
IndexPublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
  1. Sendings
  • Introduction
  • Filter parameter specification
  • Data formats
    • Records
    • Timeseries
    • Statistics
  • Reports
    • Members
      • members (records)
      • members_count (records)
      • members_grouped_count (records)
      • member_balance (timeseries)
      • members_count_snapshot (timeseries)
      • members_count_history (timeseries)
    • Sendings
      • sendings (records)
      • sendings_events_history (timeseries)
      • sendings_recipients_statistics (timeseries)
      • sendings_links (records)
      • sendings_links_stats (records)
      • sendings_stats (statistics)
      • Examples
        • sendings - find sending by reporting_id
        • sendings_events_history - show sending events
        • sendings_recipients_statistics - show recipients by age groups
        • sendings_stats - show statistics for campaign
        • sendings_events_history - show sending events for campaign
        • sendings_stats - show statistics for all campaigns
        • sendings_events_history - show sending events for all campaigns
    • Links
      • links_visits_history (timeseries)
    • Offers
  • Geo API
    • Find Locations Coordinates
      POST
    • List places
      POST
    • Show place
      GET
  • Metadata
    POST
  • Field metadata
    POST
  • Query (records)
    POST
  • Query (timeseries)
    POST
  • Query (records) export
    POST
  • Query (timeseries) export
    POST
  • Tenants query (records) export
    POST
  • Tenants query (timeseries) export
    POST
  1. Sendings

sendings (records)

Required permitRate limit tokens cost
Reporting:Api:Report:Sendings2
This report allows you to get information about sendings in your loyalty club.

Fields#

id#

TypeFilterableCan change?
Integer
Internal ID of sending.

loyalty_club_id#

TypeFilterableCan change?
Integer (via X-Customer header)
ID of loyalty club.

language#

TypeFilterableCan change?
Enum
Language of sending.

channel#

TypeFilterableCan change?
String
Sending's channel.
This field is an enum, possible values are:
sms
email
push

service_type#

TypeFilterableCan change?
Enum
Sending's service_type.

reporting_id#

TypeFilterableCan change?
Integer
Sending's reporting_id. This field can be used to attribute reported sending to its source.

source_app#

TypeFilterableCan change?
Enum
Identifier of application which is the source of given sending.
This field is an enum, possible values are:
the-big-project
messages_api

source_type#

TypeFilterableCan change?
Enum
Type of sending connected with its source.
This field is an enum, possible values are:
campaigns
triggers
other

source_id#

TypeFilterableCan change?
Integer
ID set by source application.

audience_id#

TypeFilterableCan change?
Integer
ID of audience to which sending was scheduled.

campaign_id#

TypeFilterableCan change?
Integer
ID of campaign to which sending was scheduled.

dispatches_count#

TypeFilterableCan change?
Integer
Number of messages scheduled to be sent.

members_count#

TypeFilterableCan change?
Integer
Number of members to which messages were scheduled to be sent.

new_count#

TypeFilterableCan change?
Integer
Number of messages in preprocessing stage during sending.

transiently_failed_count#

TypeFilterableCan change?
Integer
Number of messages which have a delay during the sending phase.

transmitted_count#

TypeFilterableCan change?
Integer
Number of messages which were successfully sent.

failed_count#

TypeFilterableCan change?
Integer
Number of messages which failed to be sent.

delivered_count#

TypeFilterableCan change?
Integer
Number of messages which were successfully delivered to members.

delivery_errored_count#

TypeFilterableCan change?
Integer
Number of messages which encountered errors during delivery.

clicked_count#

TypeFilterableCan change?
Integer
Number of members which clicked on a link within the message.
Clicks made by bots are skipped.

opened_count#

TypeFilterableCan change?
Integer
Number of members which opened the message.
Opens made by bots are skipped.

opened_events_count#

TypeFilterableCan change?
Integer
Number of opening events.

computed_counts#

TypeFilterableCan change?
Object
Counts computed from bare counts for various business cases. It includes following metrics:
sent - number of messages sent from the system
failed_to_send - number of messages which failed during sending phase
en_route - number of messages that are scheduled to be send but not yet reached the delivered or error state
delivered - number of messages delivered to members
errored - number of messages which failed during sending phase or failed during delivery
open_rate - Open Rate percentage

created_at#

TypeFilterableCan change?
String(ISO 8601 timestamp)
Time when given sending was created. Note that it’s not the same as time of sending.

timeseries_time_ranges#

TypeFilterableCan change?
Object(dynamic)
This field represents the time ranges when you can query related timeseries reports for events.
Example:
"1h":{
    "from":"2025-04-11T08:00:00.000000Z",
    "to":null
},
"1d":{
    "from":"2025-04-11T00:00:00.000000Z",
    “to":null
 },
"1w":{
    "from":"2025-04-07T00:00:00.000000Z",
    "to":null
},
"1mo":{
    "from":"2025-04-01T00:00:00.000000Z",
    "to":null
}

Query without aggregations#

Query returns list of sendings.
{
    "records": [
        {
           "id":452,
           "loyalty_club_id":275,
           "language":null,
           "channel":"push",
           "service_type":"rewards_notifications",
           "reporting_id":null,
           "source_id":null,
           "source_app":"messages_api",
           "source_type":"other",
           "audience_id":null,
           "campaign_id":null,
           "dispatches_count":67066,
           "members_count":8679,
           "new_count":909,
           "delivered_count":0,
           "delivery_errored_count":0,
           "failed_count":165,
           "opened_count":0,
           "opened_events_count":0,
           "transiently_failed_count":0,
           "transmitted_count":65992,
           "created_at":"2025-04-11T08:29:09.359381",
           "timeseries_time_ranges":{
              "1h":{
                 "from":"2025-04-11T08:00:00.000000Z",
                 "to":null
              },
              "1d":{
                 "from":"2025-04-11T00:00:00.000000Z",
                 "to":null
              },
              "1w":{
                 "from":"2025-04-07T00:00:00.000000Z",
                 "to":null
              },
              "1mo":{
                 "from":"2025-04-01T00:00:00.000000Z",
                 "to":null
              }
           }
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

Aggregations#

reporting_id#

Fetch sendings summary aggregated by reporting_id.
As a single "MPC sending" scheduled on UI can produce many "reporting sending" entities, this is helpful to gather all the "MPC sending" statistics in a single entity.

Returned fields#

KeyTypeDescription
reporting_idIntegerSee in Fields
service_typeStringSee in Fields
idsArray[Integer]Internal sending IDs which are aggregated
dispatches_countIntegerSee in Fields
members_countIntegerSee in Fields
new_countIntegerSee in Fields
delivered_countIntegerSee in Fields
delivery_errored_countIntegerSee in Fields
failed_countIntegerSee in Fields
opened_countIntegerSee in Fields
opened_events_countIntegerSee in Fields
transiently_failed_countIntegerSee in Fields
transmitted_countIntegerSee in Fields
first_created_atString(ISO 8601 timestamp)Time of first sending created_at
last_created_atString(ISO 8601 timestamp)Time of last sending created_at

Example query response#

{
    "records": [
        {
           "reporting_id":7265,
           "service_type":"campaigns",
           "ids":[
              40689
           ],
           "dispatches_count":73,
           "members_count":73,
           "new_count":0,
           "delivered_count":72,
           "delivery_errored_count":1,
           "failed_count":0,
           "opened_count":0,
           "opened_events_count":0,
           "transiently_failed_count":0,
           "transmitted_count":73,
           "first_created_at":"2025-08-06T09:00:31.423979",
           "last_created_at":"2025-08-06T09:00:31.423979",
           "timeseries_time_ranges":{
              "1h":{
                 "from":"2025-08-06T09:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1d":{
                 "from":"2025-08-06T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1w":{
                 "from":"2025-08-04T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1mo":{
                 "from":"2025-08-01T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              }
           }
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

campaign_id#

Fetch sendings summary aggregated by campaign_id.

Returned fields#

KeyTypeDescription
campaign_idIntegerSee in Fields
service_typeStringSee in Fields
idsArray[Integer]Internal sending IDs which are aggregated
dispatches_countIntegerSee in Fields
members_countIntegerSee in Fields
new_countIntegerSee in Fields
delivered_countIntegerSee in Fields
delivery_errored_countIntegerSee in Fields
failed_countIntegerSee in Fields
opened_countIntegerSee in Fields
opened_events_countIntegerSee in Fields
transiently_failed_countIntegerSee in Fields
transmitted_countIntegerSee in Fields
first_created_atString(ISO 8601 timestamp)Time of first sending created_at
last_created_atString(ISO 8601 timestamp)Time of last sending created_at

Example query response#

{
    "records": [
        {
           "campaign_id":7265,
           "service_type":"campaigns",
           "ids":[
              40689
           ],
           "dispatches_count":73,
           "members_count":73,
           "new_count":0,
           "delivered_count":72,
           "delivery_errored_count":1,
           "failed_count":0,
           "opened_count":0,
           "opened_events_count":0,
           "transiently_failed_count":0,
           "transmitted_count":73,
           "first_created_at":"2025-08-06T09:00:31.423979",
           "last_created_at":"2025-08-06T09:00:31.423979",
           "timeseries_time_ranges":{
              "1h":{
                 "from":"2025-08-06T09:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1d":{
                 "from":"2025-08-06T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1w":{
                 "from":"2025-08-04T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              },
              "1mo":{
                 "from":"2025-08-01T00:00:00.000000Z",
                 "to":"2025-08-08T09:00:31.423979Z"
              }
           }
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}
Previous
members_count_history (timeseries)
Next
sendings_events_history (timeseries)
Built with