Menu adicional

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

Ações das ferramentas do desenvolvedor

Visão geral

Geral

Assinaturas

Membros

Regras

Associações

Cupons

Transações


Eu

Descrição

Teste a autenticação do ponto de extremidade MemberPress REST. Retorna um status de 200 em caso de sucesso e 401 em caso de falha.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdoamin.com/wp-json/mp/v1/me" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "success": true,
  "data": {
    "username" (nome de usuário): "username"
  }
}

Assinatura de webhooks

Descrição

Assinar um ou todos os webhooks do MemberPress Developer Tools. Retorna um erro 409 em caso de falha.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

url (Obrigatório) (string) - A url para a qual o webhook enviará a solicitação.

evento (Obrigatório) (string) - O Webhook será acionado e enviará dados para esse evento.

Solicitação de amostra

$ curl -X POST ""http://http://yourdomain.com/wp-json/mp/v1/webhooks/subscribe" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d url="https://example.com" \
       -d event="transaction-completed" (evento="transação concluída")

Resposta de amostra

{
  "success": true,
  "data": {
    "id": 1324
  }
}

Cancelamento de assinatura de webhooks

Descrição

Cancelar a assinatura de qualquer webhook. Retorna um erro 409 em caso de falha.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/webhooks/unsubscribe/:id" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{"success": true }

Obter assinaturas

Descrição

Obter todas as assinaturas com base nos argumentos de pesquisa fornecidos.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção. 

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) - Limita os resultados aos que correspondem a uma string.

membro (inteiro) - Limita os resultados às assinaturas de um membro específico.

filiação (inteiro) - Limita os resultados às assinaturas de uma associação específica.

cupom (inteiro) - Limita os resultados a assinaturas criadas com um cupom específico.

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "cupom": falso,
    "membership" (associação): {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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
  },
  {
    "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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": 54,
      "email": "buddy@test2.com",
      "username" (nome de usuário): "buddy@test2.com",
      "nicename": "buddytest2-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-04-03 19:42:37",
      "first_name": "",
      "last_name": "",
      "display_name": "buddy@test2.com"
    },
    "id": "67",
    "subscr_id": "cus_EoskD8WRM2bxrG",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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-03 19:42:44",
    "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
  },
  {
    "cupom": falso,
    "membership": {
      "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".
    },
    "member": {
      "id": 51,
      "email": "coupon@testing4.com",
      "username" (nome de usuário): "coupon@testing4.com",
      "nicename": "coupontesting4-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-04-03 18:01:05",
      "first_name": "cupom",
      "last_name": "testing4",
      "display_name": "coupon testing4"
    },
    "id": "64",
    "subscr_id": "cus_Eor77sLgMt4sIg",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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): "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 18:01:29",
    "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
  },
  {
    "coupon": {
      "id": 268,
      "coupon_code": "3ITYMDZOI5",
      "date": "2019-04-03 11:19:30",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-03 17:19:30",
      "modified": "2019-04-03 11:53:48",
      "modified_gmt": "2019-04-03 17:53:48",
      "valid_memberships": [
        "267"
      ],
      "should_expire": falso,
      "expires_on": "0",
      "usage_count": "2",
      "usage_amount": "0",
      "discount_type": "percent",
      "discount_amount": "100",
      "discount_mode": "first-payment" (primeiro pagamento),
      "trial_days": "0",
      "trial_amount": "0.00"
    },
    "membership" (associação): {
      "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".
    },
    "member": {
      "id": 50,
      "email": "coupon@testing3.com",
      "username" (nome de usuário): "coupon@testing3.com",
      "nicename": "coupontesting3-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-04-03 17:53:28",
      "first_name": "cupom",
      "last_name": "testing3",
      "display_name": "coupon testing3"
    },
    "id": "63",
    "subscr_id": "cus_EoqzWnn2NY7UGL",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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): "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": "30",
    "trial_amount": "0.00",
    "status": "active",
    "created_at": "2019-04-03 17:53:48",
    "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
  },
  {
    "cupom": falso,
    "membership": {
      "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".
    },
    "member": {
      "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"
    },
    "id": "62",
    "subscr_id": "cus_EoqfMhbLzIxdXZ",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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): "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
  },
  {
    "coupon": {
      "id": 268,
      "coupon_code": "3ITYMDZOI5",
      "date": "2019-04-03 11:19:30",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-03 17:19:30",
      "modified": "2019-04-03 11:53:48",
      "modified_gmt": "2019-04-03 17:53:48",
      "valid_memberships": [
        "267"
      ],
      "should_expire": falso,
      "expires_on": "0",
      "usage_count": "2",
      "usage_amount": "0",
      "discount_type" (tipo de desconto): "percent",
      "discount_amount": "100",
      "discount_mode": "first-payment" (primeiro pagamento),
      "trial_days": "0",
      "trial_amount": "0.00"
    },
    "membership" (associação): {
      "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".
    },
    "member": {
      "id": 48,
      "email": "coupon@testing.com",
      "username" (nome de usuário): "coupon@testing.com",
      "nicename": "coupontesting-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-04-03 17:21:50",
      "first_name": "cupom",
      "last_name": "testing",
      "display_name": "coupon testing" (teste de cupom)
    },
    "id": "61",
    "subscr_id": "cus_EoqTynS7epcvBN",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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): "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": "30",
    "trial_amount": "0.00",
    "status": "active",
    "created_at": "2019-04-03 17:21:55",
    "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
  },
  {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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": "Sign Up" (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-04-01",
      "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": 47,
      "email": "buddy@test.com",
      "username" (nome de usuário): "buddy@test.com",
      "nicename": "buddytest-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-04-01 21:03:59",
      "first_name": "buddy",
      "last_name": "test",
      "display_name": "buddy test"
    },
    "id": "60",
    "subscr_id": "cus_Eo9bZvhtSyBpFV",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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": "cancelled" (cancelado),
    "created_at": "2019-04-01 21:04:05",
    "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
  },
  {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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": 5,
      "email": "zapier@test2.com",
      "nome de usuário": "zapiertest2",
      "nicename": "zapiertest2",
      "url": "http://zapier.test2.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test2",
      "display_name": "zapier test2"
    },
    "id": "58",
    "subscr_id": "cus_EhmAfr0Y1tbHSL",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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": "cancelled" (cancelado),
    "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": nulo
  },
  {
    "cupom": falso,
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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": 5,
      "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier@test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "Zapier Test" (Teste do Zapier)
    },
    "id": "57",
    "subscr_id": "mp-sub-5c8aa776bb275",
    "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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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": "pending" (pendente),
    "created_at": "2019-03-14 19:11:50",
    "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
  },
  {
    "cupom": falso,
    "membership": {
      "id": 250,
      "title": "25 1",
      "content" (conteúdo): "",
      "excerpt": "",
      "date": "2019-03-13 16:20:17",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-03-13 22:20:17",
      "modified": "2019-03-13 16:20:17",
      "modified_gmt": "2019-03-13 22:20:17",
      "group" (grupo): "252",
      "price": "25.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": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "25 1",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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-03-13",
      "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".
    },
    "member": {
      "id": 45,
      "email": "twenty@five.com",
      "username" (nome de usuário): "twenty@five.com",
      "nicename": "twentyfive-com",
      "url": "",
      "message": "",
      "registered_at": "2019-03-13 22:22:26",
      "first_name": "",
      "last_name": "",
      "display_name": "twenty@five.com"
    },
    "id": "56",
    "subscr_id": "cus_Eh3a1eXo3TTboZ",
    "gateway": {
      "name": "Stripe",
      "label": "Meu gateway do Stripe",
      "use_label": true,
      "icon" (ícone): "http://yourdomain.comwp-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": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
            "secret": "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): "25.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": "cancelled" (cancelado),
    "created_at": "2019-03-13 22:22:31",
    "total": "25.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
  }
]

Obter assinatura

Descrição

Obter uma Subscrição com um determinado id.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions/59" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "cupom": falso,
  "membership" (associação): {
    "id": 15,
    "title": "Gold Membership" (Associação Gold),
    "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": "Sign Up" (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".
  },
  "member": {
    "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"
  },
  "id": "59",
  "subscr_id": "cus_EjDYhKuKyRY5N2",
  "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": "cancelled" (cancelado),
  "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
}

Criar assinatura

Descrição

Cria uma assinatura com os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

subscr_id (cadeia de caracteres, valor padrão: mp-sub-xxx...) - O número da assinatura recorrente. Para que as cobranças recorrentes sejam rastreadas, esse deve ser o número exato da assinatura gerado pelo gateway de pagamento para essa assinatura.

resposta (string) - Um local onde você pode armazenar respostas POST ou GET do gateway de pagamento para referência posterior.

porta de entrada (string, valor padrão: manual) - O ID exclusivo do método de pagamento que pode ser encontrado na guia Pagamentos da página Configurações do MemberPress.

membro (Obrigatório) (número inteiro, valor padrão: 0) - O ID de usuário do WordPress do membro.

filiação (Obrigatório) (número inteiro, valor padrão: 0) - A ID da associação para a qual esta assinatura se destina.

cupom (número inteiro, valor padrão: 0) - A ID do cupom usado nessa assinatura.

preço (decimal, valor padrão: 0,00) - O valor do subtotal da assinatura.

período (número inteiro, valor padrão: 1) - O período para os ciclos de faturamento da assinatura. Consulte a documentação de assinaturas para obter mais informações.

tipo_de_período (string, valor padrão: lifetime) - O tipo de período de cobrança. Consulte a documentação de Memberships para obter mais informações.

limit_cycles (bool, valor padrão: false) - Se deve ou não limitar os ciclos de cobrança para pagamentos recorrentes de associação. Se for definido como true, o MemberPress cancelará os pagamentos recorrentes depois que o valor de limit_cycles_num for atingido.

limit_cycles_num (integer, valor padrão: 2) - Se limit_cycles for verdadeiro, esse número será usado para determinar quantas cobranças recorrentes devem ocorrer antes que o MemberPress cancele automaticamente a assinatura. Se for definido como 1, a assinatura será cancelada imediatamente após o primeiro pagamento, mas o membro manterá o acesso até que a transação expire. 

limit_cycles_action (string, valor padrão: expire) - Se limit_cycles estiver ativado, isso determinará o acesso do Membro depois que a Assinatura tiver atingido o limite limit_cycles_num e tiver sido cancelada. Se definido como "expire", o membro perderá o acesso depois que a última transação expirar. Se for definido como "lifetime", o Membro terá acesso vitalício.

julgamento (bool, valor padrão: false) - Se há ou não um período de avaliação para essa assinatura. Os períodos de avaliação funcionam SOMENTE em pagamentos recorrentes automáticos.

trial_days (número inteiro, valor padrão: 0) - Quantos dias o período de avaliação deve durar antes do início dos ciclos regulares de cobrança.

trial_amount (decimal, default value: 0.00) – If a trial period is enabled, this specifies how much the user paid for the trial period.

status (Required) (string, default value: pending) – The Subscription's current billing status.

created_at (Required) (string, default value: null) – The date the Subscription was created. This should be in a MySQL datetime format or PHP's date(‘c') format. All dates stored in the database should be in UTC timezone.

total (decimal, default value: 0.00) – The Subscription's Total Amount (including taxes).

cc_last4 (string, default value: null) – The last four digits of the Member's Credit Card associated with this Recurring Subscription.

cc_exp_month (string, default value: null) – The Month (0-12) which the Credit Card expires.

cc_exp_year (string, default value: null) – The 4 digit Year which the Credit Card expires.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/subscriptions" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d subscr_id="cus_EuSIHGllVD3168" \
       -d price="100.00" \
       -d period=1 \
       -d period_type=months \
       -d limit_cycles_num=2 \
       -d limit_cycles_action=expire \
       -d trial_amount="0.00" \
       -d status=active \
       -d created_at="2019-04-18 16:47:19" \
       -d total="100.00" \
       -d cc_last4=1111 \
       -d cc_exp_month=10 \
       -d cc_exp_year=2020

Resposta de amostra

{
  "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-01 15:03:22",
    "modified_gmt": "2019-04-01 21:03:22",
    "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-04-01",
    "tax_exempt": false,
    "allow_renewal": false,
    "access_url": "",
    "disable_address_fields": false,
    "simultaneous_subscriptions": "1",
    "use_custom_template": false,
    "custom_template": "template-sitemap.php",
    "customize_payment_methods": "1",
    "custom_payment_methods": [
      "peum51-1tc"
    ],
    "customize_profile_fields": false,
    "custom_profile_fields": [],
    "cannot_purchase_message": "You don't have access to purchase this item."
  },
  "member": {
    "id": 56,
    "email": "zapier@test.com",
    "username": "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message": "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest"
  },
  "id": "69",
  "subscr_id": "cus_EuSIHGllVD3168",
  "gateway": {
    "name": "Stripe",
    "label": "My Stripe gateway",
    "use_label": true,
    "icon": "http://your domain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
    "use_icon": true,
    "desc": "Pay with your credit card via Stripe",
    "use_desc": true,
    "id": "peum51-1tc",
    "has_spc_form": true,
    "settings": {
      "gateway": "MeprStripeGateway",
      "id": "peum51-1tc",
      "label": "My Stripe gateway",
      "use_label": true,
      "use_icon": true,
      "use_desc": true,
      "email": "",
      "sandbox": false,
      "force_ssl": false,
      "debug": false,
      "test_mode": "on",
      "use_stripe_checkout": false,
      "churn_buster_enabled": false,
      "churn_buster_uuid": "",
      "api_keys": {
        "test": {
          "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
        },
        "live": {
          "public": "",
          "secret": ""
        }
      },
      "saved": "1",
      "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
    },
    "capabilities": [
      "process-credit-cards",
      "process-payments",
      "process-refunds",
      "create-subscriptions",
      "cancel-subscriptions",
      "update-subscriptions",
      "suspend-subscriptions",
      "resume-subscriptions",
      "send-cc-expirations"
    ]
  },
  "price": "100.00",
  "period": "1",
  "period_type": "months",
  "limit_cycles": "0",
  "limit_cycles_num": "2",
  "limit_cycles_action": "expire",
  "prorated_trial": "0",
  "trial": "0",
  "trial_days": "0",
  "trial_amount": "0.00",
  "status": "active",
  "created_at": "2019-04-18 16:47:19",
  "total": "100.00",
  "tax_rate": "0.000",
  "tax_amount": "0.00",
  "tax_desc": "",
  "tax_class": "standard",
  "cc_last4": "1111",
  "cc_exp_month": "10",
  "cc_exp_year": "2020",
  "token": "",
  "tax_compound": "0",
  "tax_shipping": "1",
  "response": null
}

Atualizar assinatura

Descrição

Update a Subscription with the given id and field values.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

subscr_id (cadeia de caracteres, valor padrão: mp-sub-xxx...) - O número da assinatura recorrente. Para que as cobranças recorrentes sejam rastreadas, esse deve ser o número exato da assinatura gerado pelo gateway de pagamento para essa assinatura.

resposta (string) - Um local onde você pode armazenar respostas POST ou GET do gateway de pagamento para referência posterior.

porta de entrada (string, valor padrão: manual) - O ID exclusivo do método de pagamento que pode ser encontrado na guia Pagamentos da página Configurações do MemberPress.

membro (Obrigatório) (número inteiro, valor padrão: 0) - O ID de usuário do WordPress do membro.

filiação (Obrigatório) (número inteiro, valor padrão: 0) - A ID da associação para a qual esta assinatura se destina.

cupom (número inteiro, valor padrão: 0) - A ID do cupom usado nessa assinatura.

preço (decimal, valor padrão: 0,00) - O valor do subtotal da assinatura.

período (número inteiro, valor padrão: 1) - O período para os ciclos de faturamento da assinatura. Consulte a documentação de assinaturas para obter mais informações.

tipo_de_período (string, valor padrão: lifetime) - O tipo de período de cobrança. Consulte a documentação de Memberships para obter mais informações.

limit_cycles (bool, valor padrão: false) - Se deve ou não limitar os ciclos de cobrança para pagamentos recorrentes de associação. Se for definido como true, o MemberPress cancelará os pagamentos recorrentes depois que o valor de limit_cycles_num for atingido.

limit_cycles_num (integer, valor padrão: 2) - Se limit_cycles for verdadeiro, esse número será usado para determinar quantas cobranças recorrentes devem ocorrer antes que o MemberPress cancele automaticamente a assinatura. Se for definido como 1, a assinatura será cancelada imediatamente após o primeiro pagamento, mas o membro manterá o acesso até que a transação expire. 

limit_cycles_action (string, valor padrão: expire) - Se limit_cycles estiver ativado, isso determinará o acesso do Membro depois que a Assinatura tiver atingido o limite limit_cycles_num e tiver sido cancelada. Se definido como "expire", o membro perderá o acesso depois que a última transação expirar. Se for definido como "lifetime", o Membro terá acesso vitalício.

