Menu adicional

Obtenha o MemberPress hoje mesmo! Comece a ser pago pelo conteúdo que você cria! Obtenha o MemberPress agora

Ferramentas do desenvolvedor Acionadores de eventos

Visão geral

Membro

Assinatura

Transações

Lembretes

Cursos


Membro adicionado

Descrição

Enviado quando um novo membro se registra, mas antes que seus detalhes de pagamento sejam aceitos.

Resposta de amostra

{
  "evento": "member-added" (membro adicionado),
  "type": "member" (membro),
  "data": {
    "id": 56,
    "email": "zapier@test.com",
    "username" (nome de usuário): "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message" (mensagem): "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest",
    "active_memberships": [
      {
        "id": 15,
        "title": "Gold Membership" (Associação Ouro),
        "content" (conteúdo): "",
        "excerto": "",
        "date" (data): "2018-08-30 16:10:22",
        "status": "publish" (publicar),
        "author" (autor): "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" (grupo): "17",
        "price" (preço): "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "signup_button_text": "Sign Up" (Registrar-se),
        "limit_cycles": falso,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": falso,
        "trial_days": "0",
        "trial_amount": "0.00",
        "trial_once": "1",
        "group_order": "2",
        "is_highlighted": falso,
        "plan_code": "",
        "pricing_title": "Gold Membership" (Associação Ouro),
        "pricing_show_price": true,
        "pricing_display": "custom",
        "custom_price": "$100 recurring yearly" ($100 anual recorrente),
        "pricing_heading_txt": "",
        "pricing_footer_txt": "",
        "pricing_button_txt": "Sign Up" (Registrar-se),
        "pricing_button_position": "footer" (rodapé),
        "pricing_benefits": [
          ""
        ],
        "register_price_action": "custom",
        "register_price": "$100 recurring yearly",
        "thank_you_page_enabled": falso,
        "thank_you_page_type": "message" (mensagem),
        "thank_you_message": "",
        "thank_you_page_id": "0",
        "custom_login_urls_enabled": falso,
        "custom_login_urls_default": "",
        "custom_login_urls": [],
        "expire_type": "none",
        "expire_after": "1",
        "expire_unit": "days" (dias),
        "expire_fixed": "2019-04-23",
        "tax_exempt": falso,
        "allow_renewal": falso,
        "access_url": "",
        "disable_address_fields": falso,
        "simultaneous_subscriptions": "1",
        "use_custom_template": falso,
        "custom_template": "template-sitemap.php",
        "customize_payment_methods": "1",
        "custom_payment_methods": [
          "peum51-1tc"
        ],
        "customize_profile_fields": falso,
        "custom_profile_fields": [],
        "cannot_purchase_message": "Você não tem acesso para comprar esse item".
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "1",
    "trial_txn_count": nulo,
    "sub_count": nulo,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "membro": "56",
      "cupom": "0",
      "subscription" (assinatura): "69",
      "id": "198",
      "amount" (valor): "0.00",
      "total": "0,00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EuSIHGllVD3168",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "latest_txn": {
      "membership": "15",
      "member" (membro): "56",
      "cupom": "0",
      "subscription" (assinatura): "69",
      "id": "199",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "address" (endereço): {
      "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" (perfil): {
      "mepr_company_name": "MemberPress",
      "mepr_birthday": "2019-04-18",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "56",
        "cupom": "0",
        "subscription" (assinatura): "69",
        "id": "199",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      },
      {
        "membership" (associação): "15",
        "membro": "56",
        "cupom": "0",
        "subscription" (assinatura): "69",
        "id": "198",
        "amount" (valor): "0.00",
        "total": "0,00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EuSIHGllVD3168",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      }
    ],
    "recent_subscriptions": [
      {
        "cupom": "0",
        "membership": "15",
        "membro": "56",
        "id": "69",
        "subscr_id": "cus_EuSIHGllVD3168",
        "gateway": "peum51-1tc",
        "price": "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial" (avaliação): "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": nulo
      }
    ]
  }
}

Registro de membro concluído

Descrição

Enviado quando um novo membro conclui a inscrição e seu pagamento é aceito.

Resposta de amostra

{
  "event": "member-signup-completed",
  "type": "member" (membro),
  "data": {
    "id": 46,
    "email": "zapier@test.com",
    "username" (nome de usuário): "zapier@test.com",
    "nicename": "zapiertest-com",
    "url": "",
    "message" (mensagem): "",
    "registered_at": "2019-03-19 16:48:20",
    "first_name": "Zapier",
    "last_name": "test",
    "display_name": "zapier@test.com",
    "active_memberships": [
      {
        "id": 15,
        "title": "Gold Membership" (Associação Ouro),
        "content" (conteúdo): "",
        "excerpt": "",
        "date" (data): "2018-08-30 16:10:22",
        "status": "publish" (publicar),
        "author" (autor): "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" (grupo): "17",
        "price": "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "signup_button_text": "Sign Up" (Registrar-se),
        "limit_cycles": falso,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": falso,
        "trial_days": "0",
        "trial_amount": "0.00",
        "trial_once": "1",
        "group_order": "2",
        "is_highlighted": falso,
        "plan_code": "",
        "pricing_title": "Gold Membership" (Associação Ouro),
        "pricing_show_price": true,
        "pricing_display": "custom",
        "custom_price": "Pricing" (Preços),
        "pricing_heading_txt": "",
        "pricing_footer_txt": "",
        "pricing_button_txt": "Registrar-se",
        "pricing_button_position": "footer" (rodapé),
        "pricing_benefits": [
          ""
        ],
        "register_price_action": "default",
        "register_price": "Este é um teste",
        "thank_you_page_enabled": falso,
        "thank_you_page_type": "message" (mensagem),
        "thank_you_message": "",
        "thank_you_page_id": "0",
        "custom_login_urls_enabled": falso,
        "custom_login_urls_default": "",
        "custom_login_urls": [],
        "expire_type": "none",
        "expire_after": "1",
        "expire_unit": "days" (dias),
        "expire_fixed": "2019-03-14",
        "tax_exempt": falso,
        "allow_renewal": falso,
        "access_url": "",
        "disable_address_fields": falso,
        "simultaneous_subscriptions": "1",
        "use_custom_template": falso,
        "custom_template": "template-sitemap.php",
        "customize_payment_methods": "1",
        "custom_payment_methods": [
          "peum51-1tc"
        ],
        "customize_profile_fields": falso,
        "custom_profile_fields": [],
        "cannot_purchase_message": "Você não tem acesso para comprar esse item".
      },
      {
        "id": 15,
        "title": "Gold Membership" (Associação Ouro),
        "content" (conteúdo): "",
        "excerto": "",
        "date" (data): "2018-08-30 16:10:22",
        "status": "publish" (publicar),
        "author" (autor): "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" (grupo): "17",
        "price": "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "signup_button_text": "Sign Up" (Registrar-se),
        "limit_cycles": falso,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": falso,
        "trial_days": "0",
        "trial_amount": "0.00",
        "trial_once": "1",
        "group_order": "2",
        "is_highlighted": falso,
        "plan_code": "",
        "pricing_title": "Gold Membership" (Associação Ouro),
        "pricing_show_price": true,
        "pricing_display": "custom",
        "custom_price": "Pricing" (Preços),
        "pricing_heading_txt": "",
        "pricing_footer_txt": "",
        "pricing_button_txt": "Registrar-se",
        "pricing_button_position": "footer" (rodapé),
        "pricing_benefits": [
          ""
        ],
        "register_price_action": "default",
        "register_price": "Este é um teste",
        "thank_you_page_enabled": falso,
        "thank_you_page_type": "message" (mensagem),
        "thank_you_message": "",
        "thank_you_page_id": "0",
        "custom_login_urls_enabled": falso,
        "custom_login_urls_default": "",
        "custom_login_urls": [],
        "expire_type": "none",
        "expire_after": "1",
        "expire_unit": "days" (dias),
        "expire_fixed": "2019-03-14",
        "tax_exempt": falso,
        "allow_renewal": falso,
        "access_url": "",
        "disable_address_fields": falso,
        "simultaneous_subscriptions": "1",
        "use_custom_template": falso,
        "custom_template": "template-sitemap.php",
        "customize_payment_methods": "1",
        "custom_payment_methods": [
          "peum51-1tc"
        ],
        "customize_profile_fields": falso,
        "custom_profile_fields": [],
        "cannot_purchase_message": "Você não tem acesso para comprar esse item".
      }
    ],
    "active_txn_count": "2",
    "expired_txn_count": "0",
    "trial_txn_count": nulo,
    "sub_count": nulo,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "membro": "46",
      "cupom": "0",
      "subscription" (assinatura): "59",
      "id": "166",
      "amount" (valor): "0.00",
      "total": "0,00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EjDYhKuKyRY5N2",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "latest_txn": {
      "membership": "15",
      "member" (membro): "46",
      "cupom": "0",
      "subscription" (assinatura): "59",
      "id": "167",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "address" (endereço): {
      "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" (perfil): {
      "mepr_company_name": "Zapier test",
      "mepr_birthday": "2019-03-19",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "46",
        "cupom": "0",
        "subscription" (assinatura): "59",
        "id": "167",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      },
      {
        "membership" (associação): "15",
        "membro": "46",
        "cupom": "0",
        "subscription" (assinatura): "59",
        "id": "166",
        "amount" (valor): "0.00",
        "total": "0,00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EjDYhKuKyRY5N2",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      }
    ],
    "recent_subscriptions": [
      {
        "cupom": "0",
        "membership": "15",
        "membro": "46",
        "id": "59",
        "subscr_id": "cus_EjDYhKuKyRY5N2",
        "gateway": "peum51-1tc",
        "price": "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial" (avaliação): "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": nulo
      }
    ]
  }
}

Informações da conta do membro atualizadas

Descrição

Enviado quando um membro atualiza as informações de sua conta.

Resposta de amostra

{
  "event": "member-account-updated",
  "type" (tipo): "member" (membro),
  "data": {
    "id": 49,
    "email": "coupon@testing2.com",
    "username" (nome de usuário): "coupon@testing2.com",
    "nicename": "coupontesting2-com",
    "url": "",
    "message" (mensagem): "",
    "registered_at": "2019-04-03 17:33:06",
    "first_name": "cupom",
    "last_name": "testing2",
    "display_name": "coupon testing2",
    "active_memberships": [
      {
        "id": 267,
        "title": "teste de cupom",
        "content" (conteúdo): "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish" (publicar),
        "author" (autor): "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" (grupo): "0",
        "price": "9.99",
        "period" (período): "1",
        "period_type": "months" (meses),
        "signup_button_text": "Sign Up" (Registrar-se),
        "limit_cycles": falso,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial" (avaliação): "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": falso,
        "plan_code": "",
        "pricing_title": "teste de cupom",
        "pricing_show_price": true,
        "pricing_display": "auto",
        "custom_price" (preço personalizado): "",
        "pricing_heading_txt": "",
        "pricing_footer_txt": "",
        "pricing_button_txt": "Sign Up" (Registrar-se),
        "pricing_button_position": "footer" (rodapé),
        "pricing_benefits": [
          ""
        ],
        "register_price_action": "default",
        "register_price": "",
        "thank_you_page_enabled": falso,
        "thank_you_page_type": "message" (mensagem),
        "thank_you_message": "",
        "thank_you_page_id": "0",
        "custom_login_urls_enabled": falso,
        "custom_login_urls_default": "",
        "custom_login_urls": [],
        "expire_type": "none",
        "expire_after": "1",
        "expire_unit": "days" (dias),
        "expire_fixed": "2019-04-04",
        "tax_exempt": falso,
        "allow_renewal": falso,
        "access_url": "",
        "disable_address_fields": falso,
        "simultaneous_subscriptions": false,
        "use_custom_template": false,
        "custom_template": "template-sitemap.php",
        "customize_payment_methods": falso,
        "custom_payment_methods": [],
        "customize_profile_fields": falso,
        "custom_profile_fields": [],
        "cannot_purchase_message": "Você não tem acesso para comprar esse item".
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": nulo,
    "sub_count": nulo,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "membro": "49",
      "cupom": "0",
      "subscription" (assinatura): "62",
      "id": "178",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "latest_txn": {
      "membership": "267",
      "membro": "49",
      "cupom": "0",
      "subscription" (assinatura): "62",
      "id": "178",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "address" (endereço): {
      "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" (perfil): {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "49",
        "cupom": "0",
        "subscription" (assinatura): "62",
        "id": "178",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      }
    ],
    "recent_subscriptions": [
      {
        "cupom": "0",
        "membership": "267",
        "membro": "49",
        "id": "62",
        "subscr_id": "cus_EoqfMhbLzIxdXZ",
        "gateway": "peum51-1tc",
        "price": "9.99",
        "period" (período): "1",
        "period_type": "months" (meses),
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial" (avaliação): "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "status": "active",
        "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": nulo
      }
    ]
  }
}

Membro excluído

Descrição

Enviado quando um membro é excluído do sistema.

Resposta de amostra

{
  "evento": "member-deleted",
  "type": "member" (membro),
  "data": {
    "id": nulo,
    "email": nulo,
    "nome de usuário": nulo,
    "nicename": nulo,
    "url": nulo,
    "message" (mensagem): nulo,
    "registered_at": nulo,
    "first_name": nulo,
    "last_name": nulo,
    "display_name": nulo,
    "active_memberships": [],
    "active_txn_count": "0",
    "expired_txn_count": "2",
    "trial_txn_count": nulo,
    "sub_count": nulo,
    "login_count": "0",
    "first_txn": {
      "membership": "187",
      "member": "0",
      "cupom": "0",
      "subscription" (assinatura): "0",
      "id": "80",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "latest_txn": {
      "membership": "187",
      "member" (membro): "0",
      "cupom": "0",
      "subscription" (assinatura): "0",
      "id": "81",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "address" (endereço): {
      "mepr-address-one": "",
      "mepr-address-two": "",
      "mepr-address-city": "",
      "mepr-address-state": "",
      "mepr-address-zip": "",
      "mepr-address-country": ""
    },
    "profile" (perfil): {
      "mepr_company_name": falso,
      "mepr_birthday": false,
      "mepr_testslug": false
    },
    "recent_transactions": [
      {
        "membership": "187",
        "member": "0",
        "cupom": "0",
        "subscription" (assinatura): "0",
        "id": "81",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      },
      {
        "membership" (associação): "187",
        "membro": "0",
        "cupom": "0",
        "subscription" (assinatura): "0",
        "id": "80",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      },
      {
        "membership" (associação): "29",
        "membro": "0",
        "cupom": "0",
        "subscription" (assinatura): "14",
        "id": "36",
        "amount" (valor): "100.00",
        "total": "100.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "mp-txn-5be36b50d3ba3",
        "status": "pending",
        "txn_type": "payment" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      }
    ],
    "recent_subscriptions": [
      {
        "cupom": "0",
        "membership": "29",
        "membro": "0",
        "id": "14",
        "subscr_id": "mp-sub-5be36b50ddb45",
        "gateway": "peum51-1tc",
        "price" (preço): "100.00",
        "period" (período): "1",
        "period_type": "years",
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial" (avaliação): "0",
        "trial_days": "0",
        "trial_amount": "0.00",
        "status": "pending" (pendente),
        "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": nulo
      }
    ]
  }
}

Membro conectado

Descrição

Enviado quando qualquer membro faz login.

Resposta de amostra

{
  "event" (evento): "login",
  "type" (tipo): "member" (membro),
  "data": {
    "id": 56,
    "email": "zapier@test.com",
    "username" (nome de usuário): "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message" (mensagem): "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest",
    "active_memberships": [
      {
        "id": 15,
        "title": "Gold Membership" (Associação Ouro),
        "content" (conteúdo): "",
        "excerpt": "",
        "date" (data): "2018-08-30 16:10:22",
        "status": "publish" (publicar),
        "author" (autor): "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" (grupo): "17",
        "price" (preço): "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "signup_button_text": "Sign Up" (Registrar-se),
        "limit_cycles": falso,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": falso,
        "trial_days": "0",
        "trial_amount": "0.00",
        "trial_once": "1",
        "group_order": "2",
        "is_highlighted": falso,
        "plan_code": "",
        "pricing_title": "Gold Membership" (Associação Ouro),
        "pricing_show_price": true,
        "pricing_display": "custom",
        "custom_price": "$100 recurring yearly" ($100 anual recorrente),
        "pricing_heading_txt": "",
        "pricing_footer_txt": "",
        "pricing_button_txt": "Sign Up" (Registrar-se),
        "pricing_button_position": "footer" (rodapé),
        "pricing_benefits": [
          ""
        ],
        "register_price_action": "custom",
        "register_price": "$100 recurring yearly",
        "thank_you_page_enabled": falso,
        "thank_you_page_type": "message" (mensagem),
        "thank_you_message": "",
        "thank_you_page_id": "0",
        "custom_login_urls_enabled": falso,
        "custom_login_urls_default": "",
        "custom_login_urls": [],
        "expire_type": "none",
        "expire_after": "1",
        "expire_unit": "days" (dias),
        "expire_fixed": "2019-04-23",
        "tax_exempt": falso,
        "allow_renewal": falso,
        "access_url": "",
        "disable_address_fields": falso,
        "simultaneous_subscriptions": "1",
        "use_custom_template": falso,
        "custom_template": "template-sitemap.php",
        "customize_payment_methods": "1",
        "custom_payment_methods": [
          "peum51-1tc"
        ],
        "customize_profile_fields": falso,
        "custom_profile_fields": [],
        "cannot_purchase_message": "Você não tem acesso para comprar esse item".
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "1",
    "trial_txn_count": nulo,
    "sub_count": nulo,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "membro": "56",
      "cupom": "0",
      "subscription" (assinatura): "69",
      "id": "198",
      "amount" (valor): "0.00",
      "total": "0,00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EuSIHGllVD3168",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "latest_txn": {
      "membership": "15",
      "member" (membro): "56",
      "cupom": "0",
      "subscription" (assinatura): "69",
      "id": "199",
      "amount" (valor): "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" (pagamento),
      "gateway": "peum51-1tc",
      "prorated" (rateado): "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": nulo
    },
    "address" (endereço): {
      "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" (perfil): {
      "mepr_company_name": "MemberPress",
      "mepr_birthday": "2019-04-18",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "56",
        "cupom": "0",
        "subscription" (assinatura): "69",
        "id": "199",
        "amount" (valor): "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" (pagamento),
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      },
      {
        "membership" (associação): "15",
        "membro": "56",
        "cupom": "0",
        "subscription" (assinatura): "69",
        "id": "198",
        "amount" (valor): "0.00",
        "total": "0,00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EuSIHGllVD3168",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated" (rateado): "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": nulo
      }
    ],
    "recent_subscriptions": [
      {
        "cupom": "0",
        "membership": "15",
        "membro": "56",
        "id": "69",
        "subscr_id": "cus_EuSIHGllVD3168",
        "gateway": "peum51-1tc",
        "price": "100.00",
        "period" (período): "1",
        "period_type": "months" (meses),
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial" (avaliação): "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": nulo
      }
    ]
  }
}

Assinatura criada

Descrição

Enviado quando uma assinatura é criada.

Resposta de amostra

{
  "event": "subscription-created" (assinatura criada),
  "type" (tipo): "subscription" (assinatura),
  "data": {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-08-30 16:10:22",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "17",
      "price" (preço): "100.00",
      "period" (período): "1",
      "period_type": "months" (meses),
      "signup_button_text": "Sign Up" (Registrar-se),
      "limit_cycles": falso,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": falso,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Gold Membership" (Associação Ouro),
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly" ($100 anual recorrente),
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up" (Registrar-se),
      "pricing_button_position": "footer" (rodapé),
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": falso,
      "thank_you_page_type": "message" (mensagem),
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": falso,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days" (dias),
      "expire_fixed": "2019-04-23",
      "tax_exempt": falso,
      "allow_renewal": falso,
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": "1",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": falso,
      "custom_profile_fields": [],
      "cannot_purchase_message": "Você não tem acesso para comprar esse item".
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username" (nome de usuário): "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message" (mensagem): "",
      "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": "Meu gateway do Stripe",
      "use_label": true,
      "icon" (ícone): "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pague com seu cartão de crédito via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label" (etiqueta): "Meu gateway do Stripe",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": falso,
        "force_ssl": falso,
        "debug": falso,
        "test_mode": "on",
        "use_stripe_checkout": falso,
        "churn_buster_enabled": falso,
        "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" (processar cartões de crédito),
        "process-payments",
        "process-refunds" (processar reembolsos),
        "create-subscriptions" (criar assinaturas),
        "cancel-subscriptions" (cancelar assinaturas),
        "update-subscriptions" (atualizar assinaturas),
        "suspender-assinaturas",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price" (preço): "100.00",
    "period" (período): "1",
    "period_type": "months" (meses),
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial" (avaliação): "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": nulo
  }
}

Assinatura pausada

Descrição

Enviado quando uma assinatura é pausada.

Resposta de amostra

{
  "event": "subscription-paused",
  "type": "subscription",
  "data": {
    "coupon": {
      "id": 197,
      "coupon_code": "M5TGWIKIYU",
      "date": "2019-01-10 15:38:04",
      "status": "publish",
      "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": "percent",
      "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": "publish",
      "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",
      "period": "1",
      "period_type": "years",
      "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": false,
      "plan_code": "",
      "pricing_title": "coupon test",
      "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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-02-19",
      "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": 36,
      "email": "coupon@trial.com",
      "username": "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": "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": "80.00",
    "period": "1",
    "period_type": "years",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial": "1",
    "trial_days": "14",
    "trial_amount": "0.00",
    "status": "active",
    "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
  }
}

Assinatura retomada

Descrição

Enviado quando uma assinatura é retomada.

Resposta de amostra

{
  "event": "subscription-resumed",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": false,
    "member": 0,
    "id": 0,
    "subscr_id": "mp-sub-5cbf49bc32f6b",
    "gateway": {
      "name": "Manual",
      "label": "Manual",
      "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": []
    },
    "price": 0,
    "period": 1,
    "period_type": "months",
    "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
  }
}

Assinatura interrompida

Descrição

Sent when a subscription is cancelled.

Resposta de amostra

{
  "event": "subscription-stopped",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": false,
    "member": 0,
    "id": 0,
    "subscr_id": "mp-sub-5cbf49f34eb28",
    "gateway": {
      "name": "Manual",
      "label": "Manual",
      "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": []
    },
    "price": 0,
    "period": 1,
    "period_type": "months",
    "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
  }
}

Atualização da assinatura

Descrição

DEPRECATED – Please use Subscription Upgraded to (Recurring | Non-Recurring) instead.

Resposta de amostra

{
  "event": "subscription-upgraded",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 247,
      "title": "274 yearly",
      "content": "",
      "excerpt": "",
      "date": "2019-03-04 15:47:14",
      "status": "publish",
      "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",
      "price": "274.00",
      "period": "1",
      "period_type": "years",
      "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": "1",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "274 yearly",
      "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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-03-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": 44,
      "email": "264@test.com",
      "username": "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": "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": "274.00",
    "period": "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": "active",
    "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
  }
}

Assinatura rebaixada

Descrição

DEPRECATED – Please use Subscription Downgraded to (Recurring | Non-Recurring) instead.

Resposta de amostra

{
  "event": "subscription-downgraded",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 13,
      "title": "Bronze Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:08:50",
      "status": "publish",
      "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",
      "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": "Bronze 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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-01-14",
      "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": 30,
      "email": "downgrade@email.com",
      "username": "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",
    "amount": "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
  }
}

Assinatura atualizada para não recorrente

Descrição

Sent when a user upgrades their Subscription and the new Subscription is non-recurring (one-time payment).

Resposta de amostra

{
  "event": "subscription-upgraded-to-one-time",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 16,
      "title": "Platinum Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:10:44",
      "status": "publish",
      "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",
      "price": "2600.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": "3",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "Platinum 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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2018-11-29",
      "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": 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": "26",
    "amount": "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": []
  }
}

Assinatura atualizada para recorrente

Descrição

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

Resposta de amostra

{
  "event": "subscription-upgraded-to-recurring",
  "type": "subscription",
  "data": {
    "coupon": false,
    "membership": {
      "id": 247,
      "title": "274 yearly",
      "content": "",
      "excerpt": "",
      "date": "2019-03-04 15:47:14",
      "status": "publish",
      "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",
      "price": "274.00",
      "period": "1",
      "period_type": "years",
      "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": "1",
      "is_highlighted": false,
      "plan_code": "",
      "pricing_title": "274 yearly",
      "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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-03-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": 44,
      "email": "264@test.com",
      "username": "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": "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": "274.00",
    "period": "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": "active",
    "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
  }
}

Assinatura rebaixada para não recorrente

Descrição

Sent when a user downgrades their Subscription and the new Subscription is non-recurring (one-time payment).

Resposta de amostra

{
  "event": "subscription-downgraded-to-one-time",
  "type": "transaction",
  "data": {
    "membership": {
      "id": 13,
      "title": "Bronze Membership",
      "content": "",
      "excerpt": "",
      "date": "2018-08-30 16:08:50",
      "status": "publish",
      "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",
      "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": "Bronze 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": "none",
      "expire_after": "1",
      "expire_unit": "days",
      "expire_fixed": "2019-01-14",
      "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": 30,
      "email": "downgrade@email.com",
      "username": "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"
      },
      "profile": {
        "mepr_company_name": "",
        "mepr_birthday": "",
        "mepr_testslug": ""
      }
    },
    "coupon": "0",
    "subscription": "0",
    "id": "71",
    "amount": "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": "free",
    "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
  }
}

Assinatura rebaixada para recorrente

Descrição

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

Resposta de amostra

{
  "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
  }
}

Assinatura expirada

Descrição

Enviado quando uma assinatura expira.

Resposta de amostra

{
  "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
  }
}

Transação concluída

Descrição

Sent when a transaction has completed in MemberPress.

Resposta de amostra

{
  "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": []
  }
}

Transação reembolsada

Descrição

Enviado quando qualquer transação é reembolsada.

Resposta de amostra

{
  "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": []
  }
}

Falha na transação

Descrição

Enviado quando alguma transação falha.

Resposta de amostra

{
  "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": []
  }
}

Transação expirada

Descrição

Enviado quando uma transação expira.

Resposta de amostra

{
  "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": []
  }
}

Transação recorrente concluída

Descrição

Sent when a transaction associated with a recurring subscription completes.

Resposta de amostra

{
  "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": []
  }
}

