Menu supplémentaire

Achetez MemberPress dès aujourd'hui ! Commencez à être payé pour le contenu que vous créez ! Obtenir MemberPress maintenant
  1. Accueil
  2. Base de connaissances
  3. Sujets avancés
  4. Outils du développeur
  5. Outils du développeur Déclencheurs d'événements

Outils du développeur Déclencheurs d'événements

Vue d'ensemble

Membre

Abonnement

Transactions

Rappels

Cours


Membre ajouté

Description

Envoyé lorsqu'un nouveau membre s'inscrit mais avant que ses données de paiement ne soient acceptées.

Exemple de réponse

{
  "event" : "member-added",
  "type" : "membre",
  "données" : {
    "id" : 56,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-04-18 16:47:14",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapiertest",
    "active_memberships" : [
      {
        "id" : 15,
        "title" : "Adhésion en or",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:22",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:22",
        "modified" : "2019-04-23 08:57:21",
        "modified_gmt" : "2019-04-23 14:57:21",
        "group" : "17",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "2",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion en or",
        "pricing_show_price" : true,
        "pricing_display" : "custom",
        "custom_price" : "$100 récurrent annuel",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "custom",
        "register_price" : "$100 récurrent annuel",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-23",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : "1",
        "custom_payment_methods" : [
          "peum51-1tc"
        ],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "active_txn_count" : "1",
    "expired_txn_count" : "1",
    "trial_txn_count" : null,
    "sub_count" : null,
    "login_count" : "1",
    "first_txn" : {
      "membership" : "15",
      "membre" : "56",
      "coupon" : "0",
      "abonnement" : "69",
      "id" : "198",
      "montant" : "0.00",
      "total" : "0.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "cus_EuSIHGllVD3168",
      "status" : "confirmé",
      "txn_type" : "subscription_confirmation",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-18 16:47:14",
      "expires_at" : "2019-04-18 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "latest_txn" : {
      "membership" : "15",
      "membre" : "56",
      "coupon" : "0",
      "abonnement" : "69",
      "id" : "199",
      "montant" : "100.00",
      "total" : "100.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-18 16:47:21",
      "expires_at" : "2019-05-18 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "MemberPress",
      "mepr_birthday" : "2019-04-18",
      "mepr_testslug" : ""
    },
    "transactions_récentes" : [
      {
        "membership" : "15",
        "membre" : "56",
        "coupon" : "0",
        "abonnement" : "69",
        "id" : "199",
        "montant" : "100.00",
        "total" : "100.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-04-18 16:47:21",
        "expires_at" : "2019-05-18 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      },
      {
        "membership" : "15",
        "membre" : "56",
        "coupon" : "0",
        "abonnement" : "69",
        "id" : "198",
        "montant" : "0.00",
        "total" : "0.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "cus_EuSIHGllVD3168",
        "status" : "confirmé",
        "txn_type" : "subscription_confirmation",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-04-18 16:47:14",
        "expires_at" : "2019-04-18 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ],
    "recent_subscriptions" : [
      {
        "coupon" : "0",
        "membership" : "15",
        "membre" : "56",
        "id" : "69",
        "subscr_id" : "cus_EuSIHGllVD3168",
        "gateway" : "peum51-1tc",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "limit_cycles" : "0",
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "prorated_trial" : "0",
        "trial" : "0",
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "status" : "actif",
        "created_at" : "2019-04-18 16:47:19",
        "total" : "100,00",
        "tax_rate" : "0.000",
        "tax_amount" : "0.00",
        "tax_desc" : "",
        "tax_class" : "standard",
        "cc_last4" : "1111",
        "cc_exp_month" : "10",
        "cc_exp_year" : "2020",
        "token" : "",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ]
  }
}

Inscription des membres terminée

Description

Envoyé lorsqu'un nouveau membre complète l'inscription et que son paiement est accepté.

Exemple de réponse

{
  "event" : "member-signup-completed",
  "type" : "membre",
  "data" : {
    "id" : 46,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapier@test.com",
    "nicename" : "zapiertest-com",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-03-19 16:48:20",
    "first_name" : "Zapier",
    "last_name" : "test",
    "display_name" : "zapier@test.com",
    "active_memberships" : [
      {
        "id" : 15,
        "title" : "Adhésion en or",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:22",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:22",
        "modified" : "2019-03-14 13:10:21",
        "modified_gmt" : "2019-03-14 19:10:21",
        "group" : "17",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "2",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion en or",
        "pricing_show_price" : true,
        "pricing_display" : "custom",
        "custom_price" : "Pricing",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "Ceci est un test",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-03-14",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : "1",
        "custom_payment_methods" : [
          "peum51-1tc"
        ],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
      },
      {
        "id" : 15,
        "title" : "Adhésion en or",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:22",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:22",
        "modified" : "2019-03-14 13:10:21",
        "modified_gmt" : "2019-03-14 19:10:21",
        "group" : "17",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "2",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion en or",
        "pricing_show_price" : true,
        "pricing_display" : "custom",
        "custom_price" : "Pricing",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "Ceci est un test",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-03-14",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : "1",
        "custom_payment_methods" : [
          "peum51-1tc"
        ],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "active_txn_count" : "2",
    "expired_txn_count" : "0",
    "trial_txn_count" : null,
    "sub_count" : null,
    "login_count" : "1",
    "first_txn" : {
      "membership" : "15",
      "membre" : "46",
      "coupon" : "0",
      "abonnement" : "59",
      "id" : "166",
      "montant" : "0.00",
      "total" : "0.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "cus_EjDYhKuKyRY5N2",
      "status" : "confirmé",
      "txn_type" : "subscription_confirmation",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-03-19 16:48:21",
      "expires_at" : "2019-03-19 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "latest_txn" : {
      "membership" : "15",
      "membre" : "46",
      "coupon" : "0",
      "abonnement" : "59",
      "id" : "167",
      "montant" : "100.00",
      "total" : "100.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1EFl6yJT1LHvX6IL95fhb7M4",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-03-19 16:48:28",
      "expires_at" : "2019-04-19 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "Zapier test",
      "mepr_birthday" : "2019-03-19",
      "mepr_testslug" : ""
    },
    "transactions_récentes" : [
      {
        "membership" : "15",
        "membre" : "46",
        "coupon" : "0",
        "abonnement" : "59",
        "id" : "167",
        "montant" : "100.00",
        "total" : "100.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1EFl6yJT1LHvX6IL95fhb7M4",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-03-19 16:48:28",
        "expires_at" : "2019-04-19 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      },
      {
        "membership" : "15",
        "membre" : "46",
        "coupon" : "0",
        "abonnement" : "59",
        "id" : "166",
        "montant" : "0.00",
        "total" : "0.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "cus_EjDYhKuKyRY5N2",
        "status" : "confirmé",
        "txn_type" : "subscription_confirmation",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-03-19 16:48:21",
        "expires_at" : "2019-03-19 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ],
    "recent_subscriptions" : [
      {
        "coupon" : "0",
        "membership" : "15",
        "membre" : "46",
        "id" : "59",
        "subscr_id" : "cus_EjDYhKuKyRY5N2",
        "gateway" : "peum51-1tc",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "limit_cycles" : "0",
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "prorated_trial" : "0",
        "trial" : "0",
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "status" : "actif",
        "created_at" : "2019-03-19 16:48:25",
        "total" : "100.00",
        "tax_rate" : "0.000",
        "tax_amount" : "0.00",
        "tax_desc" : "",
        "tax_class" : "standard",
        "cc_last4" : "1111",
        "cc_exp_month" : "10",
        "cc_exp_year" : "2030",
        "token" : "",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ]
  }
}

Mise à jour des informations sur les comptes des membres

Description

Envoyé lorsqu'un membre met à jour les informations de son compte.

Exemple de réponse

{
  "event" : "member-account-updated",
  "type" : "membre",
  "data" : {
    "id" : 49,
    "email" : "coupon@testing2.com",
    "nom d'utilisateur" : "coupon@testing2.com",
    "nicename" : "coupontesting2-com",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-04-03 17:33:06",
    "prénom" : "coupon",
    "last_name" : "testing2",
    "display_name" : "coupon testing2",
    "active_memberships" : [
      {
        "id" : 267,
        "title" : "coupon testing",
        "content" : "",
        "excerpt" : "",
        "date" : "2019-04-03 11:18:41",
        "status" : "publier",
        "author" : "5",
        "date_gmt" : "2019-04-03 17:18:41",
        "modified" : "2019-04-04 10:58:44",
        "modified_gmt" : "2019-04-04 16:58:44",
        "group" : "0",
        "prix" : "9.99",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : "1",
        "trial_days" : "90",
        "trial_amount" : "29.94",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "coupon testing",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-04",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "active_txn_count" : "1",
    "expired_txn_count" : "0",
    "trial_txn_count" : null,
    "sub_count" : null,
    "login_count" : "1",
    "first_txn" : {
      "membership" : "267",
      "membre" : "49",
      "coupon" : "0",
      "abonnement" : "62",
      "id" : "178",
      "montant" : "29.94",
      "total" : "29.94",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1ELCxmJT1LHvX6ILZSGECdgo",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-03 17:33:07",
      "expires_at" : "2019-07-02 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "latest_txn" : {
      "membership" : "267",
      "membre" : "49",
      "coupon" : "0",
      "abonnement" : "62",
      "id" : "178",
      "montant" : "29.94",
      "total" : "29.94",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1ELCxmJT1LHvX6ILZSGECdgo",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-03 17:33:07",
      "expires_at" : "2019-07-02 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "blah",
      "mepr_birthday" : "2019-04-03",
      "mepr_testslug" : ""
    },
    "transactions_récentes" : [
      {
        "membership" : "267",
        "membre" : "49",
        "coupon" : "0",
        "abonnement" : "62",
        "id" : "178",
        "montant" : "29.94",
        "total" : "29.94",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1ELCxmJT1LHvX6ILZSGECdgo",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-04-03 17:33:07",
        "expires_at" : "2019-07-02 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ],
    "recent_subscriptions" : [
      {
        "coupon" : "0",
        "adhésion" : "267",
        "membre" : "49",
        "id" : "62",
        "subscr_id" : "cus_EoqfMhbLzIxdXZ",
        "gateway" : "peum51-1tc",
        "prix" : "9.99",
        "période" : "1",
        "period_type" : "mois",
        "limit_cycles" : "0",
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "prorated_trial" : "0",
        "trial" : "1",
        "trial_days" : "90",
        "trial_amount" : "29.94",
        "status" : "actif",
        "created_at" : "2019-04-03 17:33:31",
        "total" : "9,99",
        "tax_rate" : "0.000",
        "tax_amount" : "0.00",
        "tax_desc" : "",
        "tax_class" : "standard",
        "cc_last4" : "1111",
        "cc_exp_month" : "10",
        "cc_exp_year" : "2020",
        "token" : "",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ]
  }
}

Membre supprimé

Description

Envoyé lorsqu'un membre est supprimé du système.

Exemple de réponse

{
  "event" : "membre supprimé",
  "type" : "membre",
  "données" : {
    "id" : null,
    "email" : null,
    "nom d'utilisateur" : null,
    "nicename" : null,
    "url" : null,
    "message" : null,
    "registered_at" : null,
    "first_name" : null,
    "last_name" : null,
    "display_name" : null,
    "active_memberships" : [],
    "active_txn_count" : "0",
    "expired_txn_count" : "2",
    "trial_txn_count" : null,
    "sub_count" : null,
    "login_count" : "0",
    "first_txn" : {
      "membership" : "187",
      "membre" : "0",
      "coupon" : "0",
      "abonnement" : "0",
      "id" : "80",
      "montant" : "25.00",
      "total" : "25.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1DofUJJT1LHvX6ILMJpFFPBR",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-01-03 23:20:15",
      "expires_at" : "2019-01-01 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "latest_txn" : {
      "membership" : "187",
      "membre" : "0",
      "coupon" : "0",
      "abonnement" : "0",
      "id" : "81",
      "montant" : "25.00",
      "total" : "25.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1DofiBJT1LHvX6ILVSQdUD4q",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-01-03 23:34:36",
      "expires_at" : "2019-01-31 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "address" : {
      "mepr-address-one" : "",
      "mepr-address-two" : "",
      "mepr-address-city" : "",
      "mepr-address-state" : "",
      "mepr-address-zip" : "",
      "mepr-address-country" : ""
    },
    "profil" : {
      "mepr_company_name" : false,
      "mepr_birthday" : false,
      "mepr_testslug" : false
    },
    "transactions_récentes" : [
      {
        "membership" : "187",
        "membre" : "0",
        "coupon" : "0",
        "abonnement" : "0",
        "id" : "81",
        "montant" : "25.00",
        "total" : "25.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1DofiBJT1LHvX6ILVSQdUD4q",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-01-03 23:34:36",
        "expires_at" : "2019-01-31 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      },
      {
        "membership" : "187",
        "membre" : "0",
        "coupon" : "0",
        "abonnement" : "0",
        "id" : "80",
        "montant" : "25.00",
        "total" : "25.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1DofUJJT1LHvX6ILMJpFFPBR",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-01-03 23:20:15",
        "expires_at" : "2019-01-01 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      },
      {
        "membership" : "29",
        "membre" : "0",
        "coupon" : "0",
        "abonnement" : "14",
        "id" : "36",
        "montant" : "100.00",
        "total" : "100.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "mp-txn-5be36b50d3ba3",
        "status" : "en attente",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2018-11-07 22:46:40",
        "expires_at" : "2019-11-07 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ],
    "recent_subscriptions" : [
      {
        "coupon" : "0",
        "adhésion" : "29",
        "membre" : "0",
        "id" : "14",
        "subscr_id" : "mp-sub-5be36b50ddb45",
        "gateway" : "peum51-1tc",
        "price" : "100.00",
        "période" : "1",
        "period_type" : "years",
        "limit_cycles" : "0",
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "prorated_trial" : "0",
        "trial" : "0",
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "status" : "pending",
        "created_at" : "2018-11-07 22:46:40",
        "total" : "100,00",
        "tax_rate" : "0.000",
        "tax_amount" : "0.00",
        "tax_desc" : "",
        "tax_class" : "standard",
        "cc_last4" : "",
        "cc_exp_month" : "",
        "cc_exp_year" : "",
        "token" : "",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ]
  }
}

Membre connecté

Description

Envoyé lorsqu'un membre se connecte.

Exemple de réponse

{
  "event" : "login",
  "type" : "membre",
  "données" : {
    "id" : 56,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-04-18 16:47:14",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapiertest",
    "active_memberships" : [
      {
        "id" : 15,
        "title" : "Adhésion en or",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:22",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:22",
        "modified" : "2019-04-23 08:57:21",
        "modified_gmt" : "2019-04-23 14:57:21",
        "group" : "17",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "2",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion en or",
        "pricing_show_price" : true,
        "pricing_display" : "custom",
        "custom_price" : "$100 récurrent annuel",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "custom",
        "register_price" : "$100 récurrent annuel",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-23",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : "1",
        "custom_payment_methods" : [
          "peum51-1tc"
        ],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "active_txn_count" : "1",
    "expired_txn_count" : "1",
    "trial_txn_count" : null,
    "sub_count" : null,
    "login_count" : "1",
    "first_txn" : {
      "membership" : "15",
      "membre" : "56",
      "coupon" : "0",
      "abonnement" : "69",
      "id" : "198",
      "montant" : "0.00",
      "total" : "0.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "cus_EuSIHGllVD3168",
      "status" : "confirmé",
      "txn_type" : "subscription_confirmation",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-18 16:47:14",
      "expires_at" : "2019-04-18 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "latest_txn" : {
      "membership" : "15",
      "membre" : "56",
      "coupon" : "0",
      "abonnement" : "69",
      "id" : "199",
      "montant" : "100.00",
      "total" : "100.00",
      "tax_amount" : "0.00",
      "tax_rate" : "0.000",
      "tax_desc" : "",
      "tax_class" : "standard",
      "trans_num" : "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
      "status" : "complete",
      "txn_type" : "payment",
      "gateway" : "peum51-1tc",
      "prorated" : "0",
      "created_at" : "2019-04-18 16:47:21",
      "expires_at" : "2019-05-18 23:59:59",
      "corporate_account_id" : "0",
      "parent_transaction_id" : "0",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "MemberPress",
      "mepr_birthday" : "2019-04-18",
      "mepr_testslug" : ""
    },
    "transactions_récentes" : [
      {
        "membership" : "15",
        "membre" : "56",
        "coupon" : "0",
        "abonnement" : "69",
        "id" : "199",
        "montant" : "100.00",
        "total" : "100.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
        "status" : "complete",
        "txn_type" : "payment",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-04-18 16:47:21",
        "expires_at" : "2019-05-18 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      },
      {
        "membership" : "15",
        "membre" : "56",
        "coupon" : "0",
        "abonnement" : "69",
        "id" : "198",
        "montant" : "0.00",
        "total" : "0.00",
        "tax_amount" : "0.00",
        "tax_rate" : "0.000",
        "tax_desc" : "",
        "tax_class" : "standard",
        "trans_num" : "cus_EuSIHGllVD3168",
        "status" : "confirmé",
        "txn_type" : "subscription_confirmation",
        "gateway" : "peum51-1tc",
        "prorated" : "0",
        "created_at" : "2019-04-18 16:47:14",
        "expires_at" : "2019-04-18 23:59:59",
        "corporate_account_id" : "0",
        "parent_transaction_id" : "0",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ],
    "recent_subscriptions" : [
      {
        "coupon" : "0",
        "membership" : "15",
        "membre" : "56",
        "id" : "69",
        "subscr_id" : "cus_EuSIHGllVD3168",
        "gateway" : "peum51-1tc",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "limit_cycles" : "0",
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "prorated_trial" : "0",
        "trial" : "0",
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "status" : "actif",
        "created_at" : "2019-04-18 16:47:19",
        "total" : "100,00",
        "tax_rate" : "0.000",
        "tax_amount" : "0.00",
        "tax_desc" : "",
        "tax_class" : "standard",
        "cc_last4" : "1111",
        "cc_exp_month" : "10",
        "cc_exp_year" : "2020",
        "token" : "",
        "tax_compound" : "0",
        "tax_shipping" : "1",
        "response" : null
      }
    ]
  }
}

Abonnement créé

Description

Envoyé lors de la création d'un abonnement.

Exemple de réponse

{
  "event" : "subscription-created",
  "type" : "subscription",
  "data" : {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-23 08:57:21",
      "modified_gmt" : "2019-04-23 14:57:21",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "$100 récurrent annuel",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "custom",
      "register_price" : "$100 récurrent annuel",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-23",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 56,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-18 16:47:14",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapiertest"
    },
    "id" : "69",
    "subscr_id" : "cus_EuSIHGllVD3168",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live" : {
            "public" : "",
            "secret" : ""
          }
        },
        "saved" : "1",
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities" : [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-04-18 16:47:19",
    "total" : "100,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  }
}

Abonnement interrompu

Description

Envoyé lorsqu'un abonnement est mis en pause.

Exemple de réponse

{
  "event" : "subscription-paused",
  "type" : "abonnement",
  "data" : {
    "coupon" : {
      "id" : 197,
      "coupon_code" : "M5TGWIKIYU",
      "date" : "2019-01-10 15:38:04",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-01-10 22:38:04",
      "modified" : "2019-02-05 10:18:06",
      "modified_gmt" : "2019-02-05 17:18:06",
      "valid_memberships" : [
        "196"
      ],
      "should_expire" : false,
      "expires_on" : "0",
      "usage_count" : "3",
      "usage_amount" : "0",
      "discount_type" : "pourcentage",
      "discount_amount" : "20",
      "discount_mode" : "trial-override",
      "trial_days" : "2",
      "trial_amount" : "0.00"
    },
    "membership" : {
      "id" : 196,
      "title" : "coupon test",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-01-10 15:36:20",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-01-10 22:36:20",
      "modified" : "2019-02-19 12:15:59",
      "modified_gmt" : "2019-02-19 19:15:59",
      "group" : "0",
      "price" : "100.00",
      "période" : "1",
      "period_type" : "années",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "14",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "coupon test",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-02-19",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 36,
      "email" : "coupon@trial.com",
      "nom d'utilisateur" : "coupontrial",
      "nicename" : "coupontrial",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-01-10 22:39:32",
      "first_name" : "",
      "last_name" : "",
      "display_name" : "coupontrial"
    },
    "id" : "32",
    "subscr_id" : "cus_EJprCdOvRzjvZq",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live" : {
            "public" : "",
            "secret" : ""
          }
        },
        "saved" : "1",
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities" : [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "80.00",
    "période" : "1",
    "period_type" : "années",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "1",
    "trial_days" : "14",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-01-10 22:40:03",
    "total" : "80.00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "32-yourdomain.com-5c59c54c8e755",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  }
}

Reprise de l'abonnement

Description

Envoyé lors de la reprise d'un abonnement.

Exemple de réponse

{
  "event" : "abonnement-repris",
  "type" : "abonnement",
  "data" : {
    "coupon" : false,
    "membership" : faux,
    "membre" : 0,
    "id" : 0,
    "subscr_id" : "mp-sub-5cbf49bc32f6b",
    "gateway" : {
      "name" : "Manual",
      "label" : "Manuel",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/offline.png",
      "use_icon" : true,
      "desc" : "",
      "use_desc" : true,
      "id" : "manual",
      "has_spc_form" : null,
      "settings" : {},
      "capabilities" : []
    },
    "prix" : 0,
    "période" : 1,
    "period_type" : "mois",
    "limit_cycles" : false,
    "limit_cycles_num" : 0,
    "limit_cycles_action" : null,
    "prorated_trial" : false,
    "trial" : false,
    "trial_days" : 0,
    "trial_amount" : 0,
    "status" : "pending",
    "created_at" : null,
    "total" : 0,
    "tax_rate" : 0,
    "tax_amount" : 0,
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : null,
    "cc_exp_month" : null,
    "cc_exp_year" : null,
    "token" : null
  }
}

Arrêt de l'abonnement

Description

Envoyé lorsqu'un abonnement est annulé.

Exemple de réponse

{
  "event" : "subscription-stopped",
  "type" : "subscription",
  "data" : {
    "coupon" : false,
    "membership" : faux,
    "membre" : 0,
    "id" : 0,
    "subscr_id" : "mp-sub-5cbf49f34eb28",
    "gateway" : {
      "name" : "Manuel",
      "label" : "Manuel",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/offline.png",
      "use_icon" : true,
      "desc" : "",
      "use_desc" : true,
      "id" : "manual",
      "has_spc_form" : null,
      "settings" : {},
      "capabilities" : []
    },
    "prix" : 0,
    "période" : 1,
    "period_type" : "mois",
    "limit_cycles" : false,
    "limit_cycles_num" : 0,
    "limit_cycles_action" : null,
    "prorated_trial" : false,
    "trial" : false,
    "trial_days" : 0,
    "trial_amount" : 0,
    "status" : "pending",
    "created_at" : null,
    "total" : 0,
    "tax_rate" : 0,
    "tax_amount" : 0,
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : null,
    "cc_exp_month" : null,
    "cc_exp_year" : null,
    "token" : null
  }
}

Abonnement mis à jour

Description

SUPPRIMÉ - Veuillez utiliser Abonnement mis à niveau vers (récurrent | non récurrent) à la place.

Exemple de réponse

{
  "event" : "subscription-upgraded",
  "type" : "subscription",
  "data" : {
    "coupon" : false,
    "membership" : {
      "id" : 247,
      "titre" : "274 année",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-03-04 15:47:14",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-03-04 22:47:14",
      "modified" : "2019-03-04 15:47:14",
      "modified_gmt" : "2019-03-04 22:47:14",
      "group" : "248",
      "prix" : "274.00",
      "période" : "1",
      "period_type" : "années",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "1",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "274 par an",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-03-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 44,
      "email" : "264@test.com",
      "nom d'utilisateur" : "264@test.com",
      "nicename" : "264test-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-03-04 22:48:48",
      "first_name" : "",
      "last_name" : "",
      "display_name" : "264@test.com"
    },
    "id" : "55",
    "subscr_id" : "cus_Edh0OEAyG94pBP",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live" : {
            "public" : "",
            "secret" : ""
          }
        },
        "saved" : "1",
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities" : [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "274.00",
    "période" : "1",
    "period_type" : "years",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "1",
    "trial" : "1",
    "trial_days" : "7",
    "trial_amount" : "1.00",
    "status" : "actif",
    "created_at" : "2019-03-04 22:51:12",
    "total" : "274,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  }
}

Abonnement revu à la baisse

Description

DÉGRADÉ - Veuillez utiliser Abonnement rétrogradé en (récurrent | non récurrent) à la place.

Exemple de réponse

{
  "event" : "subscription-downgraded",
  "type" : "subscription",
  "data" : {
    "coupon" : false,
    "membership" : {
      "id" : 13,
      "title" : "Adhésion Bronze",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:08:50",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:08:50",
      "modified" : "2019-01-14 13:49:13",
      "modified_gmt" : "2019-01-14 20:49:13",
      "group" : "17",
      "price" : "0.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion Bronze",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-01-14",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 30,
      "email" : "downgrade@email.com",
      "nom d'utilisateur" : "downgrade@email.com",
      "nicename" : "downgradeemail-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2018-12-28 17:51:46",
      "first_name" : "downgrade",
      "last_name" : "downgrade",
      "display_name" : "downgrade@email.com"
    },
    "id" : "71",
    "montant" : "0.00",
    "total" : "0.00",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "mp-txn-5c2663104e471",
    "status" : "complete",
    "txn_type" : "payment",
    "gateway" : {
      "name" : "Free",
      "label" : "Free",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/offline.png",
      "use_icon" : true,
      "desc" : "",
      "use_desc" : true,
      "id" : "free",
      "has_spc_form" : null,
      "settings" : {},
      "capabilities" : []
    },
    "prorated" : "1",
    "created_at" : "2018-12-28 17:53:18",
    "expires_at" : "0000-00-00 00:00:00",
    "subscription_id" : "0",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  }
}

Abonnement transformé en abonnement non récurrent

Description

Envoyé lorsqu'un utilisateur met à jour son abonnement et que le nouvel abonnement n'est pas récurrent (paiement unique).

Exemple de réponse

{
  "event" : "subscription-upgraded-to-one-time",
  "type" : "transaction",
  "data" : {
    "membership" : {
      "id" : 16,
      "title" : "Adhésion platine",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:44",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:44",
      "modified" : "2018-11-29 10:04:26",
      "modified_gmt" : "2018-11-29 17:04:26",
      "group" : "17",
      "prix" : "2600.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "3",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion platine",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2018-11-29",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test",
      "address" : {
        "mepr-address-one" : "120 S 200 W",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "2019-01-02",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : "0",
    "id" : "26",
    "montant" : "2590.83",
    "total" : "2590.83",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "ch_1DMLSfJT1LHvX6ILAUpQUAe0",
    "status" : "complete",
    "txn_type" : "payment",
    "gateway" : "peum51-1tc",
    "prorated" : "1",
    "created_at" : "2018-10-17 20:17:14",
    "expires_at" : "0000-00-00 00:00:00",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false,
    "commissions" : []
  }
}

Abonnement transformé en abonnement récurrent

Description

Envoyé lorsqu'un utilisateur met à jour son abonnement et que le nouvel abonnement est auto-récurrent (les paiements sont effectués automatiquement à chaque cycle de paiement).

Exemple de réponse

{
  "event" : "subscription-upgraded-to-recurring",
  "type" : "subscription",
  "data" : {
    "coupon" : false,
    "membership" : {
      "id" : 247,
      "titre" : "274 année",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-03-04 15:47:14",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-03-04 22:47:14",
      "modified" : "2019-03-04 15:47:14",
      "modified_gmt" : "2019-03-04 22:47:14",
      "group" : "248",
      "prix" : "274.00",
      "période" : "1",
      "period_type" : "années",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "1",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "274 par an",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-03-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 44,
      "email" : "264@test.com",
      "nom d'utilisateur" : "264@test.com",
      "nicename" : "264test-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-03-04 22:48:48",
      "first_name" : "",
      "last_name" : "",
      "display_name" : "264@test.com"
    },
    "id" : "55",
    "subscr_id" : "cus_Edh0OEAyG94pBP",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live" : {
            "public" : "",
            "secret" : ""
          }
        },
        "saved" : "1",
        "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities" : [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "274.00",
    "période" : "1",
    "period_type" : "years",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "1",
    "trial" : "1",
    "trial_days" : "7",
    "trial_amount" : "1.00",
    "status" : "actif",
    "created_at" : "2019-03-04 22:51:12",
    "total" : "274,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  }
}

Abonnement rétrogradé en non récurrent

Description

Envoyé lorsqu'un utilisateur réduit son abonnement et que le nouvel abonnement n'est pas récurrent (paiement unique).

Exemple de réponse

{
  "event" : "subscription-downgraded-to-one-time",
  "type" : "transaction",
  "data" : {
    "membership" : {
      "id" : 13,
      "title" : "Adhésion Bronze",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:08:50",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:08:50",
      "modified" : "2019-01-14 13:49:13",
      "modified_gmt" : "2019-01-14 20:49:13",
      "group" : "17",
      "price" : "0.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion Bronze",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-01-14",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 30,
      "email" : "downgrade@email.com",
      "nom d'utilisateur" : "downgrade@email.com",
      "nicename" : "downgradeemail-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2018-12-28 17:51:46",
      "first_name" : "downgrade",
      "last_name" : "downgrade",
      "display_name" : "downgrade@email.com",
      "address" : {
        "mepr-address-one" : "123 fake st",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : "0",
    "id" : "71",
    "montant" : "0.00",
    "total" : "0.00",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "mp-txn-5c2663104e471",
    "status" : "complet",
    "txn_type" : "payment",
    "gateway" : "gratuit",
    "prorated" : "1",
    "created_at" : "2018-12-28 17:53:18",
    "expires_at" : "0000-00-00 00:00:00",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false
  }
}

Abonnement rétrogradé en abonnement récurrent

Description

Sent when a user downgrades their Subscription and the new Subscription is auto-recurring (payments happen automatically each payment cycle).

Exemple de réponse

{
  "event": "subscription-downgraded-to-recurring",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
    },
    "id": "12",
    "subscr_id": "cus_DrJ5MoBA4aJi27",
    "gateway": {
      "name": "Stripe",
      "label": "My Stripe gateway",
      "use_label": true,
      "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pay with your credit card via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label": "My Stripe gateway",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": false,
        "force_ssl": false,
        "debug": false,
        "test_mode": "on",
        "use_stripe_checkout": false,
        "churn_buster_enabled": false,
        "churn_buster_uuid": "",
        "api_keys": {
          "test": {
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live": {
            "public": "",
            "secret": ""
          }
        },
        "saved": "1",
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities": [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "create-subscriptions",
        "cancel-subscriptions",
        "update-subscriptions",
        "suspend-subscriptions",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price": "100.00",
    "period": "1",
    "period_type": "months",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "1",
    "trial": "1",
    "trial_days": "31",
    "trial_amount": "0.00",
    "status": "cancelled",
    "created_at": "2018-10-26 18:56:20",
    "total": "100.00",
    "tax_rate": "0.000",
    "tax_amount": "0.00",
    "tax_desc": "",
    "tax_class": "standard",
    "cc_last4": "1111",
    "cc_exp_month": "10",
    "cc_exp_year": "2020",
    "token": "",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  }
}

Abonnement expiré

Description

Envoyé à l'expiration d'un abonnement.

Exemple de réponse

{
  "event": "subscription-expired",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
    },
    "id": "58",
    "subscr_id": "cus_EhmAfr0Y1tbHSL",
    "gateway": {
      "name": "Stripe",
      "label": "My Stripe gateway",
      "use_label": true,
      "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pay with your credit card via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label": "My Stripe gateway",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": false,
        "force_ssl": false,
        "debug": false,
        "test_mode": "on",
        "use_stripe_checkout": false,
        "churn_buster_enabled": false,
        "churn_buster_uuid": "",
        "api_keys": {
          "test": {
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live": {
            "public": "",
            "secret": ""
          }
        },
        "saved": "1",
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities": [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "create-subscriptions",
        "cancel-subscriptions",
        "update-subscriptions",
        "suspend-subscriptions",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price": "100.00",
    "period": "1",
    "period_type": "months",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial": "0",
    "trial_days": "0",
    "trial_amount": "0.00",
    "status": "cancelled",
    "created_at": "2019-03-15 20:26:28",
    "total": "100.00",
    "tax_rate": "0.000",
    "tax_amount": "0.00",
    "tax_desc": "",
    "tax_class": "standard",
    "cc_last4": "1111",
    "cc_exp_month": "10",
    "cc_exp_year": "2020",
    "token": "",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  }
}

Transaction terminée

Description

Sent when a transaction has completed in MemberPress.

Exemple de réponse

{
  "event": "transaction-completed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-03-14 13:10:21",
      "modified_gmt": "2019-03-14 19:10:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "Pricing",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "default",
      "register_price": "This is a test",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-03-14",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 46,
      "email": "zapier@test.com",
      "username": "zapier@test.com",
      "nicename": "zapiertest-com",
      "url": "",
      "message": "",
      "registered_at": "2019-03-19 16:48:20",
      "first_name": "Zapier",
      "last_name": "test",
      "display_name": "zapier@test.com",
      "address": {
        "mepr-address-one": "123 fake st",
        "mepr-address-two": "",
        "mepr-address-city": "city",
        "mepr-address-state": "UT",
        "mepr-address-zip": "81111",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "Zapier test",
        "mepr_birthday": "2019-03-19",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "46",
      "id": "59",
      "subscr_id": "cus_EjDYhKuKyRY5N2",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-03-19 16:48:25",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "10",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "167",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-03-19 16:48:28",
    "expires_at": "2019-04-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": 1,
    "commissions": []
  }
}

Transaction remboursée

Description

Envoyé lorsqu'une transaction est remboursée.

Exemple de réponse

{
  "event": "transaction-refunded",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-03-14 13:10:21",
      "modified_gmt": "2019-03-14 19:10:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "Pricing",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "default",
      "register_price": "This is a test",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-03-14",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 46,
      "email": "zapier@test.com",
      "username": "zapier@test.com",
      "nicename": "zapiertest-com",
      "url": "",
      "message": "",
      "registered_at": "2019-03-19 16:48:20",
      "first_name": "Zapier",
      "last_name": "test",
      "display_name": "zapier@test.com",
      "address": {
        "mepr-address-one": "123 fake st",
        "mepr-address-two": "",
        "mepr-address-city": "city",
        "mepr-address-state": "UT",
        "mepr-address-zip": "81111",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "Zapier test",
        "mepr_birthday": "2019-03-19",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "46",
      "id": "59",
      "subscr_id": "cus_EjDYhKuKyRY5N2",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-03-19 16:48:25",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "10",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "167",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4",
    "status": "refunded",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-03-19 16:48:28",
    "expires_at": "2019-04-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": 1,
    "commissions": []
  }
}

Échec de la transaction

Description

Envoyé en cas d'échec d'une transaction.

Exemple de réponse

{
  "event": "transaction-failed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Transaction expirée

Description

Envoyé à l'expiration d'une transaction.

Exemple de réponse

{
  "event": "transaction-expired",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "58",
      "subscr_id": "cus_EhmAfr0Y1tbHSL",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "cancelled",
      "created_at": "2019-03-15 20:26:28",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "10",
      "cc_exp_year": "2020",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "165",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EEMbnJT1LHvX6ILQovJh8vj",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-03-15 20:26:30",
    "expires_at": "2019-04-15 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": 1,
    "commissions": []
  }
}

Transaction récurrente terminée

Description

Sent when a transaction associated with a recurring subscription completes.

Exemple de réponse

{
  "event": "recurring-transaction-completed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Transaction de renouvellement terminée

Description

Sent when the 2nd+ transaction associated with a recurring subscription completes. This does not fire for the first transaction in a recurring subscription, only the 2nd or later payments will trigger this event.

Exemple de réponse

{
  "event": "renewal-transaction-completed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Échec de la transaction récurrente

Description

Sent when a recurring transaction completes. Because recurring transactions typically involve a 3rd party gateway it's good to know when a payment has failed on the gateway's end.

Exemple de réponse

{
  "event": "recurring-transaction-failed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Transaction récurrente expirée

Description

Sent when any transaction associated with a subscription expires. This event will not indicate that a recurring subscription is expiring, just that a transaction associated with it is expiring. If you're looking through a subscription expiration event, try ‘subscription-expired'.

Exemple de réponse

{
  "event": "recurring-transaction-expired",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "58",
      "subscr_id": "cus_EhmAfr0Y1tbHSL",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "cancelled",
      "created_at": "2019-03-15 20:26:28",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "10",
      "cc_exp_year": "2020",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "165",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EEMbnJT1LHvX6ILQovJh8vj",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-03-15 20:26:30",
    "expires_at": "2019-04-15 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": 1,
    "commissions": []
  }
}

Transaction non récurrente terminée

Description

Envoyé lorsqu'une transaction non récurrente a été effectuée sur MemberPress.

Exemple de réponse

{
  "event": "non-recurring-transaction-completed",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 271,
      "title": "One day membership",
      "content": "",
      "excerpt": "",
      "date": "2019-04-04 12:14:54",
      "status": "publish",
      "author": "5",
      "date_gmt": "2019-04-04 18:14:54",
      "modified": "2019-04-04 12:14:54",
      "modified_gmt": "2019-04-04 18:14:54",
      "group": "0",
      "price": "10.00",
      "period": "1",
      "period_type": "lifetime",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "One day membership",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "default",
      "register_price": "",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "delay",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-04",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": false,
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": false,
      "custom_payment_methods": [],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": "0",
    "id": "195",
    "amount": "10.00",
    "total": "10.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EPstWJT1LHvX6ILpbHj3WEZ",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-16 15:08:20",
    "expires_at": "2019-04-17 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": false,
    "commissions": []
  }
}

Transaction non récurrente expirée

Description

Envoyé à l'expiration de toute transaction non associée à un abonnement.

Exemple de réponse

{
  "event": "non-recurring-transaction-expired",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 92,
      "title": "Unlock Your Performance - Premium",
      "content": "",
      "excerpt": "",
      "date": "2018-09-24 14:24:43",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-09-24 20:24:43",
      "modified": "2019-04-05 15:35:29",
      "modified_gmt": "2019-04-05 21:35:29",
      "group": "93",
      "price": "257.00",
      "period": "1",
      "period_type": "lifetime",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Unlock Your Performance - Premium",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "default",
      "register_price": "",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "delay",
      "expire_after": "1",
      "expire_unit": "weeks",
      "expire_fixed": "2019-04-05",
      "tax_exempt": false,
      "allow_renewal": "1",
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": false,
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": false,
      "custom_payment_methods": [],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
     "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": "0",
    "id": "188",
    "amount": "257.00",
    "total": "257.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ELzhmJT1LHvX6ILPVV6mtMr",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-05 21:35:49",
    "expires_at": "2019-04-12 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": false,
    "commissions": []
  }
}

Après l'inscription du membre

Description

Sent when any After Member Signup reminder fires.

Exemple de réponse

{
  "event": "after-member-signup-reminder",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Après l'inscription Abandonné

Description

Sent when any After Member Signup Abandoned reminder fires.

Exemple de réponse

{
  "event": "after-signup-abandoned-reminder",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 92,
      "title": "Unlock Your Performance - Premium",
      "content": "",
      "excerpt": "",
      "date": "2018-09-24 14:24:43",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-09-24 20:24:43",
      "modified": "2019-04-05 15:35:29",
      "modified_gmt": "2019-04-05 21:35:29",
      "group": "93",
      "price": "257.00",
      "period": "1",
      "period_type": "lifetime",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Unlock Your Performance - Premium",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "default",
      "register_price": "",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "delay",
      "expire_after": "1",
      "expire_unit": "weeks",
      "expire_fixed": "2019-04-05",
      "tax_exempt": false,
      "allow_renewal": "1",
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": false,
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": false,
      "custom_payment_methods": [],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": "0",
    "id": "189",
    "amount": "257.00",
    "total": "257.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "mp-txn-5ca7ca6a1d8a6",
    "status": "pending",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-05 21:36:42",
    "expires_at": "2019-04-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": false,
    "subscription_payment_index": false
  }
}

Avant l'expiration de l'abonnement

Description

Sent when any Before Subscription Expires reminder fires

Exemple de réponse

{
  "event": "before-sub-expires-reminder",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Après l'expiration de l'abonnement

Description

Sent when any After Subscription Expires reminder fires.

Exemple de réponse

{
  "event": "after-sub-expires-reminder",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Avant le renouvellement de l'abonnement

Description

Sent when any Before Subscription Renews reminder fires.

Exemple de réponse

{
  "event": "before-sub-renews-reminder",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message": "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address": {
        "mepr-address-one": "120 S 200 W",
        "mepr-address-two": "",
        "mepr-address-city": "lehi",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84043",
        "mepr-address-country": "US"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": {
      "coupon": "0",
      "membership": "15",
      "member": "5",
      "id": "46",
      "subscr_id": "cus_EYoeMWfkPS0bOA",
      "gateway": "peum51-1tc",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "limit_cycles": "0",
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "prorated_trial": "0",
      "trial": "0",
      "trial_days": "0",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2019-02-19 22:24:53",
      "total": "100.00",
      "tax_rate": "0.000",
      "tax_amount": "0.00",
      "tax_desc": "",
      "tax_class": "standard",
      "cc_last4": "1111",
      "cc_exp_month": "11",
      "cc_exp_year": "2030",
      "token": "",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "id": "201",
    "amount": "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1ER69hJT1LHvX6ILF05DBg0q",
    "status": "complete",
    "txn_type": "payment",
    "gateway": "peum51-1tc",
    "prorated": "0",
    "created_at": "2019-04-19 23:30:08",
    "expires_at": "2019-05-19 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions": []
  }
}

Après l'expiration de la carte de crédit

Description

Sent when any After Credit Card Expires reminder fires.

Exemple de réponse

{
  "event": "after-cc-expires-reminder",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message": "",
      "registered_at": "2019-04-18 16:47:14",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapiertest"
    },
    "id": "69",
    "subscr_id": "cus_EuSIHGllVD3168",
    "gateway": {
      "name": "Stripe",
      "label": "My Stripe gateway",
      "use_label": true,
      "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pay with your credit card via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label": "My Stripe gateway",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": false,
        "force_ssl": false,
        "debug": false,
        "test_mode": "on",
        "use_stripe_checkout": false,
        "churn_buster_enabled": false,
        "churn_buster_uuid": "",
        "api_keys": {
          "test": {
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live": {
            "public": "",
            "secret": ""
          }
        },
        "saved": "1",
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities": [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "create-subscriptions",
        "cancel-subscriptions",
        "update-subscriptions",
        "suspend-subscriptions",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price": "100.00",
    "period": "1",
    "period_type": "months",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial": "0",
    "trial_days": "0",
    "trial_amount": "0.00",
    "status": "active",
    "created_at": "2019-04-18 16:47:19",
    "total": "100.00",
    "tax_rate": "0.000",
    "tax_amount": "0.00",
    "tax_desc": "",
    "tax_class": "standard",
    "cc_last4": "1111",
    "cc_exp_month": "10",
    "cc_exp_year": "2020",
    "token": "",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  }
}

Avant l'expiration de la carte de crédit

Description

Sent when any Before Credit Card Expires reminder fires.

Exemple de réponse

{
  "event": "before-cc-expires-reminder",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 15,
      "title": "Gold Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:22",
      "status": "publish",
      "author": "2",
      "date_gmt": "2018-08-30 16:10:22",
      "modified": "2019-04-23 08:57:21",
      "modified_gmt": "2019-04-23 14:57:21",
      "group": "17",
      "price": "100.00",
      "period": "1",
      "period_type": "months",
      "signup_button_text": "Sign Up",
      "limit_cycles": false,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": false,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Gold Membership",
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly",
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up",
      "pricing_button_position": "footer",
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": false,
      "thank_you_page_type": "message",
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": false,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-04-23",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message": "",
      "registered_at": "2019-04-18 16:47:14",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapiertest"
    },
    "id": "69",
    "subscr_id": "cus_EuSIHGllVD3168",
    "gateway": {
      "name": "Stripe",
      "label": "My Stripe gateway",
      "use_label": true,
      "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pay with your credit card via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label": "My Stripe gateway",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": false,
        "force_ssl": false,
        "debug": false,
        "test_mode": "on",
        "use_stripe_checkout": false,
        "churn_buster_enabled": false,
        "churn_buster_uuid": "",
        "api_keys": {
          "test": {
            "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live": {
            "public": "",
            "secret": ""
          }
        },
        "saved": "1",
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities": [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "create-subscriptions",
        "cancel-subscriptions",
        "update-subscriptions",
        "suspend-subscriptions",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price": "100.00",
    "period": "1",
    "period_type": "months",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial": "0",
    "trial_days": "0",
    "trial_amount": "0.00",
    "status": "active",
    "created_at": "2019-04-18 16:47:19",
    "total": "100.00",
    "tax_rate": "0.000",
    "tax_amount": "0.00",
    "tax_desc": "",
    "tax_class": "standard",
    "cc_last4": "1111",
    "cc_exp_month": "10",
    "cc_exp_year": "2020",
    "token": "",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  }
}

Début du cours

Description

Sent when a user views the course for the first time.

Exemple de réponse

{
  "event": "mpca-course-started",
  "type": "member",
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "username": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course": {
      "id": 1627,
      "title": "Test Course",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    }
  }
}

Cours terminé

Description

Sent when a user completes the course.

Exemple de réponse

{
  "event": "mpca-course-completed",
  "type": "member",
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "username": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course": {
      "id": 1627,
      "title": "Test Course",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    }
  }
}

Leçon commencée

Description

Sent when a user views the lesson for the first time.

Exemple de réponse

{
  "event": "mpca-lesson-started",
  "type": "member",
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "username": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course": {
      "id": 1627,
      "title": "Test Course",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "lesson": {
      "id": 1324,
      "title": "Test Lesson",
      "started": "2021-07-21 13:01:52",
      "completed": "2021-07-21 13:01:54"
    }
  }
}

Leçon terminée

Description

Sent when a user completed the lesson.

Exemple de réponse

{
  "event": "mpca-lesson-completed",
  "type": "member",
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "username": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course": {
      "id": 1627,
      "title": "Test Course",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "lesson": {
      "id": 1324,
      "title": "Test Lesson",
      "started": "2021-07-21 13:01:52",
      "completed": "2021-07-21 13:01:54"
    }
  }
}

Quiz tenté

Description

Sent when a user attempts the quiz.

Exemple de réponse

{
  "event": "mpca-quiz-attempt-completed",
  "type": "member",
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "username": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "attempt": {
      "id": 10,
      "attempt_no": 1,
      "points_possible": 1,
      "points_scored": 1,
      "score": "100%",
      "date_attempt": "2021-07-21 13:02:01"
    },
    "course": {
      "id": 1627,
      "title": "Test Course",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "quiz": {
      "id": 1490,
      "title": "Test Quiz"
    }
  }
}
Cet article a-t-il été utile ?

Articles connexes

Besoin d'aide ?

Vous ne trouvez pas la réponse que vous cherchez ?
Support de contact

Contenu

fille de l'ordinateur

Achetez MemberPress dès aujourd'hui !

Commencez à être payé pour le contenu que vous créez.