julgamento (bool, valor padrão: false) - Se há ou não um período de avaliação para essa assinatura. Os períodos de avaliação funcionam SOMENTE em pagamentos recorrentes automáticos.

trial_days (número inteiro, valor padrão: 0) - Quantos dias o período de avaliação deve durar antes do início dos ciclos regulares de cobrança.

trial_amount (decimal, default value: 0.00) – If a trial period is enabled, this specifies how much the user paid for the trial period.

status (Required) (string, default value: pending) – The Subscription's current billing status.

created_at (Required) (string, default value: null) – The date the Subscription was created. This should be in a MySQL datetime format or PHP's date(‘c') format. All dates stored in the database should be in UTC timezone.

total (decimal, default value: 0.00) – The Subscription's Total Amount (including taxes).

cc_last4 (string, default value: null) – The last four digits of the Member's Credit Card associated with this Recurring Subscription.

cc_exp_month (string, default value: null) – The Month (0-12) which the Credit Card expires.

cc_exp_year (string, default value: null) – The 4 digit Year which the Credit Card expires.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/subscriptions/69" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d subscr_id="cus_EuSIHGllVD3168" \
       -d price="100.00" \
       -d period=1 \
       -d period_type=months \
       -d limit_cycles_num=2 \
       -d limit_cycles_action=expire \
       -d trial_amount="0.00" \
       -d status=active \
       -d created_at="2019-04-18 16:47:19" \
       -d total="100.00" \
       -d cc_last4=1111 \
       -d cc_exp_month=10 \
       -d cc_exp_year=2020

Resposta de amostra

{
  "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-01 15:03:22",
    "modified_gmt": "2019-04-01 21:03:22",
    "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-04-01",
    "tax_exempt": false,
    "allow_renewal": false,
    "access_url": "",
    "disable_address_fields": false,
    "simultaneous_subscriptions": "1",
    "use_custom_template": false,
    "custom_template": "template-sitemap.php",
    "customize_payment_methods": "1",
    "custom_payment_methods": [
      "peum51-1tc"
    ],
    "customize_profile_fields": false,
    "custom_profile_fields": [],
    "cannot_purchase_message": "You don't have access to purchase this item."
  },
  "member": {
    "id": 56,
    "email": "zapier@test.com",
    "username": "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message": "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest"
  },
  "id": "69",
  "subscr_id": "cus_EuSIHGllVD3168",
  "gateway": {
    "name": "Stripe",
    "label": "My Stripe gateway",
    "use_label": true,
    "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
    "use_icon": true,
    "desc": "Pay with your credit card via Stripe",
    "use_desc": true,
    "id": "peum51-1tc",
    "has_spc_form": true,
    "settings": {
      "gateway": "MeprStripeGateway",
      "id": "peum51-1tc",
      "label": "My Stripe gateway",
      "use_label": true,
      "use_icon": true,
      "use_desc": true,
      "email": "",
      "sandbox": false,
      "force_ssl": false,
      "debug": false,
      "test_mode": "on",
      "use_stripe_checkout": false,
      "churn_buster_enabled": false,
      "churn_buster_uuid": "",
      "api_keys": {
        "test": {
          "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
          "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
        },
        "live": {
          "public": "",
          "secret": ""
        }
      },
      "saved": "1",
      "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
      "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
    },
    "capabilities": [
      "process-credit-cards",
      "process-payments",
      "process-refunds",
      "create-subscriptions",
      "cancel-subscriptions",
      "update-subscriptions",
      "suspend-subscriptions",
      "resume-subscriptions",
      "send-cc-expirations"
    ]
  },
  "price": "100.00",
  "period": "1",
  "period_type": "months",
  "limit_cycles": "0",
  "limit_cycles_num": "2",
  "limit_cycles_action": "expire",
  "prorated_trial": "0",
  "trial": "0",
  "trial_days": "0",
  "trial_amount": "0.00",
  "status": "active",
  "created_at": "2019-04-18 16:47:19",
  "total": "100.00",
  "tax_rate": "0.000",
  "tax_amount": "0.00",
  "tax_desc": "",
  "tax_class": "standard",
  "cc_last4": "1111",
  "cc_exp_month": "10",
  "cc_exp_year": "2020",
  "token": "",
  "tax_compound": "0",
  "tax_shipping": "1",
  "response": null
}

Excluir assinatura

Descrição

Delete a Subscription with the given id.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/subscriptions/69" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "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-01 15:03:22",
    "modified_gmt": "2019-04-01 21:03:22",
    "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-04-01",
    "tax_exempt": false,
    "allow_renewal": false,
    "access_url": "",
    "disable_address_fields": false,
    "simultaneous_subscriptions": "1",
    "use_custom_template": false,
    "custom_template": "template-sitemap.php",
    "customize_payment_methods": "1",
    "custom_payment_methods": [
      "peum51-1tc"
    ],
    "customize_profile_fields": false,
    "custom_profile_fields": [],
    "cannot_purchase_message": "You don't have access to purchase this item."
  },
  "member": {
    "id": 56,
    "email": "zapier@test.com",
    "username": "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message": "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest"
  },
  "id": "69",
  "subscr_id": "cus_EuSIHGllVD3168",
  "gateway": {
    "name": "Stripe",
    "label": "My Stripe gateway",
    "use_label": true,
    "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
    "use_icon": true,
    "desc": "Pay with your credit card via Stripe",
    "use_desc": true,
    "id": "peum51-1tc",
    "has_spc_form": true,
    "settings": {
      "gateway": "MeprStripeGateway",
      "id": "peum51-1tc",
      "label": "My Stripe gateway",
      "use_label": true,
      "use_icon": true,
      "use_desc": true,
      "email": "",
      "sandbox": false,
      "force_ssl": false,
      "debug": false,
      "test_mode": "on",
      "use_stripe_checkout": false,
      "churn_buster_enabled": false,
      "churn_buster_uuid": "",
      "api_keys": {
        "test": {
          "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
          "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
        },
        "live": {
          "public": "",
          "secret": ""
        }
      },
      "saved": "1",
      "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
      "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
    },
    "capabilities": [
      "process-credit-cards",
      "process-payments",
      "process-refunds",
      "create-subscriptions",
      "cancel-subscriptions",
      "update-subscriptions",
      "suspend-subscriptions",
      "resume-subscriptions",
      "send-cc-expirations"
    ]
  },
  "price": "100.00",
  "period": "1",
  "period_type": "months",
  "limit_cycles": "0",
  "limit_cycles_num": "2",
  "limit_cycles_action": "expire",
  "prorated_trial": "0",
  "trial": "0",
  "trial_days": "0",
  "trial_amount": "0.00",
  "status": "active",
  "created_at": "2019-04-18 16:47:19",
  "total": "100.00",
  "tax_rate": "0.000",
  "tax_amount": "0.00",
  "tax_desc": "",
  "tax_class": "standard",
  "cc_last4": "1111",
  "cc_exp_month": "10",
  "cc_exp_year": "2020",
  "token": "",
  "tax_compound": "0",
  "tax_shipping": "1",
  "response": null
}

Cancelar assinatura

Descrição

Cancel a given subscription.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/subscriptions/59/cancel" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "message": "The subscription was successfully cancelled.",
  "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-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"
    },
    "id": "59",
    "subscr_id": "cus_EjDYhKuKyRY5N2",
    "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-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
  }
}

Expirar a assinatura

Descrição

Expire all unexpired transactions associated with the Subscription.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X POST "http://yourdomain/wp-json/mp/v1/subscriptions/69/expire" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "message": "This subscription is now expired.",
  "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "tax_exempt": false,
      "allow_renewal": false,
      "access_url": "",
      "disable_address_fields": false,
      "simultaneous_subscriptions": "1",
      "use_custom_template": false,
      "custom_template": "template-sitemap.php",
      "customize_payment_methods": "1",
      "custom_payment_methods": [
        "peum51-1tc"
      ],
      "customize_profile_fields": false,
      "custom_profile_fields": [],
      "cannot_purchase_message": "You don't have access to purchase this item."
    },
    "member": {
      "id": 56,
      "email": "zapier@test.com",
      "username": "zapiertest",
      "nicename": "zapiertest",
      "url": "",
      "message": "",
      "registered_at": "2019-04-18 16:47:14",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapiertest"
    },
    "id": "69",
    "subscr_id": "cus_EuSIHGllVD3168",
    "gateway": {
      "name": "Stripe",
      "label": "My Stripe gateway",
      "use_label": true,
      "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon": true,
      "desc": "Pay with your credit card via Stripe",
      "use_desc": true,
      "id": "peum51-1tc",
      "has_spc_form": true,
      "settings": {
        "gateway": "MeprStripeGateway",
        "id": "peum51-1tc",
        "label": "My Stripe gateway",
        "use_label": true,
        "use_icon": true,
        "use_desc": true,
        "email": "",
        "sandbox": false,
        "force_ssl": false,
        "debug": false,
        "test_mode": "on",
        "use_stripe_checkout": false,
        "churn_buster_enabled": false,
        "churn_buster_uuid": "",
        "api_keys": {
          "test": {
            "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
          },
          "live": {
            "public": "",
            "secret": ""
          }
        },
        "saved": "1",
        "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99"
      },
      "capabilities": [
        "process-credit-cards",
        "process-payments",
        "process-refunds",
        "create-subscriptions",
        "cancel-subscriptions",
        "update-subscriptions",
        "suspend-subscriptions",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "price": "100.00",
    "period": "1",
    "period_type": "months",
    "limit_cycles": "0",
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "prorated_trial": "0",
    "trial": "0",
    "trial_days": "0",
    "trial_amount": "0.00",
    "status": "active",
    "created_at": "2019-04-18 16:47:19",
    "total": "100.00",
    "tax_rate": "0.000",
    "tax_amount": "0.00",
    "tax_desc": "",
    "tax_class": "standard",
    "cc_last4": "1111",
    "cc_exp_month": "10",
    "cc_exp_year": "2020",
    "token": "",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  }
}

Obter membros

Descrição