Transação de renovação concluída

Descrição

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.

Resposta de amostra

{
  "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": []
  }
}

Falha na transação recorrente

Descrição

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.

Resposta de amostra

{
  "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": []
  }
}

Transação recorrente expirada

Descrição

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'.

Resposta de amostra

{
  "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": []
  }
}

Transação não recorrente concluída

Descrição

Enviado quando uma transação não recorrente é concluída no MemberPress.

Resposta de amostra

{
  "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": []
  }
}

Transação não recorrente expirada

Descrição

Enviado quando qualquer transação não associada a uma assinatura expira.

Resposta de amostra

{
  "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": []
  }
}

Após o registro do membro

Descrição

Sent when any After Member Signup reminder fires.

Resposta de amostra

{
  "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": []
  }
}

Após o registro abandonado

Descrição

Sent when any After Member Signup Abandoned reminder fires.

Resposta de amostra

{
  "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
  }
}

Antes da expiração da assinatura

Descrição

Sent when any Before Subscription Expires reminder fires

Resposta de amostra

{
  "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": []
  }
}

Após a expiração da assinatura

Descrição

Sent when any After Subscription Expires reminder fires.

Resposta de amostra

{
  "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": []
  }
}

Antes da renovação da assinatura

Descrição

Sent when any Before Subscription Renews reminder fires.