Get all Members based on the search arguments provided.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção. 

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) – Limit results to those matching a string. Can only search by email or username.

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/members?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "id": 56,
    "email": "zapier@test.com",
    "username": "zapiertest",
    "nicename": "zapiertest",
    "url": "",
    "message": "",
    "registered_at": "2019-04-18 16:47:14",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapiertest",
    "active_memberships": [
      {
        "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-01 15:03:22",
        "modified_gmt": "2019-04-01 21:03:22",
        "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-04-01",
        "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."
      },
      {
        "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-01 15:03:22",
        "modified_gmt": "2019-04-01 21:03:22",
        "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-04-01",
        "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."
      }
    ],
    "active_txn_count": "2",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "member": "56",
      "coupon": "0",
      "subscription": "69",
      "id": "198",
      "amount": "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": "0",
      "created_at": "2019-04-18 16:47:14",
      "expires_at": "2019-04-18 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "15",
      "member": "56",
      "coupon": "0",
      "subscription": "69",
      "id": "199",
      "amount": "100.00",
      "total": "100.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-18 16:47:21",
      "expires_at": "2019-05-18 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "MemberPress",
      "mepr_birthday": "2019-04-18",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "56",
        "coupon": "0",
        "subscription": "69",
        "id": "199",
        "amount": "100.00",
        "total": "100.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-18 16:47:21",
        "expires_at": "2019-05-18 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      },
      {
        "membership": "15",
        "member": "56",
        "coupon": "0",
        "subscription": "69",
        "id": "198",
        "amount": "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": "0",
        "created_at": "2019-04-18 16:47:14",
        "expires_at": "2019-04-18 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "0",
        "membership": "15",
        "member": "56",
        "id": "69",
        "subscr_id": "cus_EuSIHGllVD3168",
        "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-04-18 16:47:19",
        "total": "100.00",
        "tax_rate": "0.000",
        "tax_amount": "0.00",
        "tax_desc": "",
        "tax_class": "standard",
        "cc_last4": "1111",
        "cc_exp_month": "10",
        "cc_exp_year": "2020",
        "token": "",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ]
  },
  {
    "id": 55,
    "email": "one@day.com",
    "username": "one@day.com",
    "nicename": "oneday-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-04 18:15:38",
    "first_name": "",
    "last_name": "",
    "display_name": "one@day.com",
    "active_memberships": [],
    "active_txn_count": "0",
    "expired_txn_count": "1",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "271",
      "member": "55",
      "coupon": "0",
      "subscription": "0",
      "id": "185",
      "amount": "10.00",
      "total": "10.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELa6BJT1LHvX6ILT6jbOGYE",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-04 18:15:38",
      "expires_at": "2019-04-05 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "271",
      "member": "55",
      "coupon": "0",
      "subscription": "0",
      "id": "185",
      "amount": "10.00",
      "total": "10.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELa6BJT1LHvX6ILT6jbOGYE",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-04 18:15:38",
      "expires_at": "2019-04-05 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "",
      "mepr-address-two": "",
      "mepr-address-city": "",
      "mepr-address-state": "",
      "mepr-address-zip": "",
      "mepr-address-country": ""
    },
    "profile": {
      "mepr_company_name": "",
      "mepr_birthday": "",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "271",
        "member": "55",
        "coupon": "0",
        "subscription": "0",
        "id": "185",
        "amount": "10.00",
        "total": "10.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1ELa6BJT1LHvX6ILT6jbOGYE",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-04 18:15:38",
        "expires_at": "2019-04-05 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": []
  },
  {
    "id": 54,
    "email": "buddy@test2.com",
    "username": "buddy@test2.com",
    "nicename": "buddytest2-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 19:42:37",
    "first_name": "",
    "last_name": "",
    "display_name": "buddy@test2.com",
    "active_memberships": [
      {
        "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-01 15:03:22",
        "modified_gmt": "2019-04-01 21:03:22",
        "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-04-01",
        "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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "1",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "member": "54",
      "coupon": "0",
      "subscription": "67",
      "id": "183",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EoskD8WRM2bxrG",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 19:42:37",
      "expires_at": "2019-04-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "15",
      "member": "54",
      "coupon": "0",
      "subscription": "67",
      "id": "184",
      "amount": "100.00",
      "total": "100.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELEysJT1LHvX6IL3pDJI5tU",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 19:42:45",
      "expires_at": "2019-05-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "",
      "mepr-address-two": "",
      "mepr-address-city": "",
      "mepr-address-state": "",
      "mepr-address-zip": "",
      "mepr-address-country": ""
    },
    "profile": {
      "mepr_company_name": "",
      "mepr_birthday": "",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "54",
        "coupon": "0",
        "subscription": "67",
        "id": "184",
        "amount": "100.00",
        "total": "100.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1ELEysJT1LHvX6IL3pDJI5tU",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 19:42:45",
        "expires_at": "2019-05-03 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      },
      {
        "membership": "15",
        "member": "54",
        "coupon": "0",
        "subscription": "67",
        "id": "183",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EoskD8WRM2bxrG",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 19:42:37",
        "expires_at": "2019-04-03 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "0",
        "membership": "15",
        "member": "54",
        "id": "67",
        "subscr_id": "cus_EoskD8WRM2bxrG",
        "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-04-03 19:42:44",
        "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": 53,
    "email": "coupon@testing7.com",
    "username": "coupon@testing7.com",
    "nicename": "coupontesting7-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 18:16:02",
    "first_name": "coupon",
    "last_name": "testing7",
    "display_name": "coupon testing7",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "53",
      "coupon": "269",
      "subscription": "0",
      "id": "182",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "mp-txn-5ca4f8639d842",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "free",
      "prorated": "0",
      "created_at": "2019-04-03 18:16:02",
      "expires_at": "0000-00-00 00:00:00",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "53",
      "coupon": "269",
      "subscription": "0",
      "id": "182",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "mp-txn-5ca4f8639d842",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "free",
      "prorated": "0",
      "created_at": "2019-04-03 18:16:02",
      "expires_at": "0000-00-00 00:00:00",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "53",
        "coupon": "269",
        "subscription": "0",
        "id": "182",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "mp-txn-5ca4f8639d842",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "free",
        "prorated": "0",
        "created_at": "2019-04-03 18:16:02",
        "expires_at": "0000-00-00 00:00:00",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": []
  },
  {
    "id": 52,
    "email": "coupon@testing6.com",
    "username": "coupon@testing6.com",
    "nicename": "coupontesting6-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 18:04:07",
    "first_name": "coupon",
    "last_name": "testing5",
    "display_name": "coupon testing5",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "52",
      "coupon": "269",
      "subscription": "0",
      "id": "181",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "mp-txn-5ca4f59b09b62",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "free",
      "prorated": "0",
      "created_at": "2019-04-03 18:04:07",
      "expires_at": "0000-00-00 00:00:00",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "52",
      "coupon": "269",
      "subscription": "0",
      "id": "181",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "mp-txn-5ca4f59b09b62",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "free",
      "prorated": "0",
      "created_at": "2019-04-03 18:04:07",
      "expires_at": "0000-00-00 00:00:00",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "52",
        "coupon": "269",
        "subscription": "0",
        "id": "181",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "mp-txn-5ca4f59b09b62",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "free",
        "prorated": "0",
        "created_at": "2019-04-03 18:04:07",
        "expires_at": "0000-00-00 00:00:00",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": []
  },
  {
    "id": 51,
    "email": "coupon@testing4.com",
    "username": "coupon@testing4.com",
    "nicename": "coupontesting4-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 18:01:05",
    "first_name": "coupon",
    "last_name": "testing4",
    "display_name": "coupon testing4",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "51",
      "coupon": "0",
      "subscription": "64",
      "id": "180",
      "amount": "29.94",
      "total": "29.94",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELDOqJT1LHvX6ILkMCIJteB",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 18:01:06",
      "expires_at": "2019-07-02 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "51",
      "coupon": "0",
      "subscription": "64",
      "id": "180",
      "amount": "29.94",
      "total": "29.94",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELDOqJT1LHvX6ILkMCIJteB",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 18:01:06",
      "expires_at": "2019-07-02 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "51",
        "coupon": "0",
        "subscription": "64",
        "id": "180",
        "amount": "29.94",
        "total": "29.94",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1ELDOqJT1LHvX6ILkMCIJteB",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 18:01:06",
        "expires_at": "2019-07-02 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "0",
        "membership": "267",
        "member": "51",
        "id": "64",
        "subscr_id": "cus_Eor77sLgMt4sIg",
        "gateway": "peum51-1tc",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "status": "active",
        "created_at": "2019-04-03 18:01:29",
        "total": "9.99",
        "tax_rate": "0.000",
        "tax_amount": "0.00",
        "tax_desc": "",
        "tax_class": "standard",
        "cc_last4": "1111",
        "cc_exp_month": "10",
        "cc_exp_year": "2020",
        "token": "",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ]
  },
  {
    "id": 50,
    "email": "coupon@testing3.com",
    "username": "coupon@testing3.com",
    "nicename": "coupontesting3-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 17:53:28",
    "first_name": "coupon",
    "last_name": "testing3",
    "display_name": "coupon testing3",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "50",
      "coupon": "268",
      "subscription": "63",
      "id": "179",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EoqzWnn2NY7UGL",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:53:28",
      "expires_at": "2019-05-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "50",
      "coupon": "268",
      "subscription": "63",
      "id": "179",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EoqzWnn2NY7UGL",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:53:28",
      "expires_at": "2019-05-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "50",
        "coupon": "268",
        "subscription": "63",
        "id": "179",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EoqzWnn2NY7UGL",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 17:53:28",
        "expires_at": "2019-05-03 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "268",
        "membership": "267",
        "member": "50",
        "id": "63",
        "subscr_id": "cus_EoqzWnn2NY7UGL",
        "gateway": "peum51-1tc",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial": "1",
        "trial_days": "30",
        "trial_amount": "0.00",
        "status": "active",
        "created_at": "2019-04-03 17:53:48",
        "total": "9.99",
        "tax_rate": "0.000",
        "tax_amount": "0.00",
        "tax_desc": "",
        "tax_class": "standard",
        "cc_last4": "1111",
        "cc_exp_month": "10",
        "cc_exp_year": "2020",
        "token": "",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ]
  },
  {
    "id": 49,
    "email": "coupon@testing2.com",
    "username": "coupon@testing2.com",
    "nicename": "coupontesting2-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 17:33:06",
    "first_name": "coupon",
    "last_name": "testing2",
    "display_name": "coupon testing2",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "49",
      "coupon": "0",
      "subscription": "62",
      "id": "178",
      "amount": "29.94",
      "total": "29.94",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELCxmJT1LHvX6ILZSGECdgo",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:33:07",
      "expires_at": "2019-07-02 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "49",
      "coupon": "0",
      "subscription": "62",
      "id": "178",
      "amount": "29.94",
      "total": "29.94",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1ELCxmJT1LHvX6ILZSGECdgo",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:33:07",
      "expires_at": "2019-07-02 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "49",
        "coupon": "0",
        "subscription": "62",
        "id": "178",
        "amount": "29.94",
        "total": "29.94",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1ELCxmJT1LHvX6ILZSGECdgo",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 17:33:07",
        "expires_at": "2019-07-02 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "0",
        "membership": "267",
        "member": "49",
        "id": "62",
        "subscr_id": "cus_EoqfMhbLzIxdXZ",
        "gateway": "peum51-1tc",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial": "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": null
      }
    ]
  },
  {
    "id": 48,
    "email": "coupon@testing.com",
    "username": "coupon@testing.com",
    "nicename": "coupontesting-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-03 17:21:50",
    "first_name": "coupon",
    "last_name": "testing",
    "display_name": "coupon testing",
    "active_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "0",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "267",
      "member": "48",
      "coupon": "268",
      "subscription": "61",
      "id": "177",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EoqTynS7epcvBN",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:21:50",
      "expires_at": "2019-05-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "267",
      "member": "48",
      "coupon": "268",
      "subscription": "61",
      "id": "177",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_EoqTynS7epcvBN",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-03 17:21:50",
      "expires_at": "2019-05-03 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-03",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "267",
        "member": "48",
        "coupon": "268",
        "subscription": "61",
        "id": "177",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_EoqTynS7epcvBN",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-03 17:21:50",
        "expires_at": "2019-05-03 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "268",
        "membership": "267",
        "member": "48",
        "id": "61",
        "subscr_id": "cus_EoqTynS7epcvBN",
        "gateway": "peum51-1tc",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "limit_cycles": "0",
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "prorated_trial": "0",
        "trial": "1",
        "trial_days": "30",
        "trial_amount": "0.00",
        "status": "active",
        "created_at": "2019-04-03 17:21:55",
        "total": "9.99",
        "tax_rate": "0.000",
        "tax_amount": "0.00",
        "tax_desc": "",
        "tax_class": "standard",
        "cc_last4": "1111",
        "cc_exp_month": "10",
        "cc_exp_year": "2020",
        "token": "",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ]
  },
  {
    "id": 47,
    "email": "buddy@test.com",
    "username": "buddy@test.com",
    "nicename": "buddytest-com",
    "url": "",
    "message": "",
    "registered_at": "2019-04-01 21:03:59",
    "first_name": "buddy",
    "last_name": "test",
    "display_name": "buddy test",
    "active_memberships": [
      {
        "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-01 15:03:22",
        "modified_gmt": "2019-04-01 21:03:22",
        "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-04-01",
        "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."
      }
    ],
    "active_txn_count": "1",
    "expired_txn_count": "1",
    "trial_txn_count": null,
    "sub_count": null,
    "login_count": "1",
    "first_txn": {
      "membership": "15",
      "member": "47",
      "coupon": "0",
      "subscription": "60",
      "id": "173",
      "amount": "0.00",
      "total": "0.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "cus_Eo9bZvhtSyBpFV",
      "status": "confirmed",
      "txn_type": "subscription_confirmation",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-01 21:04:00",
      "expires_at": "2019-04-01 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "latest_txn": {
      "membership": "15",
      "member": "47",
      "coupon": "0",
      "subscription": "60",
      "id": "174",
      "amount": "100.00",
      "total": "100.00",
      "tax_amount": "0.00",
      "tax_rate": "0.000",
      "tax_desc": "",
      "tax_class": "standard",
      "trans_num": "ch_1EKXIWJT1LHvX6ILtZzlyL2d",
      "status": "complete",
      "txn_type": "payment",
      "gateway": "peum51-1tc",
      "prorated": "0",
      "created_at": "2019-04-01 21:04:08",
      "expires_at": "2019-05-01 23:59:59",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    },
    "address": {
      "mepr-address-one": "123 fake st",
      "mepr-address-two": "",
      "mepr-address-city": "city",
      "mepr-address-state": "UT",
      "mepr-address-zip": "81111",
      "mepr-address-country": "US"
    },
    "profile": {
      "mepr_company_name": "blah",
      "mepr_birthday": "2019-04-11",
      "mepr_testslug": ""
    },
    "recent_transactions": [
      {
        "membership": "15",
        "member": "47",
        "coupon": "0",
        "subscription": "60",
        "id": "174",
        "amount": "100.00",
        "total": "100.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "ch_1EKXIWJT1LHvX6ILtZzlyL2d",
        "status": "complete",
        "txn_type": "payment",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-01 21:04:08",
        "expires_at": "2019-05-01 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      },
      {
        "membership": "15",
        "member": "47",
        "coupon": "0",
        "subscription": "60",
        "id": "173",
        "amount": "0.00",
        "total": "0.00",
        "tax_amount": "0.00",
        "tax_rate": "0.000",
        "tax_desc": "",
        "tax_class": "standard",
        "trans_num": "cus_Eo9bZvhtSyBpFV",
        "status": "confirmed",
        "txn_type": "subscription_confirmation",
        "gateway": "peum51-1tc",
        "prorated": "0",
        "created_at": "2019-04-01 21:04:00",
        "expires_at": "2019-04-01 23:59:59",
        "corporate_account_id": "0",
        "parent_transaction_id": "0",
        "tax_compound": "0",
        "tax_shipping": "1",
        "response": null
      }
    ],
    "recent_subscriptions": [
      {
        "coupon": "0",
        "membership": "15",
        "member": "47",
        "id": "60",
        "subscr_id": "cus_Eo9bZvhtSyBpFV",
        "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-04-01 21:04:05",
        "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
      }
    ]
  }
]

Obter membro

Descrição

Get one Member with a given id.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/members/46" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "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",
  "active_memberships": [],
  "active_txn_count": "0",
  "expired_txn_count": "1",
  "trial_txn_count": null,
  "sub_count": null,
  "login_count": "1",
  "first_txn": {
    "membership": "15",
    "member": "46",
    "coupon": "0",
    "subscription": "59",
    "id": "166",
    "amount": "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": "0",
    "created_at": "2019-03-19 16:48:21",
    "expires_at": "2019-03-19 16:48:21",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  },
  "latest_txn": {
    "membership": "15",
    "member": "46",
    "coupon": "0",
    "subscription": "59",
    "id": "166",
    "amount": "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": "0",
    "created_at": "2019-03-19 16:48:21",
    "expires_at": "2019-03-19 16:48:21",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  },
  "address": {
    "mepr-address-one": "123 fake st",
    "mepr-address-two": "",
    "mepr-address-city": "city",
    "mepr-address-state": "UT",
    "mepr-address-zip": "81111",
    "mepr-address-country": "US"
  },
  "profile": {
    "mepr_company_name": "Zapier test",
    "mepr_birthday": "2019-03-19",
    "mepr_testslug": ""
  },
  "recent_transactions": [
    {
      "membership": "15",
      "member": "46",
      "coupon": "0",
      "subscription": "59",
      "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
    },
    {
      "membership": "15",
      "member": "46",
      "coupon": "0",
      "subscription": "59",
      "id": "166",
      "amount": "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": "0",
      "created_at": "2019-03-19 16:48:21",
      "expires_at": "2019-03-19 16:48:21",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    }
  ],
  "recent_subscriptions": [
    {
      "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": "cancelled",
      "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
    }
  ]
}

Criar membro

Descrição

Create a Member with the given field values.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

primeiro_nome (string) – The User's First Name. 

sobrenome (string) – The User's Last Name.

e-mail (Required) (string) – The User's Email Address.

nome de usuário (Required) (string) -The username for this User. If you're using email addresses as the Username, then both username and email should be set to the same string.

senha (string) – Works only when creating a new Member. A plaintext password which will be hashed and stored with this user. If a password is not provided, then a random password will be automatically generated for the member. If this field is present when updating a member, they will receive an email to set their password.

transação (array, default value: []) – Works only when creating a new Member. This is an array conforming to the documentation for the “Create Transaction” API route (except the “member” parameter will be ignored in favor of the id of the newly created member). This will create an initial transaction for the member to add them to a specific membership.

send_welcome_email (bool, default value: false) – Works only when creating a new Member and if a transaction has been specified. When set to true this will trigger a welcome email to send to the new member. If the user has already received a welcome email, and the membership this transaction is for does not have its own welcome email configured, then no email will be sent.

send_password_email (bool, default value: false) – Works only when creating a new Member. When set to true this will trigger MemberPress set password email (template file for this email is /app/views/emails/user_set_password.php) to be sent to the new member.

endereço1 (string, default value: empty) – The user's address line 1.

endereço2 (string, valor padrão: vazio) - A linha de endereço do usuário 2.

cidade (string, valor padrão: vazio) - A cidade do usuário.

estado (string, valor padrão: vazio) - O estado do usuário.

zíper (string, valor padrão: vazio) - O CEP do usuário.

país (string, valor padrão: vazio) - O país do usuário.

usermeta*** mais informações

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/members" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d email="zapier@test.com" \
       -d nome de usuário="zapier@test.com" \
       -d first_name=Zapier \
       -d last_name=test

Resposta de amostra

{
  "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",
  "active_memberships": [],
  "active_txn_count": "0",
  "expired_txn_count": "1",
  "trial_txn_count": null,
  "sub_count": null,
  "login_count": "1",
  "first_txn": {
    "membership": "15",
    "member": "46",
    "coupon": "0",
    "subscription": "59",
    "id": "166",
    "amount": "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": "0",
    "created_at": "2019-03-19 16:48:21",
    "expires_at": "2019-03-19 16:48:21",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  },
  "latest_txn": {
    "membership": "15",
    "member": "46",
    "coupon": "0",
    "subscription": "59",
    "id": "166",
    "amount": "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": "0",
    "created_at": "2019-03-19 16:48:21",
    "expires_at": "2019-03-19 16:48:21",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": null
  },
  "address": {
    "mepr-address-one": "123 fake st",
    "mepr-address-two": "",
    "mepr-address-city": "city",
    "mepr-address-state": "UT",
    "mepr-address-zip": "81111",
    "mepr-address-country": "US"
  },
  "profile": {
    "mepr_company_name": "Zapier test",
    "mepr_birthday": "2019-03-19",
    "mepr_testslug": ""
  },
  "recent_transactions": [
    {
      "membership": "15",
      "member": "46",
      "coupon": "0",
      "subscription": "59",
      "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
    },
    {
      "membership": "15",
      "member": "46",
      "coupon": "0",
      "subscription": "59",
      "id": "166",
      "amount": "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": "0",
      "created_at": "2019-03-19 16:48:21",
      "expires_at": "2019-03-19 16:48:21",
      "corporate_account_id": "0",
      "parent_transaction_id": "0",
      "tax_compound": "0",
      "tax_shipping": "1",
      "response": null
    }
  ],
  "recent_subscriptions": [
    {
      "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": "cancelled",
      "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
    }
  ]
}

Atualizar membro

Descrição

Atualiza um membro com o ID e os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

primeiro_nome (string) – The User's First Name. 

sobrenome (string) – The User's Last Name.

e-mail (Required) (string) – The User's Email Address.

nome de usuário (Required) (string) -The username for this User. If you're using email addresses as the Username, then both username and email should be set to the same string.

senha (string) – Works only when creating a new Member. A plaintext password which will be hashed and stored with this user. If a password is not provided, then a random password will be automatically generated for the member. If this field is present when updating a member, they will receive an email to set their password.

transação (array, default value: []) – Works only when creating a new Member. This is an array conforming to the documentation for the “Create Transaction” API route (except the “member” parameter will be ignored in favor of the id of the newly created member). This will create an initial transaction for the member to add them to a specific membership.

send_welcome_email (bool, default value: false) – Works only when creating a new Member and if a transaction has been specified. When set to true this will trigger a welcome email to send to the new member. If the user has already received a welcome email, and the membership this transaction is for does not have its own welcome email configured, then no email will be sent.

send_password_email (bool, valor padrão: false) - Funciona somente ao criar um novo membro. Quando definido como true, acionará o e-mail de definição de senha do MemberPress (o arquivo de modelo para esse e-mail é /app/views/emails/user_set_password.php) a ser enviado ao novo membro.

endereço1 (string, default value: empty) – The user's address line 1.

endereço2 (string, valor padrão: vazio) - A linha de endereço do usuário 2.

cidade (string, valor padrão: vazio) - A cidade do usuário.

estado (string, valor padrão: vazio) - O estado do usuário.

zíper (string, valor padrão: vazio) - O CEP do usuário.

país (string, valor padrão: vazio) - O país do usuário.

usermeta*** mais informações

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/members/56" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d email="zapier@test.com" \
       -d nome de usuário=zapiertest \
       -d first_name=zapier \d
       -d last_name=test

Resposta de amostra

{
  "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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-04-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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": "Sign Up" (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-04-01",
      "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": "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
    }
  ]
}

Excluir membro

Descrição

Exclui um membro com o ID fornecido.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/members/56" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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-04-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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": "Sign Up" (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-04-01",
      "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": "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
    }
  ]
}

Obter regras

Descrição

Obtém todas as regras com base nos argumentos de pesquisa fornecidos.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção. 

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) - Limita os resultados aos que correspondem a uma string.

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "id": 227,
    "title": "Uma única página: Página de teste",
    "date": "2019-02-20 10:34:06",
    "status": "publish" (publicar),
    "author" (autor): {
      "id": 5,
      "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test"
    },
    "date_gmt": "2019-02-20 17:34:06",
    "modified": "2019-02-20 10:34:06",
    "modified_gmt": "2019-02-20 17:34:06",
    "rule_type": "single_page",
    "rule_content": "225",
    "is_rule_content_regex": falso,
    "drip_enabled": falso,
    "drip_amount": "0",
    "drip_unit": "days" (dias),
    "drip_after": "registros",
    "drip_after_fixed": "",
    "expires_enabled": falso,
    "expires_amount": "0",
    "expires_unit": "days" (dias),
    "expires_after": "registers" (registros),
    "expires_after_fixed": "",
    "unauth_excerpt_type": "default",
    "unauth_excerpt_size": "100",
    "unauth_message_type": "default",
    "unauth_message": "",
    "unauth_login": "default",
    "auto_gen_title": "1"
  },
  {
    "id": 175,
    "title": "Partial:",
    "date": "2018-12-14 14:57:43",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test"
    },
    "date_gmt": "2018-12-14 21:57:43",
    "modified": "2018-12-14 14:57:43",
    "modified_gmt": "2018-12-14 21:57:43",
    "rule_type": "partial",
    "rule_content": "",
    "is_rule_content_regex": false,
    "drip_enabled": falso,
    "drip_amount": "0",
    "drip_unit": "days" (dias),
    "drip_after": "registros",
    "drip_after_fixed": "",
    "expires_enabled": falso,
    "expires_amount": "0",
    "expires_unit": "days" (dias),
    "expires_after": "registers" (registros),
    "expires_after_fixed": "",
    "unauth_excerpt_type": "default",
    "unauth_excerpt_size": "100",
    "unauth_message_type": "default",
    "unauth_message": "",
    "unauth_login": "default",
    "auto_gen_title": "1"
  },
  {
    "id": 77,
    "title": "Um único fórum: Fórum 1",
    "date": "2018-09-13 16:41:59",
    "status": "publish" (publicar),
    "author": {
      "id": 2,
      "email": "",
      "nome de usuário": "demo",
      "nicename": "demo",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:27:02",
      "first_name": "",
      "last_name": "",
      "display_name": "demo"
    },
    "date_gmt": "2018-09-13 22:41:59",
    "modified": "2018-09-13 16:41:59",
    "modified_gmt": "2018-09-13 22:41:59",
    "rule_type": "single_forum",
    "rule_content": "73",
    "is_rule_content_regex": false,
    "drip_enabled": falso,
    "drip_amount": "0",
    "drip_unit": "days" (dias),
    "drip_after": "registros",
    "drip_after_fixed": "",
    "expires_enabled": falso,
    "expires_amount": "0",
    "expires_unit": "days" (dias),
    "expires_after": "registers" (registros),
    "expires_after_fixed": "",
    "unauth_excerpt_type": "default",
    "unauth_excerpt_size": "100",
    "unauth_message_type": "default",
    "unauth_message": "",
    "unauth_login": "default",
    "auto_gen_title": "1"
  },
  {
    "id": 23,
    "title": "Uma única página: Página de amostra",
    "date": "2018-08-30 16:14:57",
    "status": "publish" (publicar),
    "author" (autor): {
      "id": 2,
      "email": "",
      "nome de usuário": "demo",
      "nicename": "demo",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:27:02",
      "first_name": "",
      "last_name": "",
      "display_name": "demo"
    },
    "date_gmt": "2018-08-30 16:14:57",
    "modified": "2018-12-19 10:48:44",
    "modified_gmt": "2018-12-19 17:48:44",
    "rule_type": "single_page",
    "rule_content": "2",
    "is_rule_content_regex": false,
    "drip_enabled": falso,
    "drip_amount": "0",
    "drip_unit": "days" (dias),
    "drip_after": "registros",
    "drip_after_fixed": "",
    "expires_enabled": falso,
    "expires_amount": "0",
    "expires_unit": "days" (dias),
    "expires_after": "registers" (registros),
    "expires_after_fixed": "",
    "unauth_excerpt_type": "default",
    "unauth_excerpt_size": "100",
    "unauth_message_type": "default",
    "unauth_message": "",
    "unauth_login": "default",
    "auto_gen_title": "1"
  }
]

Obter regra

Descrição

Obter uma Rule com um determinado id.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/rules/227" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 227,
  "title": "Uma única página: Página de teste",
  "date": "2019-02-20 10:34:06",
  "status": "publish" (publicar),
  "author" (autor): {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-02-20 17:34:06",
  "modified": "2019-02-20 10:34:06",
  "modified_gmt": "2019-02-20 17:34:06",
  "rule_type": "single_page",
  "rule_content": "225",
  "is_rule_content_regex": falso,
  "drip_enabled": falso,
  "drip_amount": "0",
  "drip_unit": "days" (dias),
  "drip_after": "registros",
  "drip_after_fixed": "",
  "expires_enabled": falso,
  "expires_amount": "0",
  "expires_unit": "days" (dias),
  "expires_after": "registers" (registros),
  "expires_after_fixed": "",
  "unauth_excerpt_type": "default",
  "unauth_excerpt_size": "100",
  "unauth_message_type": "default",
  "unauth_message": "",
  "unauth_login": "default",
  "auto_gen_title": "1"
}

Criar regra

Descrição

Crie uma regra com os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

tipo_de_regra (string, valor padrão: all) - O tipo de regra que você está criando.

conteúdo_da_regra (string) - O ID do tipo de regra que está sendo protegido. Por exemplo, se você proteger uma página única, deverá definir isso como o ID dessa página. Se você proteger uma categoria inteira, deverá definir isso como o ID dessa categoria.

is_rule_content_regex (bool, valor padrão: false) - Se deve ser usada a correspondência de expressão regular em rule_type's "custom" (também conhecido como Custom URI).

membros autorizados (Obrigatório) (matriz, valor padrão: []) - Uma matriz de IDs de associação que concede ao membro acesso ao conteúdo que está sendo protegido por essa regra.

habilitado para gotejamento (bool, valor padrão: false) - Se o gotejamento deve ser ativado nessa regra.

quantidade de gotejamento (número inteiro, valor padrão: 1) - O número de unidades para atrasar o gotejamento.

unidade de gotejamento (cadeia de caracteres, valor padrão: dias) - A unidade para gotejar o conteúdo.

gotejamento_depois (cadeia de caracteres, valor padrão: registros) - A data na qual se baseia o gotejamento.

gotejamento_depois_fixado (string) - Se drip_after estiver definido como "fixed", isso é obrigatório e deve ser uma data válida no futuro que a função strtotime() do PHP possa interpretar.

expires_enabled (bool, valor padrão: false) - Se a expiração do conteúdo deve ser ativada nessa regra.

expires_amount (número inteiro, valor padrão: 1) - O número de unidades para atrasar a expiração do conteúdo.

expire_unit (string, valor padrão: dias) - A unidade pela qual o conteúdo deve expirar.

expirar_depois (cadeia de caracteres, valor padrão: registros) - A data em que se baseia a expiração do conteúdo.

expires_after_fixed (string) - Se expires_after for definido como "fixed", isso é obrigatório e deve ser uma data válida no futuro que a função strtotime() do PHP possa interpretar.

unauth_excerpt_type (string, valor padrão: default) - O tipo de trecho do Conteúdo protegido a ser mostrado a visitantes não autorizados. Se definido como algo diferente de "default", isso substituirá o comportamento global definido nas Opções do MemberPress para qualquer Conteúdo protegido por essa Regra.

unauth_excerpt_size (inteiro, valor padrão: 100) - Isso é usado somente se unauth_exceprt_type estiver definido como "custom". Ele mostrará X caracteres do conteúdo protegido real como o trecho para visitantes não autorizados.

unath_message_type (string, valor padrão: default) - O tipo de mensagem a ser exibida para usuários não autorizados que tentarem visualizar o Conteúdo protegido por essa Regra. Se definido como algo diferente de "default", isso substituirá o comportamento global definido nas Opções do MemberPress para qualquer Conteúdo protegido por essa Regra.

unauth_message (string) - Se unauth_message_type for definido como "custom", essa string será mostrada como a mensagem que os usuários não autorizados verão quando tentarem visualizar o Conteúdo protegido por essa Regra.

login não autorizado (string, valor padrão: default) - Se deve ou não mostrar/ocultar o formulário de login ou deixar as configurações globais padrão nas opções do MemberPress.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d rule_type=single_page \
       -d rule_content=225 \d
       -d drip_unit=dias \d
       -d drip_after=registros \d
       -d expires_unit=days \d expires_after=registers
       -d expires_after=registros \d
       -d unauth_excerpt_type=default \d
       -d unauth_excerpt_size=100 \d
       -d unauth_message_type=default \d
       -d unauth_login=default

Resposta de amostra