Resposta de amostra

{
  "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": []
  }
}

Após o vencimento do cartão de crédito

Descrição

Sent when any After Credit Card Expires reminder fires.

Resposta de amostra

{
  "event": "after-cc-expires-reminder",
  "type" (tipo): "subscription" (assinatura),
  "data": {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-08-30 16:10:22",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "17",
      "price" (preço): "100.00",
      "period" (período): "1",
      "period_type": "months" (meses),
      "signup_button_text": "Sign Up" (Registrar-se),
      "limit_cycles": falso,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": falso,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Gold Membership" (Associação Ouro),
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly" ($100 anual recorrente),
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up" (Registrar-se),
      "pricing_button_position": "footer" (rodapé),
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": falso,
      "thank_you_page_type": "message" (mensagem),
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": falso,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days" (dias),
      "expire_fixed": "2019-04-23",
      "tax_exempt": falso,
      "allow_renewal": falso,
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": "1",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": falso,
      "custom_profile_fields": [],
      "cannot_purchase_message": "Você não tem acesso para comprar esse item".
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username" (nome de usuário): "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message" (mensagem): "",
      "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": "Meu gateway do Stripe",
      "use_label": true,
      "icon" (ícone): "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pague com seu cartão de crédito via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label" (etiqueta): "Meu gateway do Stripe",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": falso,
        "force_ssl": falso,
        "debug": falso,
        "test_mode": "on",
        "use_stripe_checkout": falso,
        "churn_buster_enabled": falso,
        "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" (processar cartões de crédito),
        "process-payments",
        "process-refunds" (processar reembolsos),
        "create-subscriptions" (criar assinaturas),
        "cancel-subscriptions" (cancelar assinaturas),
        "update-subscriptions" (atualizar assinaturas),
        "suspender-assinaturas",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price" (preço): "100.00",
    "period" (período): "1",
    "period_type": "months" (meses),
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial" (avaliação): "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": nulo
  }
}