{
  "id": 227,
  "title": "Uma única página: Página de teste",
  "date": "2019-02-20 10:34:06",
  "status": "publish" (publicar),
  "author" (autor): {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-02-20 17:34:06",
  "modified": "2019-02-20 10:34:06",
  "modified_gmt": "2019-02-20 17:34:06",
  "rule_type": "single_page",
  "rule_content": "225",
  "is_rule_content_regex": falso,
  "drip_enabled": falso,
  "drip_amount": "0",
  "drip_unit": "days" (dias),
  "drip_after": "registros",
  "drip_after_fixed": "",
  "expires_enabled": falso,
  "expires_amount": "0",
  "expires_unit": "days" (dias),
  "expires_after": "registers" (registros),
  "expires_after_fixed": "",
  "unauth_excerpt_type": "default",
  "unauth_excerpt_size": "100",
  "unauth_message_type": "default",
  "unauth_message": "",
  "unauth_login": "default",
  "auto_gen_title": "1"
}

Regra de atualização

Descrição

Atualiza uma Rule com o id e os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

tipo_de_regra (string, valor padrão: all) - O tipo de regra que você está criando.

conteúdo_da_regra (string) - O ID do tipo de regra que está sendo protegido. Por exemplo, se você proteger uma página única, deverá definir isso como o ID dessa página. Se você proteger uma categoria inteira, deverá definir isso como o ID dessa categoria.

is_rule_content_regex (bool, valor padrão: false) - Se deve ser usada a correspondência de expressão regular em rule_type's "custom" (também conhecido como Custom URI).

membros autorizados (Obrigatório) (matriz, valor padrão: []) - Uma matriz de IDs de associação que concede ao membro acesso ao conteúdo que está sendo protegido por essa regra.

habilitado para gotejamento (bool, valor padrão: false) - Se o gotejamento deve ser ativado nessa regra.

quantidade de gotejamento (número inteiro, valor padrão: 1) - O número de unidades para atrasar o gotejamento.

unidade de gotejamento (cadeia de caracteres, valor padrão: dias) - A unidade para gotejar o conteúdo.

gotejamento_depois (cadeia de caracteres, valor padrão: registros) - A data na qual se baseia o gotejamento.

gotejamento_depois_fixado (string) - Se drip_after estiver definido como "fixed", isso é obrigatório e deve ser uma data válida no futuro que a função strtotime() do PHP possa interpretar.

expires_enabled (bool, valor padrão: false) - Se a expiração do conteúdo deve ser ativada nessa regra.

expires_amount (número inteiro, valor padrão: 1) - O número de unidades para atrasar a expiração do conteúdo.

expire_unit (string, valor padrão: dias) - A unidade pela qual o conteúdo deve expirar.

expirar_depois (cadeia de caracteres, valor padrão: registros) - A data em que se baseia a expiração do conteúdo.

expires_after_fixed (string) - Se expires_after for definido como "fixed", isso é obrigatório e deve ser uma data válida no futuro que a função strtotime() do PHP possa interpretar.

unauth_excerpt_type (string, valor padrão: default) - O tipo de trecho do Conteúdo protegido a ser mostrado a visitantes não autorizados. Se definido como algo diferente de "default", isso substituirá o comportamento global definido nas Opções do MemberPress para qualquer Conteúdo protegido por essa Regra.

unauth_excerpt_size (inteiro, valor padrão: 100) - Isso é usado somente se unauth_exceprt_type estiver definido como "custom". Ele mostrará X caracteres do conteúdo protegido real como o trecho para visitantes não autorizados.

unath_message_type (string, valor padrão: default) - O tipo de mensagem a ser exibida para usuários não autorizados que tentarem visualizar o Conteúdo protegido por essa Regra. Se definido como algo diferente de "default", isso substituirá o comportamento global definido nas Opções do MemberPress para qualquer Conteúdo protegido por essa Regra.

unauth_message (string) - Se unauth_message_type for definido como "custom", essa string será mostrada como a mensagem que os usuários não autorizados verão quando tentarem visualizar o Conteúdo protegido por essa Regra.

login não autorizado (string, valor padrão: default) - Se deve ou não mostrar/ocultar o formulário de login ou deixar as configurações globais padrão nas opções do MemberPress.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules/227" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d rule_type=single_page \
       -d rule_content=225 \d
       -d drip_unit=dias \d
       -d drip_after=registros \d
       -d expires_unit=days \d expires_after=registers
       -d expires_after=registros \d
       -d unauth_excerpt_type=default \d
       -d unauth_excerpt_size=100 \d
       -d unauth_message_type=default \d
       -d unauth_login=default

Resposta de amostra

{
  "id": 227,
  "title": "Uma única página: Página de teste",
  "date": "2019-02-20 10:34:06",
  "status": "publish" (publicar),
  "author" (autor): {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-02-20 17:34:06",
  "modified": "2019-02-20 10:34:06",
  "modified_gmt": "2019-02-20 17:34:06",
  "rule_type": "single_page",
  "rule_content": "225",
  "is_rule_content_regex": falso,
  "drip_enabled": falso,
  "drip_amount": "0",
  "drip_unit": "days" (dias),
  "drip_after": "registros",
  "drip_after_fixed": "",
  "expires_enabled": falso,
  "expires_amount": "0",
  "expires_unit": "days" (dias),
  "expires_after": "registers" (registros),
  "expires_after_fixed": "",
  "unauth_excerpt_type": "default",
  "unauth_excerpt_size": "100",
  "unauth_message_type": "default",
  "unauth_message": "",
  "unauth_login": "default",
  "auto_gen_title": "1"
}

Excluir regra

Descrição

Exclui uma regra com o id fornecido.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/rules/227" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 227,
  "title": "Uma única página: Página de teste",
  "date": "2019-02-20 10:34:06",
  "status": "publish" (publicar),
  "author" (autor): {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-02-20 17:34:06",
  "modified": "2019-02-20 10:34:06",
  "modified_gmt": "2019-02-20 17:34:06",
  "rule_type": "single_page",
  "rule_content": "225",
  "is_rule_content_regex": falso,
  "drip_enabled": falso,
  "drip_amount": "0",
  "drip_unit": "days" (dias),
  "drip_after": "registros",
  "drip_after_fixed": "",
  "expires_enabled": falso,
  "expires_amount": "0",
  "expires_unit": "days" (dias),
  "expires_after": "registers" (registros),
  "expires_after_fixed": "",
  "unauth_excerpt_type": "default",
  "unauth_excerpt_size": "100",
  "unauth_message_type": "default",
  "unauth_message": "",
  "unauth_login": "default",
  "auto_gen_title": "1"
}

Obter associações

Descrição

Obtenha todas as associações com base nos argumentos de pesquisa fornecidos.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção. 

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) - Limita os resultados aos que correspondem a uma string.

grupo (inteiro) - Limita os resultados àqueles que correspondem a um grupo específico. 

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/memberships?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "id": 274,
    "title": "Avaliação gratuita de 3 dias",
    "content": "",
    "excerpt": "",
    "date": "2019-04-10 12:05:01",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-04-10 18:05:01",
    "modified": "2019-04-10 12:05:01",
    "modified_gmt": "2019-04-10 18:05:01",
    "group" (grupo): "0",
    "price": "25.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" (avaliação): "1",
    "trial_days": "3",
    "trial_amount": "0.00",
    "trial_once": "1",
    "group_order": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "3 day free trial",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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-10",
    "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".
  },
  {
    "id": 271,
    "title": "One day membership" (Associação de um dia),
    "content" (conteúdo): "",
    "excerto": "",
    "date" (data): "2019-04-04 12:14:54",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-04-04 18:14:54",
    "modified": "2019-04-04 12:14:54",
    "modified_gmt": "2019-04-04 18:14:54",
    "group" (grupo): "0",
    "price": "10.00",
    "period" (período): "1",
    "period_type": "lifetime",
    "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": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "One day membership" (Associação de um dia),
    "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": "delay",
    "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".
  },
  {
    "id": 267,
    "title": "teste de cupom",
    "content" (conteúdo): "",
    "excerpt": "",
    "date": "2019-04-03 11:18:41",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "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".
  },
  {
    "id": 251,
    "title": "25 2",
    "content" (conteúdo): "",
    "excerpt": "",
    "date": "2019-03-13 16:20:43",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-03-13 22:20:43",
    "modified": "2019-03-20 13:02:42",
    "modified_gmt": "2019-03-20 19:02:42",
    "group": {
      "id": 252,
      "title": "25 group",
      "content" (conteúdo): "",
      "excerpt": "",
      "date": "2019-03-13 16:21:20",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-03-13 22:21:20",
      "modified": "2019-03-13 16:21:20",
      "modified_gmt": "2019-03-13 22:21:20",
      "pricing_page_disabled": falso,
      "disable_change_plan_popup": falso,
      "is_upgrade_path": "1",
      "upgrade_path_reset_period": falso,
      "group_theme": "minimal_gray_horizontal.css",
      "fallback_membership": "",
      "page_button_class": "",
      "page_button_highlighted_class": "",
      "page_button_disabled_class": "",
      "alternate_group_url": "",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php"
    },
    "price" (preço): "10000.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": "1",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "25 2",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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-03-20",
    "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".
  },
  {
    "id": 250,
    "title": "25 1",
    "content" (conteúdo): "",
    "excerpt": "",
    "date": "2019-03-13 16:20:17",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-03-13 22:20:17",
    "modified": "2019-03-13 16:20:17",
    "modified_gmt": "2019-03-13 22:20:17",
    "group": {
      "id": 252,
      "title": "25 group",
      "content" (conteúdo): "",
      "excerpt": "",
      "date": "2019-03-13 16:21:20",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-03-13 22:21:20",
      "modified": "2019-03-13 16:21:20",
      "modified_gmt": "2019-03-13 22:21:20",
      "pricing_page_disabled": falso,
      "disable_change_plan_popup": falso,
      "is_upgrade_path": "1",
      "upgrade_path_reset_period": falso,
      "group_theme": "minimal_gray_horizontal.css",
      "fallback_membership": "",
      "page_button_class": "",
      "page_button_highlighted_class": "",
      "page_button_disabled_class": "",
      "alternate_group_url": "",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php"
    },
    "price" (preço): "25.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": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "25 1",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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-03-13",
    "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".
  },
  {
    "id": 247,
    "title": "274 anualmente",
    "content": "",
    "excerto": "",
    "date": "2019-03-04 15:47:14",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-03-04 22:47:14",
    "modified": "2019-03-04 15:47:14",
    "modified_gmt": "2019-03-04 22:47:14",
    "group": {
      "id": 248,
      "title": "proration",
      "content": "",
      "excerpt": "",
      "date": "2019-03-04 15:47:52",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-03-04 22:47:52",
      "modified": "2019-03-04 15:47:52",
      "modified_gmt": "2019-03-04 22:47:52",
      "pricing_page_disabled": falso,
      "disable_change_plan_popup": falso,
      "is_upgrade_path": "1",
      "upgrade_path_reset_period": falso,
      "group_theme": "minimal_gray_horizontal.css",
      "fallback_membership": "",
      "page_button_class": "",
      "page_button_highlighted_class": "",
      "page_button_disabled_class": "",
      "alternate_group_url": "",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php"
    },
    "price" (preço): "274.00",
    "period" (período): "1",
    "period_type": "years" (anos),
    "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": "1",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "274 yearly" (274 por ano),
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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-03-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".
  },
  {
    "id": 246,
    "title": "264 uma vez",
    "content" (conteúdo): "",
    "excerpt": "",
    "date": "2019-03-04 15:46:37",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-03-04 22:46:37",
    "modified": "2019-03-04 15:46:37",
    "modified_gmt": "2019-03-04 22:46:37",
    "group": {
      "id": 248,
      "title": "proration",
      "content": "",
      "excerpt": "",
      "date": "2019-03-04 15:47:52",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-03-04 22:47:52",
      "modified": "2019-03-04 15:47:52",
      "modified_gmt": "2019-03-04 22:47:52",
      "pricing_page_disabled": falso,
      "disable_change_plan_popup": falso,
      "is_upgrade_path": "1",
      "upgrade_path_reset_period": falso,
      "group_theme": "minimal_gray_horizontal.css",
      "fallback_membership": "",
      "page_button_class": "",
      "page_button_highlighted_class": "",
      "page_button_disabled_class": "",
      "alternate_group_url": "",
      "use_custom_template": falso,
      "custom_template": "template-sitemap.php"
    },
    "price" (preço): "264.00",
    "period" (período): "1",
    "period_type": "lifetime",
    "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": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "264 one time",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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": "delay",
    "expire_after": "1",
    "expire_unit": "years",
    "expire_fixed": "2019-03-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".
  },
  {
    "id": 210,
    "title": "1 day trial" (teste de 1 dia),
    "content": "",
    "excerpt": "",
    "date" (data): "2019-02-07 12:39:50",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-02-07 19:39:50",
    "modified": "2019-02-07 12:41:11",
    "modified_gmt": "2019-02-07 19:41:11",
    "group" (grupo): "0",
    "price": "10.00",
    "period" (período): "1",
    "period_type": "lifetime",
    "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": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "Teste gratuito de 14 dias",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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": "delay",
    "expire_after": "1",
    "expire_unit": "days" (dias),
    "expire_fixed": "2019-02-07",
    "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".
  },
  {
    "id": 209,
    "title": "Trial period double signup" (Período de teste de registro duplo),
    "content": "",
    "excerpt": "",
    "date": "2019-02-06 15:14:14",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
      "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-02-06 22:14:14",
    "modified": "2019-02-25 14:13:29",
    "modified_gmt": "2019-02-25 21:13:29",
    "group" (grupo): "0",
    "price": "10.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": "1",
    "trial_amount": "0.00",
    "trial_once": "1",
    "group_order": "0",
    "is_highlighted": falso,
    "plan_code": "",
    "pricing_title": "Trial period double signup",
    "pricing_show_price": true,
    "pricing_display": "auto",
    "custom_price": "",
    "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": "delay",
    "expire_after": "1",
    "expire_unit": "days" (dias),
    "expire_fixed": "2019-02-25",
    "tax_exempt": falso,
    "allow_renewal": "1",
    "access_url": "",
    "disable_address_fields": falso,
    "simultaneous_subscriptions": falso,
    "use_custom_template": falso,
    "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".
  },
  {
    "id": 196,
    "title": "teste de cupom",
    "content": "",
    "excerpt": "",
    "date": "2019-01-10 15:36:20",
    "status": "publish" (publicar),
    "author": {
      "id": 5,
     "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
    },
    "date_gmt": "2019-01-10 22:36:20",
    "modified": "2019-02-19 12:15:59",
    "modified_gmt": "2019-02-19 19:15:59",
    "group" (grupo): "0",
    "price": "100.00",
    "period" (período): "1",
    "period_type": "years" (anos),
    "signup_button_text": "Sign Up" (Registrar-se),
    "limit_cycles": falso,
    "limit_cycles_num": "2",
    "limit_cycles_action": "expire",
    "trial" (avaliação): "1",
    "trial_days": "14",
    "trial_amount": "0.00",
    "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": "",
    "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-02-19",
    "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".
  }
]

Obter associação

Descrição

Obter um membro com um determinado ID.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/memberships/274" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 274,
  "title": "Avaliação gratuita de 3 dias",
  "content": "",
  "excerpt": "",
  "date": "2019-04-10 12:05:01",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:01",
  "modified": "2019-04-10 12:05:01",
  "modified_gmt": "2019-04-10 18:05:01",
  "group" (grupo): "0",
  "price": "25.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" (avaliação): "1",
  "trial_days": "3",
  "trial_amount": "0.00",
  "trial_once": "1",
  "group_order": "0",
  "is_highlighted": falso,
  "plan_code": "",
  "pricing_title": "3 day free trial",
  "pricing_show_price": true,
  "pricing_display": "auto",
  "custom_price": "",
  "pricing_heading_txt": "",
  "pricing_footer_txt": "",
  "pricing_button_txt": "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-10",
  "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".
}

Criar associação

Descrição

Crie um Membership com os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

título (Require) (string) - O título da associação.

preço (decimal, valor padrão: 0,00) - O preço base da associação.

período (integer, valor padrão: 1) - O período para os ciclos de cobrança da associação. Para pagamentos únicos, deixe esse valor definido como 1. Se você quiser cobrar o cliente uma vez por trimestre, defina esse valor como 3 e o period_type como months. Há algumas limitações dependendo do period_type.

tipo_de_período (string, valor padrão: lifetime) - O tipo de período de cobrança. Para pagamentos não recorrentes, esse valor deve ser sempre definido como "lifetime" (vitalício). Outros valores possíveis são "semanas", "meses" e "anos". Há algumas limitações dependendo do período.

texto do botão de registro (string, valor padrão: Sign Up) - O texto mostrado no botão de envio exibido no formulário de registro desse Membro.

limit_cycles (bool, valor padrão: false) - Se deve ou não limitar os ciclos de cobrança para pagamentos recorrentes de associação. Se for definido como true, o MemberPress cancelará os pagamentos recorrentes depois que o valor de limit_cycles_num for atingido.

limit_cycles_num (integer, valor padrão: 2) - Se limit_cycles for verdadeiro, esse número será usado para determinar quantas cobranças recorrentes devem ocorrer antes que o MemberPress cancele automaticamente a assinatura. Se for definido como 1, a assinatura será cancelada imediatamente após o primeiro pagamento, mas o membro manterá o acesso até que a transação expire.

limit_cycles_action (string, valor padrão: expire) - Se limit_cycles estiver ativado, isso determinará o acesso do Membro depois que a Assinatura tiver atingido o limite limit_cycles_num e tiver sido cancelada. Se definido como "expire", o membro perderá o acesso depois que a última transação expirar. Se for definido como "lifetime", o Membro terá acesso vitalício.

julgamento (bool, valor padrão: false) - Se haverá ou não um período de avaliação para essa assinatura. Os períodos de teste funcionam SOMENTE em pagamentos recorrentes automáticos.

trial_days (número inteiro, valor padrão: 0) - Quantos dias o período de avaliação deve durar antes do início dos ciclos regulares de cobrança.

trial_amount (decimal, valor padrão: 0,00) - Se um período de avaliação estiver ativado, isso especifica quanto o usuário pagará pelo período de avaliação.

grupo (número inteiro, valor padrão: 0) - A ID de um grupo MemberPress ao qual essa associação deve pertencer. O padrão é nenhum grupo.

ordem_de_grupo (número inteiro, valor padrão: 0) - Se a associação pertencer a um grupo, isso determinará seu posicionamento na página do grupo e também será usado para determinar os caminhos de upgrade/downgrade.

is_highlighted (bool, valor padrão: false) - Se essa associação deve ou não ser destacada no grupo. Isso adiciona classes CSS extras para fazer com que a caixa de preços/características do Grupo se destaque das demais.

título_preço (string) - O título que aparece na parte superior da caixa de preços em uma página de grupo.

exibição_de_preços (cadeia de caracteres, valor padrão: auto) - Como exibir o preço na caixa de preços desse Associação na página Grupo.

pricing_heading_txt (string) - Um título a ser exibido nessa caixa de preços. É exibido abaixo do preço, mas acima da lista de recursos/benefícios.

texto do rodapé de preços (string) - Mostra uma mensagem no rodapé da caixa de preços. É exibida logo acima do botão de compra.

texto_do_botão_de_preços (string) - O texto do botão de compra.

benefícios de preços (array, valor padrão: []) - Um array de cadeias de caracteres. Cada cadeia de caracteres será exibida como um item de linha na caixa de preços na página Group.

register_price (string) - Uma string de preço personalizada para essa associação. Isso só é usado se register_price_action estiver definido como "custom".

register_price_action (string, valor padrão: default) - Se deve usar a cadeia de preços padrão gerada pelo MemberPress, uma cadeia de preços personalizada ou ocultar completamente a cadeia de preços.

thank_you_page_enabled (bool, valor padrão: false) - Se definido como true, o conteúdo da página de agradecimento será substituído pela mensagem contida no valor thank_you_message.

thank_you_message (string) - Uma string que contém a mensagem da página de agradecimento personalizada que é exibida na página de agradecimento sempre que essa associação é comprada. thank_you_page_enabled deve ser definida como true para que ela seja exibida.

custom_login_urls_enabled (bool, valor padrão: false) - Se definido como true, você pode modificar o redirecionamento de login usando custom_login_urls_default e/ou custom_login_urls para controlar para onde um membro é levado depois de fazer login.

custom_login_urls_default (string) - O URL para o qual o membro será redirecionado pela deafult ao fazer login, caso tenha adquirido essa associação. Isso substitui o URL de redirecionamento de login global definido em MemberPress -> Options (Opções).

rolos_de_login_personalizados (matriz, valor padrão: []) - Uma matriz de objetos padrão. Cada objeto deve ter \$obj->url e \$obj->count. url é o URL para o qual o usuário deve ser redirecionado ao fazer login, e count é o número de vezes que ele fez login. Assim, por exemplo, se você quiser levar o usuário a uma página de destino específica na quarta tentativa de login, defina o URL como a página de destino e a contagem como 4.

expire_type (string, valor padrão: none) - Se a associação for um pagamento único (não recorrente automaticamente), você poderá definir se/quando ela deve expirar. Um valor de none (nenhum) significa que ela será válida por toda a vida. Um valor de delay (atraso) significa que ela expira em algum momento no futuro (exemplo: 6 meses). E um valor fixo significa que ela expirará em uma data fixa no futuro (exemplo: 31 de dezembro de 2019). Observação: isso não funciona em associações recorrentes.

expirar_depois (integer, valor padrão: 1) - Se o expire_type estiver definido como "delay", use isso para determinar quantas expire_unit's faltam para a expiração da associação. Deve ser um número (exemplo: "6", para 6 dias/meses/semanas/anos).

expire_unit (string, valor padrão: dias) - Se o expire_type estiver definido como "delay", use isso para definir a unidade para o valor expire_after. Por exemplo, se expire_after foi definido como "6" e isso foi definido como "months", então a associação expiraria 6 meses após a data em que o membro se registrou.

expire_fixed (string) - Se o expire_type estiver definido como "fixed", defina isso como a string da data em que essa associação deve expirar. Você pode usar qualquer formato de data que a função strtotime() do PHP possa entender.

isento de impostos (bool, valor padrão: false) - Essa associação deve ser isenta de impostos ou não.

allow_renewal (bool, valor padrão: false) - Permite que os membros renovem pagamentos únicos antes que eles expirem. Observação: isso só funciona em associações de pagamento único que tenham um valor "delay" expire_type.

access_url (string) - Use isso para adicionar um URL que deve ser usado como a página em que o membro pode acessar o conteúdo dessa assinatura de associação.

simultaneous_subscriptions (assinaturas simultâneas) (bool, valor padrão: false) - Permite que os membros tenham várias assinaturas ativas para esse produto simultaneamente. Observação: não use essa opção se allow_renewal estiver definido como true.

use_custom_template (bool, valor padrão: false) - Se deve ou não usar um modelo de página personalizado para essa página de associação.

modelo_personalizado (string) - O caminho relativo ao seu arquivo de modelo.

customize_payment_methods (personalizar métodos de pagamento) (bool, valor padrão: false) - Permite que os métodos de pagamento sejam desativados nessa associação. Um método de pagamento desativado não pode ser usado por um Membro no checkout.

custom_payment_methods (array, valor padrão: []) - Se customize_payment_methods for true, então essa deve ser uma matriz de IDs de métodos de pagamento válidos para esse membro. Observação: se estiver filtrando métodos de pagamento válidos, isso DEVE ter pelo menos uma ID de gateway.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d title="Avaliação gratuita de 3 dias" \
       -d price="25.00" \
       -d period=1 \d
       -d period_type=months \d
       -d signup_button_text="Registrar-se" \d
       -d limit_cycles_num=2 \d
       -d limit_cycles_action=expire \d limit_cycles_action=expire
       -d trial=1 \
       -d trial_days=3 \d
       -d trial_amount="0.00" \
       -d pricing_title="Teste gratuito de 3 dias" \d
       -d pricing_display=auto \d
       -d pricing_button_txt="Sign Up" \d
       -d register_price_action=default \d
       -d expire_type=none \d expire_type=none
       -d expire_after=1 \d expire_unit=none
       -d expire_unit=days \
       -d expire_fixed="2019-04-10" \d
       -d custom_template="template-sitemap.php"

Resposta de amostra

{
  "id": 274,
  "title": "Avaliação gratuita de 3 dias",
  "content": "",
  "excerpt": "",
  "date": "2019-04-10 12:05:01",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:01",
  "modified": "2019-04-10 12:05:01",
  "modified_gmt": "2019-04-10 18:05:01",
  "group" (grupo): "0",
  "price": "25.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" (avaliação): "1",
  "trial_days": "3",
  "trial_amount": "0.00",
  "trial_once": "1",
  "group_order": "0",
  "is_highlighted": falso,
  "plan_code": "",
  "pricing_title": "3 day free trial",
  "pricing_show_price": true,
  "pricing_display": "auto",
  "custom_price": "",
  "pricing_heading_txt": "",
  "pricing_footer_txt": "",
  "pricing_button_txt": "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-10",
  "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".
}

Atualizar o quadro social

Descrição

Atualiza um Membership com o id e os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

título (Require) (string) - O título da associação.

preço (decimal, valor padrão: 0,00) - O preço base da associação.

período (integer, valor padrão: 1) - O período para os ciclos de cobrança da associação. Para pagamentos únicos, deixe esse valor definido como 1. Se você quiser cobrar o cliente uma vez por trimestre, defina esse valor como 3 e o period_type como months. Há algumas limitações dependendo do period_type.

tipo_de_período (string, valor padrão: lifetime) - O tipo de período de cobrança. Para pagamentos não recorrentes, esse valor deve ser sempre definido como "lifetime" (vitalício). Outros valores possíveis são "semanas", "meses" e "anos". Há algumas limitações dependendo do período.

texto do botão de registro (string, valor padrão: Sign Up) - O texto mostrado no botão de envio exibido no formulário de registro desse Membro.

limit_cycles (bool, valor padrão: false) - Se deve ou não limitar os ciclos de cobrança para pagamentos recorrentes de associação. Se for definido como true, o MemberPress cancelará os pagamentos recorrentes depois que o valor de limit_cycles_num for atingido.

limit_cycles_num (integer, valor padrão: 2) - Se limit_cycles for verdadeiro, esse número será usado para determinar quantas cobranças recorrentes devem ocorrer antes que o MemberPress cancele automaticamente a assinatura. Se for definido como 1, a assinatura será cancelada imediatamente após o primeiro pagamento, mas o membro manterá o acesso até que a transação expire.

limit_cycles_action (string, valor padrão: expire) - Se limit_cycles estiver ativado, isso determinará o acesso do Membro depois que a Assinatura tiver atingido o limite limit_cycles_num e tiver sido cancelada. Se definido como "expire", o membro perderá o acesso depois que a última transação expirar. Se for definido como "lifetime", o Membro terá acesso vitalício.

t
rial (bool, valor padrão: false) - Se haverá ou não um período de avaliação para essa assinatura. Os períodos de avaliação funcionam SOMENTE em pagamentos recorrentes automáticos.

trial_days (número inteiro, valor padrão: 0) - Quantos dias o período de avaliação deve durar antes do início dos ciclos regulares de cobrança.

trial_amount (decimal, valor padrão: 0,00) - Se um período de avaliação estiver ativado, isso especifica quanto o usuário pagará pelo período de avaliação.

grupo (número inteiro, valor padrão: 0) - A ID de um grupo MemberPress ao qual essa associação deve pertencer. O padrão é nenhum grupo.

ordem_de_grupo (número inteiro, valor padrão: 0) - Se a associação pertencer a um grupo, isso determinará seu posicionamento na página do grupo e também será usado para determinar os caminhos de upgrade/downgrade.

is_highlighted (bool, valor padrão: false) - Se essa associação deve ou não ser destacada no grupo. Isso adiciona classes CSS extras para fazer com que a caixa de preços/características do Grupo se destaque das demais.

título_preço (string) - O título que aparece na parte superior da caixa de preços em uma página de grupo.

exibição_de_preços (cadeia de caracteres, valor padrão: auto) - Como exibir o preço na caixa de preços desse Associação na página Grupo.

pricing_heading_txt (string) - Um título a ser exibido nessa caixa de preços. É exibido abaixo do preço, mas acima da lista de recursos/benefícios.

texto do rodapé de preços (string) - Mostra uma mensagem no rodapé da caixa de preços. É exibida logo acima do botão de compra.

texto_do_botão_de_preços (string) - O texto do botão de compra.

benefícios de preços (array, valor padrão: []) - Um array de cadeias de caracteres. Cada cadeia de caracteres será exibida como um item de linha na caixa de preços na página Group.

register_price (string) - Uma string de preço personalizada para essa associação. Isso só é usado se register_price_action estiver definido como "custom".

register_price_action (string, valor padrão: default) - Se deve usar a cadeia de preços padrão gerada pelo MemberPress, uma cadeia de preços personalizada ou ocultar completamente a cadeia de preços.

thank_you_page_enabled (bool, valor padrão: false) - Se definido como true, o conteúdo da página de agradecimento será substituído pela mensagem contida no valor thank_you_message.

thank_you_message (string) - Uma string que contém a mensagem da página de agradecimento personalizada que é exibida na página de agradecimento sempre que essa associação é comprada. thank_you_page_enabled deve ser definida como true para que ela seja exibida.

custom_login_urls_enabled (bool, valor padrão: false) - Se definido como true, você pode modificar o redirecionamento de login usando custom_login_urls_default e/ou custom_login_urls para controlar para onde um membro é levado depois de fazer login.

custom_login_urls_default (string) - O URL para o qual o membro será redirecionado pela deafult ao fazer login, caso tenha adquirido essa associação. Isso substitui o URL de redirecionamento de login global definido em MemberPress -> Options (Opções).

rolos_de_login_personalizados (matriz, valor padrão: []) - Uma matriz de objetos padrão. Cada objeto deve ter \$obj->url e \$obj->count. url é o URL para o qual o usuário deve ser redirecionado ao fazer login, e count é o número de vezes que ele fez login. Assim, por exemplo, se você quiser levar o usuário a uma página de destino específica na quarta tentativa de login, defina o URL como a página de destino e a contagem como 4.

expire_type (string, valor padrão: none) - Se a associação for um pagamento único (não recorrente automaticamente), você poderá definir se/quando ela deve expirar. Um valor de none (nenhum) significa que ela será válida por toda a vida. Um valor de delay (atraso) significa que ela expira em algum momento no futuro (exemplo: 6 meses). E um valor fixo significa que ela expirará em uma data fixa no futuro (exemplo: 31 de dezembro de 2019). Observação: isso não funciona em associações recorrentes.

expirar_depois (integer, valor padrão: 1) - Se o expire_type estiver definido como "delay", use isso para determinar quantas expire_unit's faltam para a expiração da associação. Deve ser um número (exemplo: "6", para 6 dias/meses/semanas/anos).

expire_unit (string, valor padrão: dias) - Se o expire_type estiver definido como "delay", use isso para definir a unidade para o valor expire_after. Por exemplo, se expire_after foi definido como "6" e isso foi definido como "months", então a associação expiraria 6 meses após a data em que o membro se registrou.

expire_fixed (string) - Se o expire_type estiver definido como "fixed", defina isso como a string da data em que essa associação deve expirar. Você pode usar qualquer formato de data que a função strtotime() do PHP possa entender.

isento de impostos (bool, valor padrão: false) - Essa associação deve ser isenta de impostos ou não.

allow_renewal (bool, valor padrão: false) - Permite que os membros renovem pagamentos únicos antes que eles expirem. Observação: isso só funciona em associações de pagamento único que tenham um valor "delay" expire_type.

access_url (string) - Use isso para adicionar um URL que deve ser usado como a página em que o membro pode acessar o conteúdo dessa assinatura de associação.

simultaneous_subscriptions (assinaturas simultâneas) (bool, valor padrão: false) - Permite que os membros tenham várias assinaturas ativas para esse produto simultaneamente. Observação: não use essa opção se allow_renewal estiver definido como true.

use_custom_template (bool, valor padrão: false) - Se deve ou não usar um modelo de página personalizado para essa página de associação.

modelo_personalizado (string) - O caminho relativo ao seu arquivo de modelo.

customize_payment_methods (personalizar métodos de pagamento) (bool, valor padrão: false) - Permite que os métodos de pagamento sejam desativados nessa associação. Um método de pagamento desativado não pode ser usado por um Membro no checkout.

custom_payment_methods (array, valor padrão: []) - Se customize_payment_methods for true, então essa deve ser uma matriz de IDs de métodos de pagamento válidos para esse membro. Observação: se estiver filtrando métodos de pagamento válidos, isso DEVE ter pelo menos uma ID de gateway.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships/274" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d title="Avaliação gratuita de 3 dias" \
       -d price="25.00" \
       -d period=1 \d
       -d period_type=months \d
       -d signup_button_text="Registrar-se" \d
       -d limit_cycles_num=2 \d
       -d limit_cycles_action=expire \d limit_cycles_action=expire
       -d trial=1 \
       -d trial_days=3 \d
       -d trial_amount="0.00" \
       -d pricing_title="Teste gratuito de 3 dias" \d
       -d pricing_display=auto \d
       -d pricing_button_txt="Sign Up" \d
       -d register_price_action=default \d
       -d expire_type=none \d expire_type=none
       -d expire_after=1 \d expire_unit=none
       -d expire_unit=days \
       -d expire_fixed="2019-04-10" \d
       -d custom_template="template-sitemap.php"

Resposta de amostra

{
  "id": 274,
  "title": "Avaliação gratuita de 3 dias",
  "content": "",
  "excerpt": "",
  "date": "2019-04-10 12:05:01",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:01",
  "modified": "2019-04-10 12:05:01",
  "modified_gmt": "2019-04-10 18:05:01",
  "group" (grupo): "0",
  "price": "25.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" (avaliação): "1",
  "trial_days": "3",
  "trial_amount": "0.00",
  "trial_once": "1",
  "group_order": "0",
  "is_highlighted": falso,
  "plan_code": "",
  "pricing_title": "3 day free trial",
  "pricing_show_price": true,
  "pricing_display": "auto",
  "custom_price": "",
  "pricing_heading_txt": "",
  "pricing_footer_txt": "",
  "pricing_button_txt": "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-10",
  "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".
}

Excluir associação

Descrição

Exclui uma associação com o ID fornecido.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/memberships/274" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 274,
  "title": "Avaliação gratuita de 3 dias",
  "content": "",
  "excerpt": "",
  "date": "2019-04-10 12:05:01",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:01",
  "modified": "2019-04-10 12:05:01",
  "modified_gmt": "2019-04-10 18:05:01",
  "group" (grupo): "0",
  "price": "25.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" (avaliação): "1",
  "trial_days": "3",
  "trial_amount": "0.00",
  "trial_once": "1",
  "group_order": "0",
  "is_highlighted": falso,
  "plan_code": "",
  "pricing_title": "3 day free trial",
  "pricing_show_price": true,
  "pricing_display": "auto",
  "custom_price": "",
  "pricing_heading_txt": "",
  "pricing_footer_txt": "",
  "pricing_button_txt": "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-10",
  "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".
}

Obter cupons

Descrição

Obtém todos os cupons com base nos argumentos de pesquisa fornecidos.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção. 

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) - Limita os resultados aos que correspondem a uma string.