Antes do vencimento do cartão de crédito

Descrição

Enviado quando qualquer lembrete Antes do vencimento do cartão de crédito é disparado.

Resposta de amostra

{
  "event": "before-cc-expires-reminder",
  "type" (tipo): "subscription" (assinatura),
  "data": {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-08-30 16:10:22",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "17",
      "price" (preço): "100.00",
      "period" (período): "1",
      "period_type": "months" (meses),
      "signup_button_text": "Sign Up" (Registrar-se),
      "limit_cycles": falso,
      "limit_cycles_num": "2",
      "limit_cycles_action": "expire",
      "trial": falso,
      "trial_days": "0",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "2",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Gold Membership" (Associação Ouro),
      "pricing_show_price": true,
      "pricing_display": "custom",
      "custom_price": "$100 recurring yearly" ($100 anual recorrente),
      "pricing_heading_txt": "",
      "pricing_footer_txt": "",
      "pricing_button_txt": "Sign Up" (Registrar-se),
      "pricing_button_position": "footer" (rodapé),
      "pricing_benefits": [
        ""
      ],
      "register_price_action": "custom",
      "register_price": "$100 recurring yearly",
      "thank_you_page_enabled": falso,
      "thank_you_page_type": "message" (mensagem),
      "thank_you_message": "",
      "thank_you_page_id": "0",
      "custom_login_urls_enabled": falso,
      "custom_login_urls_default": "",
      "custom_login_urls": [],
      "expire_type": "none",
      "expire_after": "1",
      "expire_unit": "days" (dias),
      "expire_fixed": "2019-04-23",
      "tax_exempt": falso,
      "allow_renewal": falso,
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": "1",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": falso,
      "custom_profile_fields": [],
      "cannot_purchase_message": "Você não tem acesso para comprar esse item".
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username" (nome de usuário): "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message" (mensagem): "",
      "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": "Meu gateway do Stripe",
      "use_label": true,
      "icon" (ícone): "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pague com seu cartão de crédito via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label" (etiqueta): "Meu gateway do Stripe",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": falso,
        "force_ssl": falso,
        "debug": falso,
        "test_mode": "on",
        "use_stripe_checkout": falso,
        "churn_buster_enabled": falso,
        "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" (processar cartões de crédito),
        "process-payments",
        "process-refunds" (processar reembolsos),
        "create-subscriptions" (criar assinaturas),
        "cancel-subscriptions" (cancelar assinaturas),
        "update-subscriptions" (atualizar assinaturas),
        "suspender-assinaturas",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price" (preço): "100.00",
    "period" (período): "1",
    "period_type": "months" (meses),
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial" (avaliação): "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": nulo
  }
}