código (inteiro) - Pegue o cupom com o código fornecido.

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/coupons?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "id": 275,
    "coupon_code": "B2XJTM2YQB",
    "date": "2019-04-10 12:05:53",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-04-10 18:05:53",
    "modified": "2019-04-10 12:08:13",
    "modified_gmt": "2019-04-10 18:08:13",
    "valid_memberships": [
      {
        "id": 274,
        "title": "3 day free trial",
        "content": "",
        "excerpt": "",
        "date": "2019-04-10 12:05:01",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-10 18:05:01",
        "modified": "2019-04-10 12:05:01",
        "modified_gmt": "2019-04-10 18:05:01",
        "group": "0",
        "price": "25.00",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "3",
        "trial_amount": "0.00",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "3 day free trial",
        "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-04-10",
        "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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "0",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "15",
    "discount_mode": "standard",
    "trial_days": "3",
    "trial_amount": "0.00"
  },
  {
    "id": 269,
    "coupon_code": "EXV6U3844B",
    "date": "2019-04-03 11:59:20",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-04-03 17:59:20",
    "modified": "2019-04-04 10:54:39",
    "modified_gmt": "2019-04-04 16:54:39",
    "valid_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "2",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "0",
    "discount_mode": "trial-override",
    "trial_days": "90",
    "trial_amount": "0.00"
  },
  {
    "id": 268,
    "coupon_code": "3ITYMDZOI5",
    "date": "2019-04-03 11:19:30",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-04-03 17:19:30",
    "modified": "2019-04-03 11:53:48",
    "modified_gmt": "2019-04-03 17:53:48",
    "valid_memberships": [
      {
        "id": 267,
        "title": "coupon testing",
        "content": "",
        "excerpt": "",
        "date": "2019-04-03 11:18:41",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-04-03 17:18:41",
        "modified": "2019-04-04 10:58:44",
        "modified_gmt": "2019-04-04 16:58:44",
        "group": "0",
        "price": "9.99",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": false,
        "limit_cycles_num": "2",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "90",
        "trial_amount": "29.94",
        "trial_once": "1",
        "group_order": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "coupon testing",
        "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-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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "2",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "100",
    "discount_mode": "first-payment",
    "trial_days": "0",
    "trial_amount": "0.00"
  },
  {
    "id": 253,
    "coupon_code": "WVJKX4WU86",
    "date": "2019-03-13 16:25:39",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-03-13 22:25:39",
    "modified": "2019-03-13 16:26:48",
    "modified_gmt": "2019-03-13 22:26:48",
    "valid_memberships": [
      {
        "id": 251,
        "title": "25 2",
        "content": "",
        "excerpt": "",
        "date": "2019-03-13 16:20:43",
        "status": "publish",
        "author": "5",
        "date_gmt": "2019-03-13 22:20:43",
        "modified": "2019-03-20 13:02:42",
        "modified_gmt": "2019-03-20 19:02:42",
        "group": "252",
        "price": "10000.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": "1",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "25 2",
        "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-20",
        "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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "0",
    "usage_amount": "0",
    "discount_type": "dollar",
    "discount_amount": "12.6",
    "discount_mode": "standard",
    "trial_days": "0",
    "trial_amount": "0.00"
  },
  {
    "id": 233,
    "coupon_code": "FRX8L9X5UO",
    "date": "2019-02-20 14:36:54",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-02-20 21:36:54",
    "modified": "2019-02-20 14:38:02",
    "modified_gmt": "2019-02-20 21:38:02",
    "valid_memberships": [
      {
        "id": 139,
        "title": "Fixed expire test",
        "content": "",
        "excerpt": "",
        "date": "2018-11-16 09:58:51",
        "status": "publish",
        "author": "5",
        "date_gmt": "2018-11-16 16:58:51",
        "modified": "2019-02-20 14:41:58",
        "modified_gmt": "2019-02-20 21:41:58",
        "group": "0",
        "price": "75.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": "0",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "Fixed expire 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": "fixed",
        "expire_after": "1",
        "expire_unit": "days",
        "expire_fixed": "2019-03-31",
        "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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "1",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "100",
    "discount_mode": "standard",
    "trial_days": "0",
    "trial_amount": "0.00"
  },
  {
    "id": 197,
    "coupon_code": "M5TGWIKIYU",
    "date": "2019-01-10 15:38:04",
    "status": "publish",
    "author": {
      "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"
    },
    "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": [
      {
        "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."
      }
    ],
    "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"
  },
  {
    "id": 195,
    "coupon_code": "CJM43W9Y3K",
    "date": "2019-01-10 13:01:37",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2019-01-10 20:01:37",
    "modified": "2019-02-05 14:57:22",
    "modified_gmt": "2019-02-05 21:57:22",
    "valid_memberships": [
      {
        "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."
      },
      {
        "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-01 15:03:22",
        "modified_gmt": "2019-04-01 21:03:22",
        "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-04-01",
        "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."
      },
      {
        "id": 14,
        "title": "Silver Membership",
        "content": "",
        "excerpt": "",
        "date": "2018-08-30 16:09:57",
        "status": "publish",
        "author": "2",
        "date_gmt": "2018-08-30 16:09:57",
        "modified": "2018-08-30 16:09:57",
        "modified_gmt": "2018-08-30 16:09:57",
        "group": "17",
        "price": "25.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": "1",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "Silver 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-08-30",
        "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."
      },
      {
        "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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "1",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "30",
    "discount_mode": "first-payment",
    "trial_days": "0",
    "trial_amount": "0.00"
  },
  {
    "id": 157,
    "coupon_code": "QPL9MTM8CI",
    "date": "2018-12-04 10:45:16",
    "status": "publish",
    "author": {
      "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"
    },
    "date_gmt": "2018-12-04 17:45:16",
    "modified": "2019-03-04 11:49:36",
    "modified_gmt": "2019-03-04 18:49:36",
    "valid_memberships": [
      {
        "id": 151,
        "title": "Update plan test",
        "content": "",
        "excerpt": "",
        "date": "2018-11-29 12:00:53",
        "status": "publish",
        "author": "5",
        "date_gmt": "2018-11-29 19:00:53",
        "modified": "2018-11-29 12:00:53",
        "modified_gmt": "2018-11-29 19:00:53",
        "group": "0",
        "price": "10.00",
        "period": "1",
        "period_type": "months",
        "signup_button_text": "Sign Up",
        "limit_cycles": "1",
        "limit_cycles_num": "1",
        "limit_cycles_action": "expire",
        "trial": "1",
        "trial_days": "30",
        "trial_amount": "10.00",
        "trial_once": "1",
        "group_order": "5",
        "is_highlighted": false,
        "plan_code": "",
        "pricing_title": "Update plan 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": "2018-11-29",
        "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."
      }
    ],
    "should_expire": false,
    "expires_on": "0",
    "usage_count": "2",
    "usage_amount": "0",
    "discount_type": "percent",
    "discount_amount": "100",
    "discount_mode": "first-payment",
    "trial_days": "0",
    "trial_amount": "0.00"
  }
]

Obter cupom

Descrição

Obter um cupom com um determinado ID.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/coupons/275" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 275,
  "coupon_code": "B2XJTM2YQB",
  "date": "2019-04-10 12:05:53",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:53",
  "modified": "2019-04-10 12:08:13",
  "modified_gmt": "2019-04-10 18:08:13",
  "valid_memberships": [
    {
      "id": 274,
      "title": "Avaliação gratuita de 3 dias",
      "content": "",
      "excerpt": "",
      "date": "2019-04-10 12:05:01",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-10 18:05:01",
      "modified": "2019-04-10 12:05:01",
      "modified_gmt": "2019-04-10 18:05:01",
      "group" (grupo): "0",
      "price": "25.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" (avaliação): "1",
      "trial_days": "3",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "3 day free trial",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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-10",
      "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".
    }
  ],
  "should_expire": falso,
  "expires_on": "0",
  "usage_count": "0",
  "usage_amount": "0",
  "discount_type" (tipo de desconto): "percent",
  "discount_amount": "15",
  "discount_mode": "standard",
  "trial_days": "3",
  "trial_amount": "0.00"
}

Criar cupom

Descrição

Cria um cupom com os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

código do cupom (string, valor padrão: ) - Esse é o código do cupom a ser associado ao cupom. Deve ser um código exclusivo, sem espaços ou caracteres especiais além de '-'. Se houver espaços, o valor será aceito, mas o MemberPress os substituirá por traços. Além disso, se esse valor for deixado em branco, o MemberPress gerará automaticamente um código exclusivo para esse cupom.

should_expire (bool, valor padrão: false) - Defina isso como true se quiser que o cupom expire em algum momento no futuro.

expires_on (Exigido se 'should_expire' for true) (timestamp, valor padrão: null) - Defina isso como o carimbo de data/hora unix de quando você gostaria que o cupom expirasse.

usage_amount (número inteiro, valor padrão: 0) - Defina esse valor como um número maior que zero se quiser limitar o número de vezes que o cupom pode ser usado.

tipo de desconto (enum, valor padrão: percent) - altera a maneira como o MemberPress interpreta o 'discount_amount' para que seja uma porcentagem ou um valor fixo.

discount_amount (decimal, valor padrão: 0,00) - O valor do desconto. Dependendo da definição de 'discount_type', pode ser um valor fixo ou uma porcentagem.

valid_memberships (Obrigatório) (matriz, valor padrão: []) - Você pode definir aqui uma matriz de IDs de associação aos quais o cupom será aplicado.

discount_mode (string, valor padrão: standard) - Define o tipo de desconto. Pode ser definido como padrão, substituição de avaliação ou primeiro pagamento. Se for definido como padrão, o desconto será aplicado a todos os pagamentos durante a vida útil da assinatura. Se definido como primeiro pagamento, o desconto será aplicado somente ao primeiro pagamento em uma assinatura recorrente automática - isso é feito substituindo o período de avaliação da assinatura. Se for definido como substituição de avaliação, ele também substituirá o período de avaliação em assinaturas de associação recorrentes.

first_payment_discount_type (enum, valor padrão: percent) - Esse valor é ignorado se o discount_mode for diferente de "first-payment". Isso alterará a maneira como o MemberPress interpreta o "first_payment_discount_amount" para que seja uma porcentagem ou um valor fixo. Aplica-se somente a assinaturas recorrentes.

first_payment_discount_amount (decimal, valor padrão: 0,00) - Esse valor será ignorado se o discount_mode for diferente de "first-payment". O valor do desconto para o primeiro pagamento de uma assinatura recorrente. Dependendo da definição de "discount_type", esse valor pode ser um valor fixo ou uma porcentagem. 

trial_days (integer, valor padrão: 0) - Define o número de dias de avaliação. Usado somente para assinaturas recorrentes e se discount_mode estiver definido como trial-override.

trial_amount (decimal, valor padrão: 0,00) - Define o valor do período de avaliação. Usado somente para assinaturas recorrentes e se discount_mode estiver definido como trial-override.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d coupon_code="B2XJTM2YQB" \
       -d discount_type=percent \
       -d discount_amount=15 \d
       -d discount_mode=standard \d
       -d trial_days=3 \
       -d trial_amount="0.00"

Resposta de amostra

{
  "id": 275,
  "coupon_code": "B2XJTM2YQB",
  "date": "2019-04-10 12:05:53",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:53",
  "modified": "2019-04-10 12:08:13",
  "modified_gmt": "2019-04-10 18:08:13",
  "valid_memberships": [
    {
      "id": 274,
      "title": "Avaliação gratuita de 3 dias",
      "content": "",
      "excerpt": "",
      "date": "2019-04-10 12:05:01",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-10 18:05:01",
      "modified": "2019-04-10 12:05:01",
      "modified_gmt": "2019-04-10 18:05:01",
      "group" (grupo): "0",
      "price": "25.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" (avaliação): "1",
      "trial_days": "3",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "3 day free trial",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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-10",
      "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".
    }
  ],
  "should_expire": falso,
  "expires_on": "0",
  "usage_count": "0",
  "usage_amount": "0",
  "discount_type" (tipo de desconto): "percent",
  "discount_amount": "15",
  "discount_mode": "standard",
  "trial_days": "3",
  "trial_amount": "0.00"
}

Atualizar cupom

Descrição

Atualiza um cupom com o ID e os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

código do cupom (string, valor padrão: ) - Esse é o código do cupom a ser associado ao cupom. Deve ser um código exclusivo, sem espaços ou caracteres especiais além de '-'. Se houver espaços, o valor será aceito, mas o MemberPress os substituirá por traços. Além disso, se esse valor for deixado em branco, o MemberPress gerará automaticamente um código exclusivo para esse cupom.

should_expire (bool, valor padrão: false) - Defina isso como true se quiser que o cupom expire em algum momento no futuro.

expires_on (Exigido se 'should_expire' for true) (timestamp, valor padrão: null) - Defina isso como o carimbo de data/hora unix de quando você gostaria que o cupom expirasse.

usage_amount (número inteiro, valor padrão: 0) - Defina esse valor como um número maior que zero se quiser limitar o número de vezes que o cupom pode ser usado.

tipo de desconto (enum, valor padrão: percent) - altera a maneira como o MemberPress interpreta o 'discount_amount' para que seja uma porcentagem ou um valor fixo.

discount_amount (decimal, valor padrão: 0,00) - O valor do desconto. Dependendo da definição de 'discount_type', pode ser um valor fixo ou uma porcentagem.

valid_memberships (Obrigatório) (matriz, valor padrão: []) - Você pode definir aqui uma matriz de IDs de associação aos quais o cupom será aplicado.

discount_mode (string, valor padrão: standard) - Define o tipo de desconto. Pode ser definido como padrão, substituição de avaliação ou primeiro pagamento. Se for definido como padrão, o desconto será aplicado a todos os pagamentos durante a vida útil da assinatura. Se definido como primeiro pagamento, o desconto será aplicado somente ao primeiro pagamento em uma assinatura recorrente automática - isso é feito substituindo o período de avaliação da assinatura. Se for definido como substituição de avaliação, ele também substituirá o período de avaliação em assinaturas de associação recorrentes.

first_payment_discount_type (enum, valor padrão: percent) - Esse valor é ignorado se o discount_mode for diferente de "first-payment". Isso alterará a maneira como o MemberPress interpreta o "first_payment_discount_amount" para que seja uma porcentagem ou um valor fixo. Aplica-se somente a assinaturas recorrentes.

first_payment_discount_amount (decimal, valor padrão: 0,00) - Esse valor será ignorado se o discount_mode for diferente de "first-payment". O valor do desconto para o primeiro pagamento de uma assinatura recorrente. Dependendo da definição de "discount_type", esse valor pode ser um valor fixo ou uma porcentagem.

trial_days (integer, valor padrão: 0) - Define o número de dias de avaliação. Usado somente para assinaturas recorrentes e se discount_mode estiver definido como trial-override.

trial_amount (decimal, valor padrão: 0,00) - Define o valor do período de avaliação. Usado somente para assinaturas recorrentes e se discount_mode estiver definido como trial-override.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons/275" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d coupon_code="B2XJTM2YQB" \
       -d discount_type=percent \
       -d discount_amount=15 \d
       -d discount_mode=standard \d
       -d trial_days=3 \
       -d trial_amount="0.00"

Resposta de amostra

{
  "id": 275,
  "coupon_code": "B2XJTM2YQB",
  "date": "2019-04-10 12:05:53",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:53",
  "modified": "2019-04-10 12:08:13",
  "modified_gmt": "2019-04-10 18:08:13",
  "valid_memberships": [
    {
      "id": 274,
      "title": "Avaliação gratuita de 3 dias",
      "content": "",
      "excerpt": "",
      "date": "2019-04-10 12:05:01",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-10 18:05:01",
      "modified": "2019-04-10 12:05:01",
      "modified_gmt": "2019-04-10 18:05:01",
      "group" (grupo): "0",
      "price": "25.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" (avaliação): "1",
      "trial_days": "3",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "3 day free trial",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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-10",
      "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".
    }
  ],
  "should_expire": falso,
  "expires_on": "0",
  "usage_count": "0",
  "usage_amount": "0",
  "discount_type" (tipo de desconto): "percent",
  "discount_amount": "15",
  "discount_mode": "standard",
  "trial_days": "3",
  "trial_amount": "0.00"
}

Excluir cupom

Descrição

Exclui um cupom com o ID fornecido.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/coupons/275" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "id": 275,
  "coupon_code": "B2XJTM2YQB",
  "date": "2019-04-10 12:05:53",
  "status": "publish" (publicar),
  "author": {
    "id": 5,
    "email": "zapier@test.com",
    "nome de usuário": "zapiertest",
    "nicename": "zapiertest",
    "url": "http://zapier.test.com",
    "message" (mensagem): "",
    "registered_at": "2018-08-30 16:42:13",
    "first_name": "zapier",
    "last_name": "test",
    "display_name": "zapier test"
  },
  "date_gmt": "2019-04-10 18:05:53",
  "modified": "2019-04-10 12:08:13",
  "modified_gmt": "2019-04-10 18:08:13",
  "valid_memberships": [
    {
      "id": 274,
      "title": "Avaliação gratuita de 3 dias",
      "content": "",
      "excerpt": "",
      "date": "2019-04-10 12:05:01",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-04-10 18:05:01",
      "modified": "2019-04-10 12:05:01",
      "modified_gmt": "2019-04-10 18:05:01",
      "group" (grupo): "0",
      "price": "25.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" (avaliação): "1",
      "trial_days": "3",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "3 day free trial",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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-10",
      "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".
    }
  ],
  "should_expire": falso,
  "expires_on": "0",
  "usage_count": "0",
  "usage_amount": "0",
  "discount_type" (tipo de desconto): "percent",
  "discount_amount": "15",
  "discount_mode": "standard",
  "trial_days": "3",
  "trial_amount": "0.00"
}

Obter transações

Descrição

Obtém uma transação com um determinado ID.

Argumentos de pesquisa

página (número inteiro, valor padrão: 1) - Página atual da coleção.

por_página (inteiro, valor padrão: 10) - Número máximo de itens a serem retornados no conjunto de resultados.

pesquisa (string) - Limita os resultados aos que correspondem a uma string.

membro (número inteiro) - Limita os resultados às transações de um membro específico.

filiação (número inteiro) - Limita os resultados às transações de uma associação específica.

cupom (número inteiro) - Limita os resultados a transações criadas com um cupom específico.

status (string) - Limita os resultados a transações com um determinado status.

porta de entrada (string) - Limita os resultados a transações criadas com um gateway de pagamento específico. Deve ser um ID exclusivo do método de pagamento que pode ser encontrado na guia Pagamentos da página Configurações do MemberPress.

assinatura (inteiro) - Limita os resultados a transações associadas a uma assinatura específica

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/transactions?page=2&per_page=10" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

[
  {
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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",
      "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": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "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
    },
    "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,
    "rebill": falso,
    "subscription_payment_index": 1,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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",
      "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": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "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
    },
    "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,
    "rebill": falso,
    "subscription_payment_index": false
  },
  {
    "membership": {
      "id": 271,
      "title": "Associação de um dia",
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2019-04-04 12:14:54",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "0",
      "price": "10.00",
      "period" (período): "1",
      "period_type": "lifetime",
      "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": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "One day membership" (Associação de um dia),
      "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": "delay",
      "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".
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address" (endereço): {
        "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" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): "0",
    "id": "195",
    "amount" (valor): "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" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "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": nulo,
    "rebill": falso,
    "subscription_payment_index": falso,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "id": 14,
      "title": "Silver Membership" (Associação Prata),
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-08-30 16:09:57",
      "status": "publish" (publicar),
      "author" (autor): "2",
      "date_gmt": "2018-08-30 16:09:57",
      "modified": "2018-08-30 16:09:57",
      "modified_gmt": "2018-08-30 16:09:57",
      "group" (grupo): "17",
      "price": "25.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": "1",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Silver Membership" (Associação Prata),
      "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": "2018-08-30",
      "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".
    },
    "member": {
      "id": 5,
      "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address" (endereço): {
        "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" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "14",
      "membro": "5",
      "id": "35",
      "subscr_id": "cus_ELEy7Swsow2wLS",
      "gateway": "peum51-1tc",
      "price": "25.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-01-14 16:41:05",
      "total": "25.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
    },
    "id": "194",
    "amount" (valor): "25.00",
    "total": "25.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EPCLEJT1LHvX6ILbOivd11C",
    "status": "complete",
    "txn_type": "payment" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "0",
    "created_at": "2019-04-14 17:42:12",
    "expires_at": "2019-05-14 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": nulo,
    "rebill": true,
    "subscription_payment_index": 4,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "id": 167,
      "title": "teste de cancelamento de avaliação",
      "content": "",
      "excerpt": "",
      "date": "2018-12-14 08:17:25",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2018-12-14 15:17:25",
      "modified": "2018-12-14 08:17:25",
      "modified_gmt": "2018-12-14 15:17:25",
      "group" (grupo): "0",
      "price": "20.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" (avaliação): "1",
      "trial_days": "30",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "teste de cancelamento de avaliação",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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": "2018-12-14",
      "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".
    },
    "member": {
      "id": 29,
      "email": "trial3@test.com",
      "username" (nome de usuário): "trial3@test.com",
      "nicename": "trial3test-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2018-12-14 15:18:45",
      "first_name": "trial2",
      "last_name": "test",
      "display_name": "trial3@test.com",
      "address" (endereço): {
        "mepr-address-one": "123 N",
        "mepr-address-two": "",
        "mepr-address-city": "Riverton",
        "mepr-address-state": "UT",
        "mepr-address-zip": "84065",
        "mepr-address-country": "US"
      },
      "profile" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "167",
      "membro": "29",
      "id": "26",
      "subscr_id": "cus_E9beibZQIjrARq",
      "gateway": "peum51-1tc",
      "price": "20.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): "1",
      "trial_days": "30",
      "trial_amount": "0.00",
      "status": "active",
      "created_at": "2018-12-14 15:19:04",
      "total": "20.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
    },
    "id": "193",
    "amount" (valor): "20.00",
    "total": "20.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EOodxJT1LHvX6ILTPMeYLk3",
    "status": "complete",
    "txn_type": "payment" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "0",
    "created_at": "2019-04-13 16:23:57",
    "expires_at": "2019-05-13 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": nulo,
    "rebill": true,
    "subscription_payment_index": 4,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "id": 209,
      "title": "Inscrição dupla no período de avaliação",
      "content": "",
      "excerpt": "",
      "date": "2019-02-06 15:14:14",
      "status": "publish" (publicar),
      "author" (autor): "5",
      "date_gmt": "2019-02-06 22:14:14",
      "modified": "2019-02-25 14:13:29",
      "modified_gmt": "2019-02-25 21:13:29",
      "group" (grupo): "0",
      "price": "10.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": "1",
      "trial_amount": "0.00",
      "trial_once": "1",
      "group_order": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Trial period double signup",
      "pricing_show_price": true,
      "pricing_display": "auto",
      "custom_price": "",
      "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": "delay",
      "expire_after": "1",
      "expire_unit": "days" (dias),
      "expire_fixed": "2019-02-25",
      "tax_exempt": falso,
      "allow_renewal": "1",
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": falso,
      "use_custom_template": falso,
      "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".
    },
    "member": {
      "id": 40,
      "email": "multitrial@test.com",
      "nome de usuário": "multitrialtest",
      "nicename": "multitrialtest",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2019-02-06 22:16:19",
      "first_name": "multitrial",
      "last_name": "test",
      "display_name": "multitrialtest",
      "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": "",
        "mepr_birthday": "",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "209",
      "membro": "40",
      "id": "42",
      "subscr_id": "cus_EVj7zawVe0xj3O",
      "gateway": "peum51-1tc",
      "price": "10.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-02-11 16:29:32",
      "total": "10.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
    },
    "id": "192",
    "amount" (valor): "10.00",
    "total": "10.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EO6jWJT1LHvX6ILxfcxx7UR",
    "status": "complete",
    "txn_type": "payment" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "0",
    "created_at": "2019-04-11 17:30:46",
    "expires_at": "2019-05-11 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": nulo,
    "rebill": true,
    "subscription_payment_index": 3,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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-04-01",
      "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": 13,
      "email": "test6@email.com",
      "username" (nome de usuário): "test6@email.com",
      "nicename": "test6email-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2018-09-10 22:51:42",
      "first_name": "",
      "last_name": "",
      "display_name": "test6@email.com",
      "address": {
        "mepr-address-one": "",
        "mepr-address-two": "",
        "mepr-address-city": "",
        "mepr-address-state": "",
        "mepr-address-zip": "",
        "mepr-address-country": ""
      },
      "profile" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "15",
      "membro": "13",
      "id": "4",
      "subscr_id": "I-NTY3JJ4SEM15",
      "gateway": "pejdpl-1yy",
      "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": "2018-09-10 22:53:04",
      "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
    },
    "id": "191",
    "amount" (valor): "100.00",
    "total": "100.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "94773182YA5488446",
    "status": "complete",
    "txn_type": "payment" (pagamento),
    "gateway": "pejdpl-1yy",
    "prorated": "0",
    "created_at": "2019-04-10 17:41:20",
    "expires_at": "2019-05-10 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": nulo,
    "rebill": true,
    "subscription_payment_index": 8,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): "0",
    "member" (membro): {
      "id": 24,
      "email": "diggity@email.com",
      "username" (nome de usuário): "diggity@email.com",
      "nicename": "diggityemail-com",
      "url": "",
      "message" (mensagem): "",
      "registered_at": "2018-12-03 20:30:51",
      "first_name": "test",
      "last_name": "username",
      "display_name": "diggity@email.com",
      "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": "",
        "mepr_birthday": "",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "0",
      "membro": "24",
      "id": "21",
      "subscr_id": "cus_E5ZCTZ9Z5OaNks",
      "gateway": "peum51-1tc",
      "price": "10.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": "2018-12-03 20:31:15",
      "total": "10.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
    },
    "id": "190",
    "amount" (valor): "10.00",
    "total": "10.00",
    "tax_amount": "0.00",
    "tax_rate": "0.000",
    "tax_desc": "",
    "tax_class": "standard",
    "trans_num": "ch_1EMLD1JT1LHvX6ILTpgwZu0q",
    "status": "complete",
    "txn_type": "payment" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "0",
    "created_at": "2019-04-06 20:33:55",
    "expires_at": "2019-05-03 23:59:59",
    "corporate_account_id": "0",
    "parent_transaction_id": "0",
    "tax_compound": "0",
    "tax_shipping": "1",
    "response": nulo,
    "rebill": true,
    "subscription_payment_index": 5,
    "commissions" (comissões): []
  },
  {
    "membership" (associação): {
      "id": 92,
      "title": "Desbloqueie seu desempenho - Premium",
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-09-24 14:24:43",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "93",
      "price" (preço): "257.00",
      "period" (período): "1",
      "period_type": "lifetime",
      "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": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Desbloqueie seu desempenho - Premium",
      "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": "delay",
      "expire_after": "1",
      "expire_unit": "weeks" (semanas),
      "expire_fixed": "2019-04-05",
      "tax_exempt": falso,
      "allow_renewal" (permitir renovação): "1",
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": falso,
      "use_custom_template": falso,
      "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".
    },
    "member": {
      "id": 5,
     "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address" (endereço): {
        "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" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): "0",
    "id": "189",
    "amount" (valor): "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" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "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": nulo,
    "rebill": falso,
    "subscription_payment_index": false
  },
  {
    "membership": {
      "id": 92,
      "title": "Desbloqueie seu desempenho - Premium",
      "content" (conteúdo): "",
      "excerto": "",
      "date" (data): "2018-09-24 14:24:43",
      "status": "publish" (publicar),
      "author" (autor): "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" (grupo): "93",
      "price" (preço): "257.00",
      "period" (período): "1",
      "period_type": "lifetime",
      "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": "0",
      "is_highlighted": falso,
      "plan_code": "",
      "pricing_title": "Desbloqueie seu desempenho - Premium",
      "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": "delay",
      "expire_after": "1",
      "expire_unit": "weeks" (semanas),
      "expire_fixed": "2019-04-05",
      "tax_exempt": falso,
      "allow_renewal" (permitir renovação): "1",
      "access_url": "",
      "disable_address_fields": falso,
      "simultaneous_subscriptions": falso,
      "use_custom_template": falso,
      "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".
    },
    "member": {
      "id": 5,
     "email": "zapier@test.com",
      "nome de usuário": "zapiertest",
      "nicename": "zapiertest",
      "url": "http://zapier.test.com",
      "message" (mensagem): "",
      "registered_at": "2018-08-30 16:42:13",
      "first_name": "zapier",
      "last_name": "test",
      "display_name": "zapier test",
      "address" (endereço): {
        "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" (perfil): {
        "mepr_company_name": "",
        "mepr_birthday": "2019-01-02",
        "mepr_testslug": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): "0",
    "id": "188",
    "amount" (valor): "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" (pagamento),
    "gateway": "peum51-1tc",
    "prorated" (rateado): "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": nulo,
    "rebill": falso,
    "subscription_payment_index": falso,
    "commissions" (comissões): []
  }
]

Obter transação

Descrição

Obtém uma transação com um determinado ID.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl "http://yourdomain.com/wp-json/mp/v1/transactions/167" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

	{
  "membership": {
    "id": 15,
    "title": "Gold Membership" (Associação Gold),
    "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".
  },
  "member": {
    "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",
    "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": ""
    }
  },
  "cupom": "0",
  "subscription" (assinatura): {
    "coupon" (cupom): "0",
    "membership" (associação): "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": "cancelled" (cancelado),
    "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
  },
  "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": "refunded" (reembolsado),
  "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,
  "rebill": falso,
  "subscription_payment_index": 1,
  "commissions" (comissões): []
}

Criar transação

Descrição

Cria uma transação com os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

trans_num (cadeia de caracteres, valor padrão: mp-txn-xxx...) - O número exclusivo da transação.

quantidade (decimal, valor padrão: 0,00) - O preço base da transação (sem incluir impostos)

total (decimal, valor padrão: 0,00) - O preço total dessa transação (incluindo impostos)

tax_amount (decimal, valor padrão: 0,00) - Use essa opção para definir manualmente o valor do imposto para essa transação

tax_rate (decimal, valor padrão: 0,00) - Use essa opção para definir manualmente a taxa de imposto para essa transação

tax_desc (string) - Use essa opção para definir manualmente a descrição do imposto para essa transação

tax_class (string, valor padrão: standard) - Use essa opção para definir manualmente a classe de imposto para essa transação

membro (Obrigatório) (número inteiro, valor padrão: 0) - O ID de usuário do WordPress do membro.

filiação (Obrigatório) (número inteiro, valor padrão: 0) - A ID de associação associada a essa transação.

cupom (número inteiro, valor padrão: 0) - A ID do cupom associada a essa transação.

status (cadeia de caracteres, valor padrão: pendente) - O status dessa transação.

resposta (string) - Um local onde você pode armazenar respostas POST ou GET do gateway de pagamento para referência posterior.

porta de entrada (string, valor padrão: manual) - O ID exclusivo do método de pagamento que pode ser encontrado na guia Pagamentos da página Configurações do MemberPress.

assinatura (número inteiro, valor padrão: 0) - O ID do CPT de assinatura recorrente associado a essa transação.

created_at (string, valor padrão: Current Timestamp) - A data em que a transação foi criada. Deve estar em um formato de data e hora do MySQL. Todas as datas armazenadas no banco de dados devem estar no fuso horário UTC.

expires_at (cadeia de caracteres, valor padrão: 0000-00-00 00:00:00) - A data em que a transação expirará. Ela deve estar em um formato de data e hora do MySQL. Todas as datas armazenadas no banco de dados devem estar no fuso horário UTC. Observação: Deixe o valor padrão para criar uma transação que dure por toda a vida (também conhecida como nunca expira).

send_welcome_email (bool, valor padrão: false) - Quando definido como true, acionará o envio de um e-mail de boas-vindas para o novo membro. Se o usuário já tiver recebido um e-mail de boas-vindas e a associação para a qual essa transação se destina não tiver seu próprio e-mail de boas-vindas configurado, nenhum e-mail será enviado.

send_receipt_email (bool, valor padrão: false) - Quando definido como true, acionará o envio de um e-mail de recibo de transação.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d amount="100.00" \
       -d total="100.00" \
       -d tax_amount="0.00" \
       -d tax_rate="0.000" \d
       -d tax_class=standard \d
       -d trans_num="ch_1EFl6yJT1LHvX6IL95fhb7M4" \d
       -d status=refunded \
       -d gateway="peum51-1tc" \
       -d created_at="2019-03-19 16:48:28" \d
       -d expires_at="2019-04-19 23:59:59"

Resposta de amostra

{
  "membership": {
    "id": 15,
    "title": "Gold Membership" (Associação Gold),
    "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".
  },
  "member": {
    "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",
    "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": ""
    }
  },
  "cupom": "0",
  "subscription" (assinatura): {
    "coupon" (cupom): "0",
    "membership" (associação): "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": "cancelled" (cancelado),
    "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
  },
  "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": "refunded" (reembolsado),
  "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,
  "rebill": falso,
  "subscription_payment_index": 1,
  "commissions" (comissões): []
}

Atualizar transação

Descrição

Atualiza uma transação com o ID e os valores de campo fornecidos.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

trans_num (cadeia de caracteres, valor padrão: mp-txn-xxx...) - O número exclusivo da transação.

quantidade (decimal, valor padrão: 0,00) - O preço base da transação (sem incluir impostos)

total (decimal, valor padrão: 0,00) - O preço total dessa transação (incluindo impostos)

tax_amount (decimal, valor padrão: 0,00) - Use essa opção para definir manualmente o valor do imposto para essa transação

tax_rate (decimal, valor padrão: 0,00) - Use essa opção para definir manualmente a taxa de imposto para essa transação

tax_desc (string) - Use essa opção para definir manualmente a descrição do imposto para essa transação

tax_class (string, valor padrão: standard) - Use essa opção para definir manualmente a classe de imposto para essa transação

membro (Obrigatório) (número inteiro, valor padrão: 0) - O ID de usuário do WordPress do membro.

filiação (Obrigatório) (número inteiro, valor padrão: 0) - A ID de associação associada a essa transação.

cupom (número inteiro, valor padrão: 0) - A ID do cupom associada a essa transação.

status (cadeia de caracteres, valor padrão: pendente) - O status dessa transação.

resposta (string) - Um local onde você pode armazenar respostas POST ou GET do gateway de pagamento para referência posterior.

porta de entrada (string, valor padrão: manual) - O ID exclusivo do método de pagamento que pode ser encontrado na guia Pagamentos da página Configurações do MemberPress.

assinatura (número inteiro, valor padrão: 0) - O ID do CPT de assinatura recorrente associado a essa transação.

created_at (string, valor padrão: Current Timestamp) - A data em que a transação foi criada. Deve estar em um formato de data e hora do MySQL. Todas as datas armazenadas no banco de dados devem estar no fuso horário UTC.

expires_at (cadeia de caracteres, valor padrão: 0000-00-00 00:00:00) - A data em que a transação expirará. Ela deve estar em um formato de data e hora do MySQL. Todas as datas armazenadas no banco de dados devem estar no fuso horário UTC. Observação: Deixe o valor padrão para criar uma transação que dure por toda a vida (também conhecida como nunca expira).

send_welcome_email (bool, valor padrão: false) - Quando definido como true, acionará o envio de um e-mail de boas-vindas para o novo membro. Se o usuário já tiver recebido um e-mail de boas-vindas e a associação para a qual essa transação se destina não tiver seu próprio e-mail de boas-vindas configurado, nenhum e-mail será enviado.

send_receipt_email (bool, valor padrão: false) - Quando definido como true, acionará o envio de um e-mail de recibo de transação.

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
       -d amount="100.00" \
       -d total="100.00" \
       -d tax_amount="0.00" \
       -d tax_rate="0.000" \d
       -d tax_class=standard \d
       -d trans_num="ch_1EQdOLJT1LHvX6ILZhIzeboJ" \d
       -d status=complete \d
       -d gateway="peum51-1tc" \
       -d created_at="2019-04-18 16:47:21" \d
       -d expires_at="2019-05-18 23:59:59"

Resposta de amostra

{
  "membership": {
    "id": 15,
    "title": "Gold Membership" (Associação Gold),
    "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-01 15:03:22",
    "modified_gmt": "2019-04-01 21:03:22",
    "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-04-01",
    "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",
    "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": ""
    }
  },
  "cupom": "0",
  "subscription" (assinatura): {
    "coupon" (cupom): "0",
    "membership" (associação): "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
  },
  "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,
  "rebill": falso,
  "subscription_payment_index": 1,
  "commissions" (comissões): []
}

Excluir transação

Descrição

Exclui uma transação com o ID fornecido.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X DELETE "http://yourdomai.com/wp-json/mp/v1/transactions/199" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "membership": {
    "id": 15,
    "title": "Gold Membership" (Associação Gold),
    "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-01 15:03:22",
    "modified_gmt": "2019-04-01 21:03:22",
    "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-04-01",
    "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",
    "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": ""
    }
  },
  "cupom": "0",
  "subscription" (assinatura): {
    "coupon" (cupom): "0",
    "membership" (associação): "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
  },
  "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,
  "rebill": falso,
  "subscription_payment_index": 1,
  "commissions" (comissões): []
}

Transação de reembolso

Descrição

Reembolsar uma determinada transação.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/167/refund" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "message": "A transação foi reembolsada com sucesso",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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".
    },
    "member": {
      "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",
      "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": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "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": "cancelled" (cancelado),
      "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
    },
    "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": "refunded" (reembolsado),
    "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,
    "rebill": falso,
    "subscription_payment_index": 1,
    "commissions" (comissões): []
  }
}

Reembolso e cancelamento de transações

Descrição

Reembolsar uma determinada transação e cancelar sua assinatura associada.

Argumentos de pesquisa

Nenhum

Argumentos de atualização

Nenhum

Solicitação de amostra

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199/refund_and_cancel" \
       -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \

Resposta de amostra

{
  "message": "A transação foi reembolsada com sucesso e sua assinatura associada foi cancelada.",
  "data": {
    "membership": {
      "id": 15,
      "title": "Gold Membership" (Associação Gold),
      "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-01 15:03:22",
      "modified_gmt": "2019-04-01 21:03:22",
      "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": "Sign Up" (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-04-01",
      "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",
      "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": ""
      }
    },
    "cupom": "0",
    "subscription" (assinatura): {
      "coupon" (cupom): "0",
      "membership" (associação): "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
    },
    "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,
    "rebill": falso,
    "subscription_payment_index": 1,
    "commissions" (comissões): []
  }
}
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.