Início do curso

Descrição

Enviado quando um usuário visualiza o curso pela primeira vez.

Resposta de amostra

{
  "event": "mpca-course-started",
  "type": "member" (membro),
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "nome de usuário": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course" (curso): {
      "id": 1627,
      "title": "Curso de teste",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    }
  }
}

Curso concluído

Descrição

Enviado quando um usuário conclui o curso.

Resposta de amostra

{
  "event": "mpca-course-completed",
  "type" (tipo): "member" (membro),
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "nome de usuário": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course" (curso): {
      "id": 1627,
      "title": "Curso de teste",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    }
  }
}

Lição iniciada

Descrição

Enviado quando um usuário visualiza a lição pela primeira vez.

Resposta de amostra

{
  "event": "mpca-lesson-started",
  "type": "member" (membro),
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "nome de usuário": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course" (curso): {
      "id": 1627,
      "title": "Curso de teste",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "lesson" (lição): {
      "id": 1324,
      "title": "Lição de teste",
      "started": "2021-07-21 13:01:52",
      "completed": "2021-07-21 13:01:54"
    }
  }
}

Lição concluída

Descrição

Enviado quando um usuário concluiu a lição.

Resposta de amostra

{
  "event": "mpca-lesson-completed",
  "type" (tipo): "member" (membro),
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "nome de usuário": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "course" (curso): {
      "id": 1627,
      "title": "Curso de teste",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "lesson" (lição): {
      "id": 1324,
      "title": "Lição de teste",
      "started": "2021-07-21 13:01:52",
      "completed": "2021-07-21 13:01:54"
    }
  }
}

Questionário tentado

Descrição

Enviado quando um usuário tenta fazer o teste.

Resposta de amostra

{
  "event": "mpca-quiz-attempt-completed",
  "type" (tipo): "member" (membro),
  "data": {
    "id": 1160,
    "email": "john@email.com",
    "nome de usuário": "johndoe",
    "nicename": "johndoe",
    "registered_at": "2021-07-20 18:15:18",
    "display_name": "johndoe",
    "attempt" (tentativa): {
      "id": 10,
      "attempt_no": 1,
      "points_possible": 1,
      "points_scored": 1,
      "pontuação": "100%",
      "date_attempt": "2021-07-21 13:02:01"
    },
    "course" (curso): {
      "id": 1627,
      "title": "Curso de teste",
      "started": "2021-07-21 13:01:45",
      "completed": "2021-07-21 13:02:01"
    },
    "quiz": {
      "id": 1490,
      "title": "Test Quiz"
    }
  }
}
Este artigo foi útil?

Artigos relacionados

Precisa de suporte?

Não consegue encontrar a resposta que está procurando?
Suporte de contato

Conteúdo

garota do computador

Obtenha o MemberPress hoje mesmo!

Comece a ser pago pelo conteúdo que você cria.