Menu supplémentaire

Achetez MemberPress dès aujourd'hui ! Commencez à être payé pour le contenu que vous créez ! Obtenir MemberPress maintenant

Outils du développeur Actions

Vue d'ensemble

Général

Abonnements

Les membres

Règles

Adhésions

Coupons

Transactions


Moi

Description

Test de l'authentification du point d'accès REST MemberPress. Renvoie un statut 200 en cas de succès et 401 en cas d'échec.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdoamin.com/wp-json/mp/v1/me" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

{
  "success" : vrai,
  "data" : {
    "username" : "nom d'utilisateur"
  }
}

Abonnement aux webhooks

Description

S'abonner à un ou à tous les webhooks de MemberPress Developer Tools. Renvoie une erreur 409 en cas d'échec.

Arguments de recherche

Aucun

Arguments de mise à jour

url (Requis) (string) - L'url où le webhook enverra la requête.

événement (Requis) (string) - Le Webhook sera déclenché par et enverra des données pour cet événement.

Demande d'échantillon

$ curl -X POST ""http://http://yourdomain.com/wp-json/mp/v1/webhooks/subscribe"" -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-ICI" \
       -d url="https://example.com" \
       -d event="transaction-completed"

Exemple de réponse

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

Désinscription des webhooks

Description

Se désabonner de n'importe quel webhook. Renvoie une erreur 409 en cas d'échec.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/webhooks/unsubscribe/:id" \N -H "MEMBERPRESS-API-KEY : API-KEY-HERE" (Clé de membre) \

Exemple de réponse

{ "success" : vrai }

Obtenir des abonnements

Description

Obtenir tous les abonnements sur la base des arguments de recherche fournis.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection. 

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

recherche (chaîne) - Limite les résultats à ceux qui correspondent à une chaîne.

membre (entier) - Limiter les résultats aux abonnements d'un membre spécifique.

l'adhésion (entier) - Limite les résultats aux abonnements d'un membre spécifique.

coupon (entier) - Limite les résultats aux abonnements créés avec un coupon spécifique.

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

[
  {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 56,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-18 16:47:14",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapiertest"
    },
    "id" : "69",
    "subscr_id" : "cus_EuSIHGllVD3168",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-04-18 16:47:19",
    "total" : "100,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 54,
      "email" : "buddy@test2.com",
      "nom d'utilisateur" : "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"
    },
    "id" : "67",
    "subscr_id" : "cus_EoskD8WRM2bxrG",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-04-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
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 267,
      "title" : "coupon testing",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-04-03 11:18:41",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-04-03 17:18:41",
      "modified" : "2019-04-04 10:58:44",
      "modified_gmt" : "2019-04-04 16:58:44",
      "group" : "0",
      "prix" : "9.99",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "90",
      "trial_amount" : "29.94",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "coupon testing",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 51,
      "email" : "coupon@testing4.com",
      "nom d'utilisateur" : "coupon@testing4.com",
      "nicename" : "coupontesting4-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-03 18:01:05",
      "prénom" : "coupon",
      "last_name" : "testing4",
      "display_name" : "coupon testing4"
    },
    "id" : "64",
    "subscr_id" : "cus_Eor77sLgMt4sIg",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "9.99",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "1",
    "trial_days" : "90",
    "trial_amount" : "29.94",
    "status" : "actif",
    "created_at" : "2019-04-03 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
  },
  {
    "coupon" : {
      "id" : 268,
      "coupon_code" : "3ITYMDZOI5",
      "date" : "2019-04-03 11:19:30",
      "status" : "publier",
      "auteur" : "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" : faux,
      "expires_on" : "0",
      "usage_count" : "2",
      "usage_amount" : "0",
      "discount_type" : "pourcentage",
      "discount_amount" : "100",
      "discount_mode" : "premier paiement",
      "trial_days" : "0",
      "trial_amount" : "0.00"
    },
    "membership" : {
      "id" : 267,
      "title" : "coupon testing",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-04-03 11:18:41",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-04-03 17:18:41",
      "modified" : "2019-04-04 10:58:44",
      "modified_gmt" : "2019-04-04 16:58:44",
      "group" : "0",
      "prix" : "9.99",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "90",
      "trial_amount" : "29.94",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "coupon testing",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 50,
      "email" : "coupon@testing3.com",
      "nom d'utilisateur" : "coupon@testing3.com",
      "nicename" : "coupontesting3-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-03 17:53:28",
      "prénom" : "coupon",
      "last_name" : "testing3",
      "display_name" : "coupon testing3"
    },
    "id" : "63",
    "subscr_id" : "cus_EoqzWnn2NY7UGL",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "9.99",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "1",
    "trial_days" : "30",
    "trial_amount" : "0.00",
    "status" : "actif",
    "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
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 267,
      "title" : "coupon testing",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-04-03 11:18:41",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-04-03 17:18:41",
      "modified" : "2019-04-04 10:58:44",
      "modified_gmt" : "2019-04-04 16:58:44",
      "group" : "0",
      "prix" : "9.99",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "90",
      "trial_amount" : "29.94",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "coupon testing",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 49,
      "email" : "coupon@testing2.com",
      "nom d'utilisateur" : "coupon@testing2.com",
      "nicename" : "coupontesting2-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-03 17:33:06",
      "prénom" : "coupon",
      "last_name" : "testing2",
      "display_name" : "coupon testing2"
    },
    "id" : "62",
    "subscr_id" : "cus_EoqfMhbLzIxdXZ",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "9.99",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "1",
    "trial_days" : "90",
    "trial_amount" : "29.94",
    "status" : "actif",
    "created_at" : "2019-04-03 17:33:31",
    "total" : "9,99",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  },
  {
    "coupon" : {
      "id" : 268,
      "coupon_code" : "3ITYMDZOI5",
      "date" : "2019-04-03 11:19:30",
      "status" : "publier",
      "auteur" : "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" : faux,
      "expires_on" : "0",
      "usage_count" : "2",
      "usage_amount" : "0",
      "discount_type" : "pourcentage",
      "discount_amount" : "100",
      "discount_mode" : "premier paiement",
      "trial_days" : "0",
      "trial_amount" : "0.00"
    },
    "membership" : {
      "id" : 267,
      "title" : "coupon testing",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-04-03 11:18:41",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-04-03 17:18:41",
      "modified" : "2019-04-04 10:58:44",
      "modified_gmt" : "2019-04-04 16:58:44",
      "group" : "0",
      "prix" : "9.99",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "90",
      "trial_amount" : "29.94",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "coupon testing",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 48,
      "email" : "coupon@testing.com",
      "nom d'utilisateur" : "coupon@testing.com",
      "nicename" : "coupontesting-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-03 17:21:50",
      "prénom" : "coupon",
      "last_name" : "testing",
      "display_name" : "coupon testing"
    },
    "id" : "61",
    "subscr_id" : "cus_EoqTynS7epcvBN",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "9.99",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "1",
    "trial_days" : "30",
    "trial_amount" : "0.00",
    "status" : "actif",
    "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
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 47,
      "email" : "buddy@test.com",
      "nom d'utilisateur" : "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"
    },
    "id" : "60",
    "subscr_id" : "cus_Eo9bZvhtSyBpFV",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "annulé",
    "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
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
      "email" : "zapier@test2.com",
      "username" : "zapiertest2",
      "nicename" : "zapiertest2",
      "url" : "http://zapier.test2.com",
      "message" : "",
      "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" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "annulé",
    "created_at" : "2019-03-15 20:26:28",
    "total" : "100.00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier@test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "Zapier Test"
    },
    "id" : "57",
    "subscr_id" : "mp-sub-5c8aa776bb275",
    "gateway" : {
      "name" : "Stripe",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "pending",
    "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" : null
  },
  {
    "coupon" : false,
    "membership" : {
      "id" : 250,
      "title" : "25 1",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-03-13 16:20:17",
      "status" : "publier",
      "author" : "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" : "252",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "25 1",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-03-13",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 45,
      "email" : "twenty@five.com",
      "nom d'utilisateur" : "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" : "Ma passerelle Stripe",
      "use_label" : true,
      "icon" : "http://yourdomain.comwp-content/plugins/memberpress/images/checkout/cards.png",
      "use_icon" : true,
      "desc" : "Payez avec votre carte de crédit via Stripe",
      "use_desc" : true,
      "id" : "peum51-1tc",
      "has_spc_form" : true,
      "settings" : {
        "gateway" : "MeprStripeGateway",
        "id" : "peum51-1tc",
        "label" : "Ma passerelle Stripe",
        "use_label" : true,
        "use_icon" : true,
        "use_desc" : true,
        "email" : "",
        "sandbox" : false,
        "force_ssl" : false,
        "debug" : false,
        "test_mode" : "on",
        "use_stripe_checkout" : false,
        "churn_buster_enabled" : false,
        "churn_buster_uuid" : "",
        "api_keys" : {
          "test" : {
            "public" : "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",
        "process-payments",
        "process-refunds",
        "créer des abonnements",
        "annuler les abonnements",
        "mise à jour des abonnements",
        "suspendre les abonnements",
        "resume-subscriptions",
        "send-cc-expirations"
      ]
    },
    "prix" : "25.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "annulé",
    "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" : null
  }
]

Obtenir un abonnement

Description

Obtenir un abonnement avec un identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions/59" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

{
  "coupon" : false,
  "membership" : {
    "id" : 15,
    "title" : "Adhésion en or",
    "content" : "",
    "excerpt" : "",
    "date" : "2018-08-30 16:10:22",
    "status" : "publier",
    "author" : "2",
    "date_gmt" : "2018-08-30 16:10:22",
    "modified" : "2019-03-14 13:10:21",
    "modified_gmt" : "2019-03-14 19:10:21",
    "group" : "17",
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "2",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Adhésion en or",
    "pricing_show_price" : true,
    "pricing_display" : "custom",
    "custom_price" : "Pricing",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "Ceci est un test",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-03-14",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : "1",
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : "1",
    "custom_payment_methods" : [
      "peum51-1tc"
    ],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
  },
  "membre" : {
    "id" : 46,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapier@test.com",
    "nicename" : "zapiertest-com",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-03-19 16:48:20",
    "first_name" : "Zapier",
    "last_name" : "test",
    "display_name" : "zapier@test.com"
  },
  "id" : "59",
  "subscr_id" : "cus_EjDYhKuKyRY5N2",
  "gateway" : {
    "name" : "Stripe",
    "label" : "Ma passerelle Stripe",
    "use_label" : true,
    "icon" : "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png",
    "use_icon" : true,
    "desc" : "Payez avec votre carte de crédit via Stripe",
    "use_desc" : true,
    "id" : "peum51-1tc",
    "has_spc_form" : true,
    "settings" : {
      "gateway" : "MeprStripeGateway",
      "id" : "peum51-1tc",
      "label" : "Ma passerelle Stripe",
      "use_label" : true,
      "use_icon" : true,
      "use_desc" : true,
      "email" : "",
      "sandbox" : false,
      "force_ssl" : false,
      "debug" : false,
      "test_mode" : "on",
      "use_stripe_checkout" : false,
      "churn_buster_enabled" : false,
      "churn_buster_uuid" : "",
      "api_keys" : {
        "test" : {
          "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
        },
        "live" : {
          "public" : "",
          "secret" : ""
        }
      },
      "saved" : "1",
      "public_key" : "pk_test_99NqpKsIsKWcjE2cgvKViV99",
        "secret_key" : "sk_test_99WXy9TgeQGH47NMkNSnSd99"
    },
    "capabilities" : [
      "process-credit-cards",
      "process-payments",
      "process-refunds",
      "créer des abonnements",
      "annuler les abonnements",
      "mise à jour des abonnements",
      "suspendre les abonnements",
      "resume-subscriptions",
      "send-cc-expirations"
    ]
  },
  "prix" : "100.00",
  "période" : "1",
  "period_type" : "mois",
  "limit_cycles" : "0",
  "limit_cycles_num" : "2",
  "limit_cycles_action" : "expire",
  "prorated_trial" : "0",
  "trial" : "0",
  "trial_days" : "0",
  "trial_amount" : "0.00",
  "status" : "annulé",
  "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
}

Créer un abonnement

Description

Créer un abonnement avec les valeurs de champ données.

Arguments de recherche

Aucun

Arguments de mise à jour

subscr_id (chaîne, valeur par défaut : mp-sub-xxx...) - Le numéro d'abonnement récurrent. Pour que les factures récurrentes puissent être suivies, il doit s'agir du numéro d'abonnement exact généré par la passerelle de paiement pour cet abonnement.

réponse (chaîne) - Un endroit où vous pouvez stocker les réponses POST ou GET de la passerelle de paiement pour référence ultérieure.

passerelle (chaîne, valeur par défaut : manuel) - L'identifiant unique de la méthode de paiement qui se trouve dans l'onglet paiements de la page Paramètres de MemberPress.

membre (Obligatoire) (entier, valeur par défaut : 0) - L'identifiant WordPress du membre.

l'adhésion (Requis) (entier, valeur par défaut : 0) - L'identifiant de l'adhésion à laquelle cet abonnement est destiné.

coupon (entier, valeur par défaut : 0) - L'ID du coupon utilisé pour cet abonnement.

prix (décimal, valeur par défaut : 0.00) - Le montant du sous-total de l'abonnement.

période (entier, valeur par défaut : 1) - La période pour les cycles de facturation de l'abonnement. Voir la documentation sur les abonnements pour plus d'informations.

type_de_période (string, valeur par défaut : lifetime) - Le type de période de facturation. Voir la documentation sur les adhésions pour plus d'informations.

cycles_limites (bool, valeur par défaut : false) - Limiter ou non les cycles de facturation pour les paiements récurrents. Si la valeur est fixée à true, MemberPress annulera les paiements récurrents une fois que le montant limit_cycles_num aura été atteint.

nombre_de_cycles_limite (entier, valeur par défaut : 2) - Si limit_cycles est vrai, ce nombre est utilisé pour déterminer combien de facturations récurrentes doivent avoir lieu avant que MemberPress n'annule automatiquement l'abonnement. Si la valeur est fixée à 1, l'abonnement sera annulé immédiatement après le premier paiement, mais le membre conservera l'accès jusqu'à l'expiration de sa transaction. 

action_limite_cycles (chaîne, valeur par défaut : expire) - Si l'option limit_cycles est activée, elle détermine l'accès du membre lorsque son abonnement a atteint sa limite limit_cycles_num et qu'il a été annulé. Si la valeur est "expire", le membre perdra son accès après l'expiration de sa dernière transaction. Si la valeur est "lifetime", le membre bénéficiera d'un accès à vie.

procès (bool, valeur par défaut : false) - Indique si une période d'essai est prévue pour cet abonnement. Les périodes d'essai fonctionnent UNIQUEMENT pour les paiements auto-récurrents.

jours_d'essai (entier, valeur par défaut : 0) - Nombre de jours que doit durer la période d'essai avant le début des cycles de facturation normaux.

montant de l'essai (décimal, valeur par défaut : 0.00) - Si une période d'essai est activée, ceci indique combien l'utilisateur a payé pour la période d'essai.

statut (Requis) (string, valeur par défaut : pending) - Statut de facturation actuel de l'abonnement.

date_de_création (Requis) (chaîne, valeur par défaut : null) - La date de création de l'abonnement. Elle doit être au format datetime de MySQL ou au format date('c') de PHP. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC.

total (décimal, valeur par défaut : 0.00) - Montant total de l'abonnement (taxes comprises).

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.

Demande d'échantillon

$ 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

Exemple de réponse

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

Mise à jour de l'abonnement

Description

Update a Subscription with the given id and field values.

Arguments de recherche

Aucun

Arguments de mise à jour

subscr_id (chaîne, valeur par défaut : mp-sub-xxx...) - Le numéro d'abonnement récurrent. Pour que les factures récurrentes puissent être suivies, il doit s'agir du numéro d'abonnement exact généré par la passerelle de paiement pour cet abonnement.

réponse (chaîne) - Un endroit où vous pouvez stocker les réponses POST ou GET de la passerelle de paiement pour référence ultérieure.

passerelle (chaîne, valeur par défaut : manuel) - L'identifiant unique de la méthode de paiement qui se trouve dans l'onglet paiements de la page Paramètres de MemberPress.

membre (Obligatoire) (entier, valeur par défaut : 0) - L'identifiant WordPress du membre.

l'adhésion (Requis) (entier, valeur par défaut : 0) - L'identifiant de l'adhésion à laquelle cet abonnement est destiné.

coupon (entier, valeur par défaut : 0) - L'ID du coupon utilisé pour cet abonnement.

prix (décimal, valeur par défaut : 0.00) - Le montant du sous-total de l'abonnement.

période (entier, valeur par défaut : 1) - La période pour les cycles de facturation de l'abonnement. Voir la documentation sur les abonnements pour plus d'informations.

type_de_période (string, valeur par défaut : lifetime) - Le type de période de facturation. Voir la documentation sur les adhésions pour plus d'informations.

cycles_limites (bool, valeur par défaut : false) - Limiter ou non les cycles de facturation pour les paiements récurrents. Si la valeur est fixée à true, MemberPress annulera les paiements récurrents une fois que le montant limit_cycles_num aura été atteint.

nombre_de_cycles_limite (entier, valeur par défaut : 2) - Si limit_cycles est vrai, ce nombre est utilisé pour déterminer combien de facturations récurrentes doivent avoir lieu avant que MemberPress n'annule automatiquement l'abonnement. Si la valeur est fixée à 1, l'abonnement sera annulé immédiatement après le premier paiement, mais le membre conservera l'accès jusqu'à l'expiration de sa transaction. 

action_limite_cycles (chaîne, valeur par défaut : expire) - Si l'option limit_cycles est activée, elle détermine l'accès du membre lorsque son abonnement a atteint sa limite limit_cycles_num et qu'il a été annulé. Si la valeur est "expire", le membre perdra son accès après l'expiration de sa dernière transaction. Si la valeur est "lifetime", le membre bénéficiera d'un accès à vie.

procès (bool, valeur par défaut : false) - Indique si une période d'essai est prévue pour cet abonnement. Les périodes d'essai fonctionnent UNIQUEMENT pour les paiements auto-récurrents.

jours_d'essai (entier, valeur par défaut : 0) - Nombre de jours que doit durer la période d'essai avant le début des cycles de facturation normaux.

montant de l'essai (décimal, valeur par défaut : 0.00) - Si une période d'essai est activée, ceci indique combien l'utilisateur a payé pour la période d'essai.

statut (Requis) (string, valeur par défaut : pending) - Statut de facturation actuel de l'abonnement.

date_de_création (Requis) (chaîne, valeur par défaut : null) - La date de création de l'abonnement. Elle doit être au format datetime de MySQL ou au format date('c') de PHP. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC.

total (décimal, valeur par défaut : 0.00) - Montant total de l'abonnement (taxes comprises).

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.

Demande d'échantillon

$ 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

Exemple de réponse

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

Supprimer l'abonnement

Description

Delete a Subscription with the given id.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Annuler l'abonnement

Description

Cancel a given subscription.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Expiration de l'abonnement

Description

Expire all unexpired transactions associated with the Subscription.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Obtenir des membres

Description

Get all Members based on the search arguments provided.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection. 

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

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

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Obtenir un membre

Description

Get one Member with a given id.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Créer un membre

Description

Create a Member with the given field values.

Arguments de recherche

Aucun

Arguments de mise à jour

prénom (string) – The User's First Name. 

nom de famille (string) – The User's Last Name.

courriel (Required) (string) – The User's Email Address.

nom d'utilisateur (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.

mot de passe (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.

transaction (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.

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

adresse2 (string, default value: empty) – The user's address line 2.

ville (string, default value: empty) – The user's city.

État (string, default value: empty) – The user's state.

fermeture éclair (string, default value: empty) – The user's zip.

pays (string, default value: empty) – The user's country.

usermeta*** more info

Demande d'échantillon

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

Exemple de réponse

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

Mise à jour Membre

Description

Update a Member with the given id and field values.

Arguments de recherche

Aucun

Arguments de mise à jour

prénom (string) – The User's First Name. 

nom de famille (string) – The User's Last Name.

courriel (Required) (string) – The User's Email Address.

nom d'utilisateur (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.

mot de passe (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.

transaction (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.

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

adresse2 (string, default value: empty) – The user's address line 2.

ville (string, default value: empty) – The user's city.

État (string, default value: empty) – The user's state.

fermeture éclair (string, default value: empty) – The user's zip.

pays (string, default value: empty) – The user's country.

usermeta*** more info

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/members/56" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \
       -d email="zapier@test.com" \
       -d username=zapiertest \N -d first_name=zapiertest \N
       -d first_name=zapier \N -d last_name=test \N
       -d last_name=test

Exemple de réponse

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

Supprimer un membre

Description

Supprime un membre avec l'identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Obtenir des règles

Description

Obtenir toutes les règles basées sur les arguments de recherche fournis.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection. 

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

recherche (chaîne) - Limite les résultats à ceux qui correspondent à une chaîne.

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

[
  {
    "id" : 227,
    "title" : "Une seule page : Page de test",
    "date" : "2019-02-20 10:34:06",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test"
    },
    "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" : false,
    "drip_enabled" : false,
    "drip_amount" : "0",
    "drip_unit" : "jours",
    "drip_after" : "registres",
    "drip_after_fixed" : "",
    "expires_enabled" : faux,
    "expires_amount" : "0",
    "expires_unit" : "jours",
    "expires_after" : "registres",
    "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" : "Partiel :",
    "date" : "2018-12-14 14:57:43",
    "status" : "publish",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test"
    },
    "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" : false,
    "drip_amount" : "0",
    "drip_unit" : "jours",
    "drip_after" : "registres",
    "drip_after_fixed" : "",
    "expires_enabled" : faux,
    "expires_amount" : "0",
    "expires_unit" : "jours",
    "expires_after" : "registres",
    "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" : "Un seul forum : Forum 1",
    "date" : "2018-09-13 16:41:59",
    "status" : "publier",
    "auteur" : {
      "id" : 2,
      "email" : "",
      "username" : "demo",
      "nicename" : "demo",
      "url" : "",
      "message" : "",
      "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" : false,
    "drip_amount" : "0",
    "drip_unit" : "jours",
    "drip_after" : "registres",
    "drip_after_fixed" : "",
    "expires_enabled" : faux,
    "expires_amount" : "0",
    "expires_unit" : "jours",
    "expires_after" : "registres",
    "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" : "Une seule page : Page d'exemple",
    "date" : "2018-08-30 16:14:57",
    "status" : "publier",
    "author" : {
      "id" : 2,
      "email" : "",
      "username" : "demo",
      "nicename" : "demo",
      "url" : "",
      "message" : "",
      "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" : false,
    "drip_amount" : "0",
    "drip_unit" : "jours",
    "drip_after" : "registres",
    "drip_after_fixed" : "",
    "expires_enabled" : faux,
    "expires_amount" : "0",
    "expires_unit" : "jours",
    "expires_after" : "registres",
    "expires_after_fixed" : "",
    "unauth_excerpt_type" : "default",
    "unauth_excerpt_size" : "100",
    "unauth_message_type" : "default",
    "unauth_message" : "",
    "unauth_login" : "default",
    "auto_gen_title" : "1"
  }
]

Obtenir la règle

Description

Obtenir une règle avec un identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdomain.com/wp-json/mp/v1/rules/227" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

{
  "id" : 227,
  "title" : "Une seule page : Page de test",
  "date" : "2019-02-20 10:34:06",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : false,
  "drip_enabled" : false,
  "drip_amount" : "0",
  "drip_unit" : "jours",
  "drip_after" : "registres",
  "drip_after_fixed" : "",
  "expires_enabled" : faux,
  "expires_amount" : "0",
  "expires_unit" : "jours",
  "expires_after" : "registres",
  "expires_after_fixed" : "",
  "unauth_excerpt_type" : "default",
  "unauth_excerpt_size" : "100",
  "unauth_message_type" : "default",
  "unauth_message" : "",
  "unauth_login" : "default",
  "auto_gen_title" : "1"
}

Créer une règle

Description

Créer une règle avec les valeurs de champ données.

Arguments de recherche

Aucun

Arguments de mise à jour

type_de_règle (chaîne, valeur par défaut : tous) - Le type de règle que vous créez.

contenu_de_la_règle (chaîne) - L'ID du type de règle à protéger. Par exemple, si vous protégez une page unique, vous devez définir l'ID de cette page. Si vous protégez une catégorie entière, vous devez définir l'ID de cette catégorie.

is_rule_content_regex (bool, valeur par défaut : false) - Indique s'il faut utiliser la correspondance par expression régulière pour les types de règles "custom" (alias Custom URI).

membres_autorisés (Obligatoire) (tableau, valeur par défaut : []) - Un tableau d'identifiants de membres qui permettent au membre d'accéder au contenu protégé par cette règle.

drip_enabled (bool, valeur par défaut : false) - Indique si l'égouttement doit être activé sur cette règle.

montant du goutte-à-goutte (entier, valeur par défaut : 1) - Le nombre d'unités pour retarder l'égouttage.

Unité de goutte à goutte (chaîne de caractères, valeur par défaut : jours) - L'unité dans laquelle le contenu doit s'écouler.

goutte_à_goutte (chaîne, valeur par défaut : registres) - La date sur laquelle se base l'égouttage.

goutte_après_fixe (chaîne) - Si drip_after est réglé sur "fixed", cette valeur est obligatoire et doit être une date valide dans le futur que la fonction strtotime() de PHP peut interpréter.

expires_enabled (bool, valeur par défaut : false) - Indique si l'expiration du contenu doit être activée pour cette règle.

montant_expiré (entier, valeur par défaut : 1) - Le nombre d'unités pour retarder l'expiration du contenu.

expire_unit (chaîne, valeur par défaut : jours) - Unité d'expiration du contenu.

expire_after (chaîne, valeur par défaut : registres) - La date sur laquelle se base l'expiration du contenu.

expires_after_fixed (chaîne) - Si expires_after est défini à "fixe", alors cette valeur est requise et doit être une date valide dans le futur que la fonction strtotime() de PHP peut interpréter.

unauth_excerpt_type (chaîne, valeur par défaut : default) - Le type d'extrait du contenu protégé à montrer aux visiteurs non autorisés. Si la valeur est différente de "default", le comportement global défini dans les options MemberPress sera remplacé pour tout contenu protégé par cette règle.

unauth_excerpt_size (entier, valeur par défaut : 100) - Ce paramètre n'est utilisé que si le paramètre unauth_exceprt_type est défini sur "custom". Il affichera X caractères du contenu protégé actuel en tant qu'extrait pour les visiteurs non autorisés.

unath_message_type (chaîne, valeur par défaut : default) - Type de message à afficher aux utilisateurs non autorisés qui tentent de consulter le contenu protégé par cette règle. Si la valeur est différente de "default", le comportement global défini dans les options MemberPress sera remplacé pour tout contenu protégé par cette règle.

message_non_auth (chaîne) - Si le paramètre unauth_message_type est défini sur "custom", cette chaîne sera affichée en tant que message que les utilisateurs non autorisés verront lorsqu'ils essaieront de voir le contenu protégé par cette règle.

unauth_login (chaîne, valeur par défaut : default) - Afficher/masquer ou non le formulaire de connexion, ou laisser les paramètres globaux par défaut dans les options MemberPress.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \
       -d rule_type=single_page \N -d rule_content=225 \N
       -d rule_content=225 \N- -d drip_unit=225 \N- -d drip_unit=225
       -d drip_unit=jours \N -d drip_after=registres \N
       -d drip_after=registers \N -d drip_after=enregistrements \N
       -d expires_unit=days \N- -d expires_after=registers \N- -d expires_unit=days
       -d expires_after=registers \N- -d drip_unit=days
       -d unauth_excerpt_type=default \N- -d unauth_excerpt_type=default
       -d unauth_excerpt_size=100 \N - unauth_excerpt_size=100
       -d unauth_message_type=default \N - unauth_login_type=default \N
       -d unauth_login=default

Exemple de réponse

{
  "id" : 227,
  "title" : "Une seule page : Page de test",
  "date" : "2019-02-20 10:34:06",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : false,
  "drip_enabled" : false,
  "drip_amount" : "0",
  "drip_unit" : "jours",
  "drip_after" : "registres",
  "drip_after_fixed" : "",
  "expires_enabled" : faux,
  "expires_amount" : "0",
  "expires_unit" : "jours",
  "expires_after" : "registres",
  "expires_after_fixed" : "",
  "unauth_excerpt_type" : "default",
  "unauth_excerpt_size" : "100",
  "unauth_message_type" : "default",
  "unauth_message" : "",
  "unauth_login" : "default",
  "auto_gen_title" : "1"
}

Règle de mise à jour

Description

Mise à jour d'une règle avec l'identifiant et les valeurs de champ donnés.

Arguments de recherche

Aucun

Arguments de mise à jour

type_de_règle (chaîne, valeur par défaut : tous) - Le type de règle que vous créez.

contenu_de_la_règle (chaîne) - L'ID du type de règle à protéger. Par exemple, si vous protégez une page unique, vous devez définir l'ID de cette page. Si vous protégez une catégorie entière, vous devez définir l'ID de cette catégorie.

is_rule_content_regex (bool, valeur par défaut : false) - Indique s'il faut utiliser la correspondance par expression régulière pour les types de règles "custom" (alias Custom URI).

membres_autorisés (Obligatoire) (tableau, valeur par défaut : []) - Un tableau d'identifiants de membres qui permettent au membre d'accéder au contenu protégé par cette règle.

drip_enabled (bool, valeur par défaut : false) - Indique si l'égouttement doit être activé sur cette règle.

montant du goutte-à-goutte (entier, valeur par défaut : 1) - Le nombre d'unités pour retarder l'égouttage.

Unité de goutte à goutte (chaîne de caractères, valeur par défaut : jours) - L'unité dans laquelle le contenu doit s'écouler.

goutte_à_goutte (chaîne, valeur par défaut : registres) - La date sur laquelle se base l'égouttage.

goutte_après_fixe (chaîne) - Si drip_after est réglé sur "fixed", cette valeur est obligatoire et doit être une date valide dans le futur que la fonction strtotime() de PHP peut interpréter.

expires_enabled (bool, valeur par défaut : false) - Indique si l'expiration du contenu doit être activée pour cette règle.

montant_expiré (entier, valeur par défaut : 1) - Le nombre d'unités pour retarder l'expiration du contenu.

expire_unit (chaîne, valeur par défaut : jours) - Unité d'expiration du contenu.

expire_after (chaîne, valeur par défaut : registres) - La date sur laquelle se base l'expiration du contenu.

expires_after_fixed (chaîne) - Si expires_after est défini à "fixe", alors cette valeur est requise et doit être une date valide dans le futur que la fonction strtotime() de PHP peut interpréter.

unauth_excerpt_type (chaîne, valeur par défaut : default) - Le type d'extrait du contenu protégé à montrer aux visiteurs non autorisés. Si la valeur est différente de "default", le comportement global défini dans les options MemberPress sera remplacé pour tout contenu protégé par cette règle.

unauth_excerpt_size (entier, valeur par défaut : 100) - Ce paramètre n'est utilisé que si le paramètre unauth_exceprt_type est défini sur "custom". Il affichera X caractères du contenu protégé actuel en tant qu'extrait pour les visiteurs non autorisés.

unath_message_type (chaîne, valeur par défaut : default) - Type de message à afficher aux utilisateurs non autorisés qui tentent de consulter le contenu protégé par cette règle. Si la valeur est différente de "default", le comportement global défini dans les options MemberPress sera remplacé pour tout contenu protégé par cette règle.

message_non_auth (chaîne) - Si le paramètre unauth_message_type est défini sur "custom", cette chaîne sera affichée en tant que message que les utilisateurs non autorisés verront lorsqu'ils essaieront de voir le contenu protégé par cette règle.

unauth_login (chaîne, valeur par défaut : default) - Afficher/masquer ou non le formulaire de connexion, ou laisser les paramètres globaux par défaut dans les options MemberPress.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules/227" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \
       -d rule_type=single_page \N -d rule_content=225 \N
       -d rule_content=225 \N- -d drip_unit=225 \N- -d drip_unit=225
       -d drip_unit=jours \N -d drip_after=registres \N
       -d drip_after=registers \N -d drip_after=enregistrements \N
       -d expires_unit=days \N- -d expires_after=registers \N- -d expires_unit=days
       -d expires_after=registers \N- -d drip_unit=days
       -d unauth_excerpt_type=default \N- -d unauth_excerpt_type=default
       -d unauth_excerpt_size=100 \N - unauth_excerpt_size=100
       -d unauth_message_type=default \N - unauth_login_type=default \N
       -d unauth_login=default

Exemple de réponse

{
  "id" : 227,
  "title" : "Une seule page : Page de test",
  "date" : "2019-02-20 10:34:06",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : false,
  "drip_enabled" : false,
  "drip_amount" : "0",
  "drip_unit" : "jours",
  "drip_after" : "registres",
  "drip_after_fixed" : "",
  "expires_enabled" : faux,
  "expires_amount" : "0",
  "expires_unit" : "jours",
  "expires_after" : "registres",
  "expires_after_fixed" : "",
  "unauth_excerpt_type" : "default",
  "unauth_excerpt_size" : "100",
  "unauth_message_type" : "default",
  "unauth_message" : "",
  "unauth_login" : "default",
  "auto_gen_title" : "1"
}

Supprimer la règle

Description

Supprime une règle avec l'identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

{
  "id" : 227,
  "title" : "Une seule page : Page de test",
  "date" : "2019-02-20 10:34:06",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : false,
  "drip_enabled" : false,
  "drip_amount" : "0",
  "drip_unit" : "jours",
  "drip_after" : "registres",
  "drip_after_fixed" : "",
  "expires_enabled" : faux,
  "expires_amount" : "0",
  "expires_unit" : "jours",
  "expires_after" : "registres",
  "expires_after_fixed" : "",
  "unauth_excerpt_type" : "default",
  "unauth_excerpt_size" : "100",
  "unauth_message_type" : "default",
  "unauth_message" : "",
  "unauth_login" : "default",
  "auto_gen_title" : "1"
}

Obtenir des adhésions

Description

Obtenir toutes les adhésions sur la base des arguments de recherche fournis.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection. 

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

recherche (chaîne) - Limite les résultats à ceux qui correspondent à une chaîne.

groupe (entier) - Limiter les résultats à ceux qui correspondent à un groupe spécifique. 

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

[
  {
    "id" : 274,
    "title" : "3 day free trial",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-04-10 12:05:01",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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",
    "prix" : "25.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : "1",
    "trial_days" : "3",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Essai gratuit de 3 jours",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-04-10",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 271,
    "title" : "Adhésion d'un jour",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-04-04 12:14:54",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "date_gmt" : "2019-04-04 18:14:54",
    "modified" : "2019-04-04 12:14:54",
    "modified_gmt" : "2019-04-04 18:14:54",
    "group" : "0",
    "prix" : "10.00",
    "période" : "1",
    "period_type" : "lifetime",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Adhésion d'un jour",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "delay",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-04-04",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 267,
    "title" : "coupon testing",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-04-03 11:18:41",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "date_gmt" : "2019-04-03 17:18:41",
    "modified" : "2019-04-04 10:58:44",
    "modified_gmt" : "2019-04-04 16:58:44",
    "group" : "0",
    "prix" : "9.99",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : "1",
    "trial_days" : "90",
    "trial_amount" : "29.94",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "coupon testing",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-04-04",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 251,
    "title" : "25 2",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-03-13 16:20:43",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "groupe 25",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-03-13 16:21:20",
      "status" : "publier",
      "author" : "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" : faux,
      "disable_change_plan_popup" : false,
      "is_upgrade_path" : "1",
      "upgrade_path_reset_period" : false,
      "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" : false,
      "custom_template" : "template-sitemap.php"
    },
    "prix" : "10000.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "1",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "25 2",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-03-20",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 250,
    "title" : "25 1",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-03-13 16:20:17",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "groupe 25",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-03-13 16:21:20",
      "status" : "publier",
      "author" : "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" : faux,
      "disable_change_plan_popup" : false,
      "is_upgrade_path" : "1",
      "upgrade_path_reset_period" : false,
      "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" : false,
      "custom_template" : "template-sitemap.php"
    },
    "prix" : "25.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "25 1",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-03-13",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 247,
    "title" : "274 année",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-03-04 15:47:14",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
      "author" : "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" : faux,
      "disable_change_plan_popup" : false,
      "is_upgrade_path" : "1",
      "upgrade_path_reset_period" : false,
      "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" : false,
      "custom_template" : "template-sitemap.php"
    },
    "prix" : "274.00",
    "période" : "1",
    "period_type" : "années",
    "signup_button_text" : "Sign Up",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "1",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "274 par an",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-03-04",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 246,
    "title" : "264 one time",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-03-04 15:46:37",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
      "author" : "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" : faux,
      "disable_change_plan_popup" : false,
      "is_upgrade_path" : "1",
      "upgrade_path_reset_period" : false,
      "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" : false,
      "custom_template" : "template-sitemap.php"
    },
    "prix" : "264.00",
    "période" : "1",
    "period_type" : "lifetime",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "264 une fois",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "delay",
    "expire_after" : "1",
    "expire_unit" : "années",
    "expire_fixed" : "2019-03-04",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 210,
    "title" : "1 day trial",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-02-07 12:39:50",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "date_gmt" : "2019-02-07 19:39:50",
    "modified" : "2019-02-07 12:41:11",
    "modified_gmt" : "2019-02-07 19:41:11",
    "group" : "0",
    "prix" : "10.00",
    "période" : "1",
    "period_type" : "lifetime",
    "signup_button_text" : "Sign Up",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Essai gratuit de 14 jours",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "delay",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-02-07",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 209,
    "title" : "Période d'essai double inscription",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-02-06 15:14:14",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "date_gmt" : "2019-02-06 22:14:14",
    "modified" : "2019-02-25 14:13:29",
    "modified_gmt" : "2019-02-25 21:13:29",
    "group" : "0",
    "prix" : "10.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "1",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Période d'essai double inscription",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "delay",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-02-25",
    "tax_exempt" : faux,
    "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" : "Vous n'avez pas accès à l'achat de cet article."
  },
  {
    "id" : 196,
    "title" : "coupon test",
    "content" : "",
    "excerpt" : "",
    "date" : "2019-01-10 15:36:20",
    "status" : "publier",
    "author" : {
      "id" : 5,
     "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "date_gmt" : "2019-01-10 22:36:20",
    "modified" : "2019-02-19 12:15:59",
    "modified_gmt" : "2019-02-19 19:15:59",
    "group" : "0",
    "price" : "100.00",
    "période" : "1",
    "period_type" : "années",
    "signup_button_text" : "Sign Up",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : "1",
    "trial_days" : "14",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "0",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "coupon test",
    "pricing_show_price" : true,
    "pricing_display" : "auto",
    "custom_price" : "",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-02-19",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : false,
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : false,
    "custom_payment_methods" : [],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  }
]

Obtenir l'adhésion

Description

Obtenir une adhésion avec un identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdomain.com/wp-json/mp/v1/memberships/274" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

{
  "id" : 274,
  "title" : "Essai gratuit de 3 jours",
  "content" : "",
  "excerpt" : "",
  "date" : "2019-04-10 12:05:01",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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",
  "prix" : "25.00",
  "période" : "1",
  "period_type" : "mois",
  "signup_button_text" : "S'inscrire",
  "limit_cycles" : false,
  "limit_cycles_num" : "2",
  "limit_cycles_action" : "expire",
  "trial" : "1",
  "trial_days" : "3",
  "trial_amount" : "0.00",
  "trial_once" : "1",
  "group_order" : "0",
  "is_highlighted" : faux,
  "plan_code" : "",
  "pricing_title" : "Essai gratuit de 3 jours",
  "pricing_show_price" : true,
  "pricing_display" : "auto",
  "custom_price" : "",
  "pricing_heading_txt" : "",
  "pricing_footer_txt" : "",
  "pricing_button_txt" : "S'inscrire",
  "pricing_button_position" : "footer",
  "pricing_benefits" : [
    ""
  ],
  "register_price_action" : "default",
  "register_price" : "",
  "thank_you_page_enabled" : false,
  "thank_you_page_type" : "message",
  "thank_you_message" : "",
  "thank_you_page_id" : "0",
  "custom_login_urls_enabled" : false,
  "custom_login_urls_default" : "",
  "custom_login_urls" : [],
  "expire_type" : "none",
  "expire_after" : "1",
  "expire_unit" : "jours",
  "expire_fixed" : "2019-04-10",
  "tax_exempt" : faux,
  "allow_renewal" : false,
  "access_url" : "",
  "disable_address_fields" : false,
  "simultaneous_subscriptions" : false,
  "use_custom_template" : false,
  "custom_template" : "template-sitemap.php",
  "customize_payment_methods" : false,
  "custom_payment_methods" : [],
  "customize_profile_fields" : false,
  "custom_profile_fields" : [],
  "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
}

Créer une adhésion

Description

Créer une adhésion avec les valeurs de champ données.

Arguments de recherche

Aucun

Arguments de mise à jour

titre (Require) (string) - Le titre de l'adhésion.

prix (décimal, valeur par défaut : 0.00) - Le prix de base de l'adhésion.

période (entier, valeur par défaut : 1) - Période pour les cycles de facturation de l'adhésion. Si vous souhaitez facturer le client une fois par trimestre, vous devez définir cette valeur sur 3 et le type de période sur mois. Il existe certaines limitations en fonction du type de période.

type_de_période (chaîne, valeur par défaut : durée de vie) - Le type de période de facturation. Pour les paiements non récurrents, cette valeur doit toujours être "à vie". Les autres valeurs possibles sont "semaines", "mois" et "années". Il existe certaines limitations en fonction de la période.

texte_du_bouton_d'inscription (chaîne, valeur par défaut : S'inscrire) - Texte affiché sur le bouton d'envoi du formulaire d'inscription de l'adhérent.

cycles_limites (bool, valeur par défaut : false) - Limiter ou non les cycles de facturation pour les paiements récurrents. Si la valeur est fixée à true, MemberPress annulera les paiements récurrents une fois que le montant limit_cycles_num aura été atteint.

nombre_de_cycles_limite (entier, valeur par défaut : 2) - Si limit_cycles est vrai, ce nombre est utilisé pour déterminer combien de facturations récurrentes doivent avoir lieu avant que MemberPress n'annule automatiquement l'abonnement. Si la valeur est fixée à 1, l'abonnement sera annulé immédiatement après le premier paiement, mais le membre conservera l'accès jusqu'à l'expiration de sa transaction.

action_limite_cycles (chaîne, valeur par défaut : expire) - Si l'option limit_cycles est activée, elle détermine l'accès du membre lorsque son abonnement a atteint sa limite limit_cycles_num et qu'il a été annulé. Si la valeur est "expire", le membre perdra son accès après l'expiration de sa dernière transaction. Si la valeur est "lifetime", le membre bénéficiera d'un accès à vie.

procès (bool, valeur par défaut : false) - Indique s'il y aura ou non une période d'essai pour cette adhésion. Les périodes d'essai ne fonctionnent QUE pour les paiements automatiques.

jours_d'essai (entier, valeur par défaut : 0) - Nombre de jours que doit durer la période d'essai avant le début des cycles de facturation normaux.

montant de l'essai (décimal, valeur par défaut : 0.00) - Si une période d'essai est activée, cette valeur indique le montant que l'utilisateur paiera pour la période d'essai.

groupe (entier, valeur par défaut : 0) - L'ID d'un groupe MemberPress auquel cette adhésion doit appartenir. La valeur par défaut est aucun groupe.

ordre_de_groupe (entier, valeur par défaut : 0) - Si l'adhésion appartient à un groupe, cela détermine son emplacement sur la page du groupe et est également utilisé pour déterminer les chemins de mise à niveau et de rétrogradation.

est_surligné (bool, valeur par défaut : false) - Mise en évidence ou non de cette adhésion dans le groupe. Cette option ajoute des classes CSS supplémentaires pour que la boîte de prix/caractéristiques du groupe se distingue des autres.

titre_de_la_tarification (chaîne) - Titre qui s'affiche en haut de la boîte de tarification sur la page d'un groupe.

affichage des prix (chaîne, valeur par défaut : auto) - Comment afficher le prix dans le cadre de tarification de cette adhésion sur la page du groupe.

texte de l'en-tête de la tarification (chaîne) - Un titre à afficher dans cette boîte de tarification. S'affiche en dessous du prix, mais au-dessus de la liste des caractéristiques/avantages.

pricing_footer_txt (chaîne) - Affiche un message au bas de la boîte de prix. S'affiche juste au-dessus du bouton d'achat.

pricing_button_txt (chaîne) - Le texte du bouton d'achat.

avantages_de_la_tarification (tableau, valeur par défaut : []) - Un tableau de chaînes de caractères. Chaque chaîne sera affichée en tant qu'élément de ligne dans la boîte de tarification sur la page du groupe.

enregistrer_prix (chaîne) - Chaîne de prix personnalisée pour cette adhésion. Elle n'est utilisée que si l'option register_price_action est définie sur "custom".

register_price_action (chaîne, valeur par défaut : default) - Indique s'il faut utiliser la chaîne de prix par défaut générée par MemberPress, une chaîne de prix personnalisée ou masquer complètement la chaîne de prix.

thank_you_page_enabled (bool, valeur par défaut : false) - Si cette valeur est fixée à true, le contenu de la page de remerciement sera remplacé par le message contenu dans la valeur thank_you_message.

message_de_remerciement (chaîne) - Chaîne contenant le message personnalisé de la page de remerciement qui s'affiche sur la page de remerciement chaque fois que l'adhésion est achetée. thank_you_page_enabled doit avoir la valeur true pour que ce message s'affiche.

custom_login_urls_enabled (bool, valeur par défaut : false) - S'il vaut true, vous pouvez modifier la redirection de connexion en utilisant custom_login_urls_default et/ou custom_login_urls pour contrôler l'endroit où un membre est redirigé après s'être connecté.

custom_login_urls_default (chaîne) - URL vers laquelle le membre sera redirigé par deafult lorsqu'il se connectera s'il a acheté cette adhésion. Cette URL remplace l'URL globale de redirection de la connexion définie dans MemberPress -> Options.

urls_de_login_personnalisés (tableau, valeur par défaut : []) - Un tableau d'objets standard. Chaque objet doit contenir \$obj->url et \$obj->count. url est l'URL vers laquelle l'utilisateur doit être redirigé lorsqu'il se connecte, et count est le nombre de fois qu'il s'est connecté. Par exemple, si vous souhaitez rediriger l'utilisateur vers une page de destination spécifique à sa quatrième tentative de connexion, vous devez définir l'url comme étant la page de destination et le compte comme étant 4.

expire_type (chaîne, valeur par défaut : none) - Si l'adhésion est un paiement unique (non récurrent), vous pouvez définir si/quand elle doit expirer. La valeur none signifie que l'adhésion est valable à vie. Une valeur de délai signifie qu'elle expire à un moment donné dans le futur (exemple : 6 mois). Et une valeur fixe signifie qu'il expirera à une date fixe dans le futur (exemple : 31 décembre 2019). Remarque : cela ne fonctionne pas avec les abonnements récurrents.

expire_after (entier, valeur par défaut : 1) - Si le type d'expiration est défini sur "délai", utilisez cette valeur pour déterminer le nombre d'unités d'expiration avant l'expiration de l'adhésion. Il s'agit d'un nombre (par exemple "6", pour 6 jours/mois/semaines/années).

expire_unit (chaîne, valeur par défaut : jours) - Si le type d'expiration est défini sur "délai", utilisez cette option pour définir l'unité de la valeur expire_after. Par exemple, si expire_after est défini sur "6" et que ceci est défini sur "mois", l'adhésion expirera 6 mois après la date d'inscription du membre.

expire_fixe (chaîne) - Si l'expire_type est défini sur "fixed", définissez la chaîne de la date à laquelle l'adhésion doit expirer. Vous pouvez utiliser n'importe quel format de date que la fonction strtotime() de PHP peut comprendre.

exonéré d'impôt (bool, valeur par défaut : false) - L'adhésion doit-elle être exonérée de taxes ou non ?

autoriser_le_renouvellement (bool, valeur par défaut : false) - Permet aux membres de renouveler les paiements uniques avant qu'ils n'aient expiré. Remarque : cela ne fonctionne que pour les adhésions à paiement unique dont la valeur de l'expire_type est "delay".

access_url (chaîne) - Utilisez ceci pour ajouter une URL qui doit être utilisée comme la page sur laquelle le membre peut accéder au contenu de cet abonnement.

abonnements simultanés (bool, valeur par défaut : false) - Permet aux membres d'avoir plusieurs abonnements actifs à ce produit simultanément. Note : Ne pas utiliser cette option si la valeur de allow_renewal est fixée à true.

use_custom_template (bool, valeur par défaut : false) - Utilisation ou non d'un modèle de page personnalisé pour cette page d'adhésion.

modèle_personnalisé (chaîne) - Le chemin relatif vers le fichier de votre modèle.

personnaliser_les_méthodes_de_paiement (bool, valeur par défaut : false) - Permet de désactiver les modes de paiement pour cette adhésion. Un mode de paiement désactivé ne peut pas être utilisé par un membre lors du paiement.

Méthodes de paiement personnalisées (tableau, valeur par défaut : []) - Si l'option customize_payment_methods est activée, il s'agit d'un tableau contenant les identifiants des méthodes de paiement valides pour cette adhésion. Remarque : si l'on filtre les modes de paiement valides, ce tableau DOIT contenir au moins un identifiant de passerelle.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \
       -d title= "Essai gratuit de 3 jours" \N -d price="25.00" \N
       -d price="25.00" \
       -d period=1 \N- -d period_type=months
       -d period_type=months \N- \N- \N- \N- \N
       -d signup_button_text="S'inscrire" \N -d signup_button_text="S'inscrire" \N -d limit_cycles_num=2
       -d limit_cycles_num=2 \N -d limit_cycles_action=2 \N
       \N- limit_cycles_action=expire \N- limit_cycles_action=expire \N- limit_cycles_action=expire
       -d trial=1 \N -d trial_days=3 \N -d trial_days=3 \N
       -d trial_days=3 \N
       -d trial_amount="0.00" 
       -d pricing_title="Essai gratuit de 3 jours" \N -d pricing_display=automatique
       -d pricing_display=auto \N- -d pricing_display=auto
       -d pricing_button_txt="S'inscrire" \N -d pricing_button_txt="S'inscrire" \N
       -d register_price_action=default \N -d register_price_action=default \N
       -d expire_type=none \N -d expire_after=1 \N
       -d expire_after=1 \N -d expire_unit=none \N
       -d expire_unit=days \N -d expire_fixed=none \N
       -d expire_fixed="2019-04-10" \N -d custom_template="2019-04-10" \N
       -d custom_template="template-sitemap.php"

Exemple de réponse

{
  "id" : 274,
  "title" : "Essai gratuit de 3 jours",
  "content" : "",
  "excerpt" : "",
  "date" : "2019-04-10 12:05:01",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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",
  "prix" : "25.00",
  "période" : "1",
  "period_type" : "mois",
  "signup_button_text" : "S'inscrire",
  "limit_cycles" : false,
  "limit_cycles_num" : "2",
  "limit_cycles_action" : "expire",
  "trial" : "1",
  "trial_days" : "3",
  "trial_amount" : "0.00",
  "trial_once" : "1",
  "group_order" : "0",
  "is_highlighted" : faux,
  "plan_code" : "",
  "pricing_title" : "Essai gratuit de 3 jours",
  "pricing_show_price" : true,
  "pricing_display" : "auto",
  "custom_price" : "",
  "pricing_heading_txt" : "",
  "pricing_footer_txt" : "",
  "pricing_button_txt" : "S'inscrire",
  "pricing_button_position" : "footer",
  "pricing_benefits" : [
    ""
  ],
  "register_price_action" : "default",
  "register_price" : "",
  "thank_you_page_enabled" : false,
  "thank_you_page_type" : "message",
  "thank_you_message" : "",
  "thank_you_page_id" : "0",
  "custom_login_urls_enabled" : false,
  "custom_login_urls_default" : "",
  "custom_login_urls" : [],
  "expire_type" : "none",
  "expire_after" : "1",
  "expire_unit" : "jours",
  "expire_fixed" : "2019-04-10",
  "tax_exempt" : faux,
  "allow_renewal" : false,
  "access_url" : "",
  "disable_address_fields" : false,
  "simultaneous_subscriptions" : false,
  "use_custom_template" : false,
  "custom_template" : "template-sitemap.php",
  "customize_payment_methods" : false,
  "custom_payment_methods" : [],
  "customize_profile_fields" : false,
  "custom_profile_fields" : [],
  "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
}

Mise à jour des adhésions

Description

Mise à jour d'une adhésion avec l'identifiant et les valeurs des champs donnés.

Arguments de recherche

Aucun

Arguments de mise à jour

titre (Require) (string) - Le titre de l'adhésion.

prix (décimal, valeur par défaut : 0.00) - Le prix de base de l'adhésion.

période (entier, valeur par défaut : 1) - Période pour les cycles de facturation de l'adhésion. Si vous souhaitez facturer le client une fois par trimestre, vous devez définir cette valeur sur 3 et le type de période sur mois. Il existe certaines limitations en fonction du type de période.

type_de_période (chaîne, valeur par défaut : durée de vie) - Le type de période de facturation. Pour les paiements non récurrents, cette valeur doit toujours être "à vie". Les autres valeurs possibles sont "semaines", "mois" et "années". Il existe certaines limitations en fonction de la période.

texte_du_bouton_d'inscription (chaîne, valeur par défaut : S'inscrire) - Texte affiché sur le bouton d'envoi du formulaire d'inscription de l'adhérent.

cycles_limites (bool, valeur par défaut : false) - Limiter ou non les cycles de facturation pour les paiements récurrents. Si la valeur est fixée à true, MemberPress annulera les paiements récurrents une fois que le montant limit_cycles_num aura été atteint.

nombre_de_cycles_limite (entier, valeur par défaut : 2) - Si limit_cycles est vrai, ce nombre est utilisé pour déterminer combien de facturations récurrentes doivent avoir lieu avant que MemberPress n'annule automatiquement l'abonnement. Si la valeur est fixée à 1, l'abonnement sera annulé immédiatement après le premier paiement, mais le membre conservera l'accès jusqu'à l'expiration de sa transaction.

action_limite_cycles (chaîne, valeur par défaut : expire) - Si l'option limit_cycles est activée, elle détermine l'accès du membre lorsque son abonnement a atteint sa limite limit_cycles_num et qu'il a été annulé. Si la valeur est "expire", le membre perdra son accès après l'expiration de sa dernière transaction. Si la valeur est "lifetime", le membre bénéficiera d'un accès à vie.

t
rial (bool, valeur par défaut : false) - Indique si une période d'essai est prévue pour cet abonnement. Les périodes d'essai ne fonctionnent QUE pour les paiements automatiques.

jours_d'essai (entier, valeur par défaut : 0) - Nombre de jours que doit durer la période d'essai avant le début des cycles de facturation normaux.

montant de l'essai (décimal, valeur par défaut : 0.00) - Si une période d'essai est activée, cette valeur indique le montant que l'utilisateur paiera pour la période d'essai.

groupe (entier, valeur par défaut : 0) - L'ID d'un groupe MemberPress auquel cette adhésion doit appartenir. La valeur par défaut est aucun groupe.

ordre_de_groupe (entier, valeur par défaut : 0) - Si l'adhésion appartient à un groupe, cela détermine son emplacement sur la page du groupe et est également utilisé pour déterminer les chemins de mise à niveau et de rétrogradation.

est_surligné (bool, valeur par défaut : false) - Mise en évidence ou non de cette adhésion dans le groupe. Cette option ajoute des classes CSS supplémentaires pour que la boîte de prix/caractéristiques du groupe se distingue des autres.

titre_de_la_tarification (chaîne) - Titre qui s'affiche en haut de la boîte de tarification sur la page d'un groupe.

affichage des prix (chaîne, valeur par défaut : auto) - Comment afficher le prix dans le cadre de tarification de cette adhésion sur la page du groupe.

texte de l'en-tête de la tarification (chaîne) - Un titre à afficher dans cette boîte de tarification. S'affiche en dessous du prix, mais au-dessus de la liste des caractéristiques/avantages.

pricing_footer_txt (chaîne) - Affiche un message au bas de la boîte de prix. S'affiche juste au-dessus du bouton d'achat.

pricing_button_txt (chaîne) - Le texte du bouton d'achat.

avantages_de_la_tarification (tableau, valeur par défaut : []) - Un tableau de chaînes de caractères. Chaque chaîne sera affichée en tant qu'élément de ligne dans la boîte de tarification sur la page du groupe.

enregistrer_prix (chaîne) - Chaîne de prix personnalisée pour cette adhésion. Elle n'est utilisée que si l'option register_price_action est définie sur "custom".

register_price_action (chaîne, valeur par défaut : default) - Indique s'il faut utiliser la chaîne de prix par défaut générée par MemberPress, une chaîne de prix personnalisée ou masquer complètement la chaîne de prix.

thank_you_page_enabled (bool, valeur par défaut : false) - Si cette valeur est fixée à true, le contenu de la page de remerciement sera remplacé par le message contenu dans la valeur thank_you_message.

message_de_remerciement (chaîne) - Chaîne contenant le message personnalisé de la page de remerciement qui s'affiche sur la page de remerciement chaque fois que l'adhésion est achetée. thank_you_page_enabled doit avoir la valeur true pour que ce message s'affiche.

custom_login_urls_enabled (bool, valeur par défaut : false) - S'il vaut true, vous pouvez modifier la redirection de connexion en utilisant custom_login_urls_default et/ou custom_login_urls pour contrôler l'endroit où un membre est redirigé après s'être connecté.

custom_login_urls_default (chaîne) - URL vers laquelle le membre sera redirigé par deafult lorsqu'il se connectera s'il a acheté cette adhésion. Cette URL remplace l'URL globale de redirection de la connexion définie dans MemberPress -> Options.

urls_de_login_personnalisés (tableau, valeur par défaut : []) - Un tableau d'objets standard. Chaque objet doit contenir \$obj->url et \$obj->count. url est l'URL vers laquelle l'utilisateur doit être redirigé lorsqu'il se connecte, et count est le nombre de fois qu'il s'est connecté. Par exemple, si vous souhaitez rediriger l'utilisateur vers une page de destination spécifique à sa quatrième tentative de connexion, vous devez définir l'url comme étant la page de destination et le compte comme étant 4.

expire_type (chaîne, valeur par défaut : none) - Si l'adhésion est un paiement unique (non récurrent), vous pouvez définir si/quand elle doit expirer. La valeur none signifie que l'adhésion est valable à vie. Une valeur de délai signifie qu'elle expire à un moment donné dans le futur (exemple : 6 mois). Et une valeur fixe signifie qu'il expirera à une date fixe dans le futur (exemple : 31 décembre 2019). Remarque : cela ne fonctionne pas avec les abonnements récurrents.

expire_after (entier, valeur par défaut : 1) - Si le type d'expiration est défini sur "délai", utilisez cette valeur pour déterminer le nombre d'unités d'expiration avant l'expiration de l'adhésion. Il s'agit d'un nombre (par exemple "6", pour 6 jours/mois/semaines/années).

expire_unit (chaîne, valeur par défaut : jours) - Si le type d'expiration est défini sur "délai", utilisez cette option pour définir l'unité de la valeur expire_after. Par exemple, si expire_after est défini sur "6" et que ceci est défini sur "mois", l'adhésion expirera 6 mois après la date d'inscription du membre.

expire_fixe (chaîne) - Si l'expire_type est défini sur "fixed", définissez la chaîne de la date à laquelle l'adhésion doit expirer. Vous pouvez utiliser n'importe quel format de date que la fonction strtotime() de PHP peut comprendre.

exonéré d'impôt (bool, valeur par défaut : false) - L'adhésion doit-elle être exonérée de taxes ou non ?

autoriser_le_renouvellement (bool, valeur par défaut : false) - Permet aux membres de renouveler les paiements uniques avant qu'ils n'aient expiré. Remarque : cela ne fonctionne que pour les adhésions à paiement unique dont la valeur de l'expire_type est "delay".

access_url (chaîne) - Utilisez ceci pour ajouter une URL qui doit être utilisée comme la page sur laquelle le membre peut accéder au contenu de cet abonnement.

abonnements simultanés (bool, valeur par défaut : false) - Permet aux membres d'avoir plusieurs abonnements actifs à ce produit simultanément. Note : Ne pas utiliser cette option si la valeur de allow_renewal est fixée à true.

use_custom_template (bool, valeur par défaut : false) - Utilisation ou non d'un modèle de page personnalisé pour cette page d'adhésion.

modèle_personnalisé (chaîne) - Le chemin relatif vers le fichier de votre modèle.

personnaliser_les_méthodes_de_paiement (bool, valeur par défaut : false) - Permet de désactiver les modes de paiement pour cette adhésion. Un mode de paiement désactivé ne peut pas être utilisé par un membre lors du paiement.

Méthodes de paiement personnalisées (tableau, valeur par défaut : []) - Si l'option customize_payment_methods est activée, il s'agit d'un tableau contenant les identifiants des méthodes de paiement valides pour cette adhésion. Remarque : si l'on filtre les modes de paiement valides, ce tableau DOIT contenir au moins un identifiant de passerelle.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships/274" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \
       -d title= "Essai gratuit de 3 jours" \N -d price="25.00" \N
       -d price="25.00" \
       -d period=1 \N- -d period_type=months
       -d period_type=months \N- \N- \N- \N- \N
       -d signup_button_text="S'inscrire" \N -d signup_button_text="S'inscrire" \N -d limit_cycles_num=2
       -d limit_cycles_num=2 \N -d limit_cycles_action=2 \N
       \N- limit_cycles_action=expire \N- limit_cycles_action=expire \N- limit_cycles_action=expire
       -d trial=1 \N -d trial_days=3 \N -d trial_days=3 \N
       -d trial_days=3 \N
       -d trial_amount="0.00" 
       -d pricing_title="Essai gratuit de 3 jours" \N -d pricing_display=automatique
       -d pricing_display=auto \N- -d pricing_display=auto
       -d pricing_button_txt="S'inscrire" \N -d pricing_button_txt="S'inscrire" \N
       -d register_price_action=default \N -d register_price_action=default \N
       -d expire_type=none \N- -d expire_after=1
       -d expire_after=1 \N -d expire_unit=none \N
       -d expire_unit=days \N -d expire_fixed=none \N
       -d expire_fixed="2019-04-10" \N -d custom_template="2019-04-10" \N
       -d custom_template="template-sitemap.php"

Exemple de réponse

{
  "id" : 274,
  "title" : "Essai gratuit de 3 jours",
  "content" : "",
  "excerpt" : "",
  "date" : "2019-04-10 12:05:01",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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",
  "prix" : "25.00",
  "période" : "1",
  "period_type" : "mois",
  "signup_button_text" : "S'inscrire",
  "limit_cycles" : false,
  "limit_cycles_num" : "2",
  "limit_cycles_action" : "expire",
  "trial" : "1",
  "trial_days" : "3",
  "trial_amount" : "0.00",
  "trial_once" : "1",
  "group_order" : "0",
  "is_highlighted" : faux,
  "plan_code" : "",
  "pricing_title" : "Essai gratuit de 3 jours",
  "pricing_show_price" : true,
  "pricing_display" : "auto",
  "custom_price" : "",
  "pricing_heading_txt" : "",
  "pricing_footer_txt" : "",
  "pricing_button_txt" : "S'inscrire",
  "pricing_button_position" : "footer",
  "pricing_benefits" : [
    ""
  ],
  "register_price_action" : "default",
  "register_price" : "",
  "thank_you_page_enabled" : false,
  "thank_you_page_type" : "message",
  "thank_you_message" : "",
  "thank_you_page_id" : "0",
  "custom_login_urls_enabled" : false,
  "custom_login_urls_default" : "",
  "custom_login_urls" : [],
  "expire_type" : "none",
  "expire_after" : "1",
  "expire_unit" : "jours",
  "expire_fixed" : "2019-04-10",
  "tax_exempt" : faux,
  "allow_renewal" : false,
  "access_url" : "",
  "disable_address_fields" : false,
  "simultaneous_subscriptions" : false,
  "use_custom_template" : false,
  "custom_template" : "template-sitemap.php",
  "customize_payment_methods" : false,
  "custom_payment_methods" : [],
  "customize_profile_fields" : false,
  "custom_profile_fields" : [],
  "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
}

Supprimer l'adhésion

Description

Supprime une adhésion avec l'identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

{
  "id" : 274,
  "title" : "Essai gratuit de 3 jours",
  "content" : "",
  "excerpt" : "",
  "date" : "2019-04-10 12:05:01",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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",
  "prix" : "25.00",
  "période" : "1",
  "period_type" : "mois",
  "signup_button_text" : "S'inscrire",
  "limit_cycles" : false,
  "limit_cycles_num" : "2",
  "limit_cycles_action" : "expire",
  "trial" : "1",
  "trial_days" : "3",
  "trial_amount" : "0.00",
  "trial_once" : "1",
  "group_order" : "0",
  "is_highlighted" : faux,
  "plan_code" : "",
  "pricing_title" : "Essai gratuit de 3 jours",
  "pricing_show_price" : true,
  "pricing_display" : "auto",
  "custom_price" : "",
  "pricing_heading_txt" : "",
  "pricing_footer_txt" : "",
  "pricing_button_txt" : "S'inscrire",
  "pricing_button_position" : "footer",
  "pricing_benefits" : [
    ""
  ],
  "register_price_action" : "default",
  "register_price" : "",
  "thank_you_page_enabled" : false,
  "thank_you_page_type" : "message",
  "thank_you_message" : "",
  "thank_you_page_id" : "0",
  "custom_login_urls_enabled" : false,
  "custom_login_urls_default" : "",
  "custom_login_urls" : [],
  "expire_type" : "none",
  "expire_after" : "1",
  "expire_unit" : "jours",
  "expire_fixed" : "2019-04-10",
  "tax_exempt" : faux,
  "allow_renewal" : false,
  "access_url" : "",
  "disable_address_fields" : false,
  "simultaneous_subscriptions" : false,
  "use_custom_template" : false,
  "custom_template" : "template-sitemap.php",
  "customize_payment_methods" : false,
  "custom_payment_methods" : [],
  "customize_profile_fields" : false,
  "custom_profile_fields" : [],
  "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
}

Obtenir des coupons

Description

Obtenir tous les coupons sur la base des arguments de recherche fournis.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection. 

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

recherche (chaîne) - Limite les résultats à ceux qui correspondent à une chaîne.

code (entier) - Permet d'obtenir le coupon avec le code donné.

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

[
  {
    "id" : 275,
    "coupon_code" : "B2XJTM2YQB",
    "date" : "2019-04-10 12:05:53",
    "status" : "publier",
    "author" : {
      "id" : 5,
     "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
        "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",
        "prix" : "25.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : "1",
        "trial_days" : "3",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Essai gratuit de 3 jours",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-10",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "0",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "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" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
        "author" : "5",
        "date_gmt" : "2019-04-03 17:18:41",
        "modified" : "2019-04-04 10:58:44",
        "modified_gmt" : "2019-04-04 16:58:44",
        "group" : "0",
        "prix" : "9.99",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : "1",
        "trial_days" : "90",
        "trial_amount" : "29.94",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "coupon testing",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-04",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "2",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "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" : "publier",
    "author" : {
      "id" : 5,
     "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
        "author" : "5",
        "date_gmt" : "2019-04-03 17:18:41",
        "modified" : "2019-04-04 10:58:44",
        "modified_gmt" : "2019-04-04 16:58:44",
        "group" : "0",
        "prix" : "9.99",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : "1",
        "trial_days" : "90",
        "trial_amount" : "29.94",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "coupon testing",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-04",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "2",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "discount_amount" : "100",
    "discount_mode" : "premier paiement",
    "trial_days" : "0",
    "trial_amount" : "0.00"
  },
  {
    "id" : 253,
    "coupon_code" : "WVJKX4WU86",
    "date" : "2019-03-13 16:25:39",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
        "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",
        "groupe" : "252",
        "prix" : "10000.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "1",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "25 2",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-03-20",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "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" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "Test d'expiration corrigé",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-11-16 09:58:51",
        "status" : "publier",
        "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",
        "prix" : "75.00",
        "période" : "1",
        "period_type" : "années",
        "signup_button_text" : "Sign Up",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Test d'expiration fixe",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "fixed",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-03-31",
        "tax_exempt" : faux,
        "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" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "1",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "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" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "publier",
        "author" : "5",
        "date_gmt" : "2019-01-10 22:36:20",
        "modified" : "2019-02-19 12:15:59",
        "modified_gmt" : "2019-02-19 19:15:59",
        "group" : "0",
        "price" : "100.00",
        "période" : "1",
        "period_type" : "années",
        "signup_button_text" : "Sign Up",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : "1",
        "trial_days" : "14",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "coupon test",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-02-19",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "3",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "discount_amount" : "20",
    "discount_mode" : "trial-override",
    "trial_days" : "2",
    "trial_amount" : "0.00"
  },
  {
    "id" : 195,
    "coupon_code" : "CJM43W9Y3K",
    "date" : "2019-01-10 13:01:37",
    "status" : "publier",
    "author" : {
      "id" : 5,
      "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "Adhésion platine",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:44",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:44",
        "modified" : "2018-11-29 10:04:26",
        "modified_gmt" : "2018-11-29 17:04:26",
        "group" : "17",
        "prix" : "2600.00",
        "période" : "1",
        "period_type" : "lifetime",
        "signup_button_text" : "Sign Up",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "3",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion platine",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2018-11-29",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      },
      {
        "id" : 15,
        "title" : "Adhésion en or",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:10:22",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:10:22",
        "modified" : "2019-04-01 15:03:22",
        "modified_gmt" : "2019-04-01 21:03:22",
        "group" : "17",
        "prix" : "100.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "2",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion en or",
        "pricing_show_price" : true,
        "pricing_display" : "custom",
        "custom_price" : "Pricing",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "Ceci est un test",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-04-01",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : "1",
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : "1",
        "custom_payment_methods" : [
          "peum51-1tc"
        ],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
      },
      {
        "id" : 14,
        "title" : "Adhésion d'argent",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:09:57",
        "status" : "publier",
        "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",
        "prix" : "25.00",
        "période" : "1",
        "period_type" : "mois",
        "signup_button_text" : "S'inscrire",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "1",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion argent",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2018-08-30",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      },
      {
        "id" : 13,
        "title" : "Adhésion de bronze",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-08-30 16:08:50",
        "status" : "publier",
        "author" : "2",
        "date_gmt" : "2018-08-30 16:08:50",
        "modified" : "2019-01-14 13:49:13",
        "modified_gmt" : "2019-01-14 20:49:13",
        "group" : "17",
        "price" : "0.00",
        "période" : "1",
        "period_type" : "lifetime",
        "signup_button_text" : "Sign Up",
        "limit_cycles" : false,
        "limit_cycles_num" : "2",
        "limit_cycles_action" : "expire",
        "trial" : faux,
        "trial_days" : "0",
        "trial_amount" : "0.00",
        "trial_once" : "1",
        "group_order" : "0",
        "is_highlighted" : faux,
        "plan_code" : "",
        "pricing_title" : "Adhésion Bronze",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2019-01-14",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "1",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "discount_amount" : "30",
    "discount_mode" : "premier paiement",
    "trial_days" : "0",
    "trial_amount" : "0.00"
  },
  {
    "id" : 157,
    "coupon_code" : "QPL9MTM8CI",
    "date" : "2018-12-04 10:45:16",
    "status" : "publier",
    "author" : {
      "id" : 5,
     "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
    },
    "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" : "Test du plan de mise à jour",
        "content" : "",
        "excerpt" : "",
        "date" : "2018-11-29 12:00:53",
        "status" : "publier",
        "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",
        "prix" : "10.00",
        "période" : "1",
        "period_type" : "mois",
        "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" : faux,
        "plan_code" : "",
        "pricing_title" : "Test du plan de mise à jour",
        "pricing_show_price" : true,
        "pricing_display" : "auto",
        "custom_price" : "",
        "pricing_heading_txt" : "",
        "pricing_footer_txt" : "",
        "pricing_button_txt" : "S'inscrire",
        "pricing_button_position" : "footer",
        "pricing_benefits" : [
          ""
        ],
        "register_price_action" : "default",
        "register_price" : "",
        "thank_you_page_enabled" : false,
        "thank_you_page_type" : "message",
        "thank_you_message" : "",
        "thank_you_page_id" : "0",
        "custom_login_urls_enabled" : false,
        "custom_login_urls_default" : "",
        "custom_login_urls" : [],
        "expire_type" : "none",
        "expire_after" : "1",
        "expire_unit" : "jours",
        "expire_fixed" : "2018-11-29",
        "tax_exempt" : faux,
        "allow_renewal" : false,
        "access_url" : "",
        "disable_address_fields" : false,
        "simultaneous_subscriptions" : false,
        "use_custom_template" : false,
        "custom_template" : "template-sitemap.php",
        "customize_payment_methods" : false,
        "custom_payment_methods" : [],
        "customize_profile_fields" : false,
        "custom_profile_fields" : [],
        "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
      }
    ],
    "should_expire" : false,
    "expires_on" : "0",
    "usage_count" : "2",
    "usage_amount" : "0",
    "discount_type" : "pourcentage",
    "discount_amount" : "100",
    "discount_mode" : "premier paiement",
    "trial_days" : "0",
    "trial_amount" : "0.00"
  }
]

Obtenir un coupon

Description

Obtenir un coupon avec un identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdomain.com/wp-json/mp/v1/coupons/275" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

{
  "id" : 275,
  "coupon_code" : "B2XJTM2YQB",
  "date" : "2019-04-10 12:05:53",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : "publier",
      "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",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "3",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Essai gratuit de 3 jours",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-10",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    }
  ],
  "should_expire" : false,
  "expires_on" : "0",
  "usage_count" : "0",
  "usage_amount" : "0",
  "discount_type" : "pourcentage",
  "discount_amount" : "15",
  "discount_mode" : "standard",
  "trial_days" : "3",
  "trial_amount" : "0.00"
}

Créer un coupon

Description

Créer un coupon avec les valeurs de champ données.

Arguments de recherche

Aucun

Arguments de mise à jour

code_coupon (chaîne, valeur par défaut : ) - Il s'agit du code de coupon à associer au coupon. Il doit s'agir d'un code unique, sans espace ni caractère spécial autre que "-". Si des espaces sont présents, la valeur sera acceptée mais MemberPress les remplacera par des tirets. De même, si cette valeur est laissée vide, MemberPress générera automatiquement un code unique pour ce coupon.

devrait_expirer (bool, valeur par défaut : false) - Mettez cette valeur à true si vous voulez que le coupon expire dans le futur.

expires_on (Nécessaire si "should_expire" est vrai) (timestamp, valeur par défaut : null) - Indique le timestamp unix de la date à laquelle vous souhaitez que le coupon expire.

montant_utilisation (entier, valeur par défaut : 0) - Définissez un nombre supérieur à zéro si vous souhaitez limiter le nombre de fois que le coupon peut être utilisé.

type de réduction (enum, valeur par défaut : percent) - Cette option modifie la façon dont MemberPress interprète le "discount_amount", qui peut être un pourcentage ou un montant fixe.

montant de la remise (décimal, valeur par défaut : 0.00) - Montant de la remise. En fonction du paramètre "discount_type", il peut s'agir d'un montant fixe ou d'un pourcentage.

affiliations_valides (Requis) (tableau, valeur par défaut : []) - Vous pouvez définir ici un tableau d'identifiants de membres auxquels le coupon s'appliquera.

mode_discount (chaîne, valeur par défaut : standard) - Définit le type de remise. Il peut s'agir d'une remise standard, d'une remise pour essai ou d'une remise pour premier paiement. Si la valeur est standard, la remise s'appliquera à tous les paiements pendant toute la durée de l'abonnement. Si elle est définie sur premier paiement, la remise ne s'appliquera qu'au premier paiement d'un abonnement automatiquement récurrent - cela se fait en remplaçant la période d'essai de l'abonnement. Si la valeur est fixée à trial-override, la réduction s'appliquera également à la période d'essai des abonnements récurrents.

premier_paiement_type_discount (énumération, valeur par défaut : pourcentage) - Cette valeur est ignorée si le mode de réduction n'est pas "premier paiement". Elle modifie la façon dont MemberPress interprète le "first_payment_discount_amount", qui peut être un pourcentage ou un montant fixe. Ne s'applique qu'aux abonnements récurrents.

montant_du_premier_paiement_discount (décimal, valeur par défaut : 0.00) - Cette valeur est ignorée si le mode de réduction n'est pas "premier paiement". Montant de la remise pour le premier paiement d'un abonnement récurrent. En fonction du paramètre "discount_type", il peut s'agir d'un montant fixe ou d'un pourcentage. 

jours_d'essai (entier, valeur par défaut : 0) - Définit le nombre de jours d'essai. Utilisé uniquement pour les abonnements récurrents et si le paramètre discount_mode est défini sur trial-override.

montant de l'essai (décimal, valeur par défaut : 0.00) - Fixe le montant de la période d'essai. Utilisé uniquement pour les abonnements récurrents et si le paramètre discount_mode est défini sur trial-override.

Demande d'échantillon

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

Exemple de réponse

{
  "id" : 275,
  "coupon_code" : "B2XJTM2YQB",
  "date" : "2019-04-10 12:05:53",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : "publier",
      "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",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "3",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Essai gratuit de 3 jours",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-10",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    }
  ],
  "should_expire" : false,
  "expires_on" : "0",
  "usage_count" : "0",
  "usage_amount" : "0",
  "discount_type" : "pourcentage",
  "discount_amount" : "15",
  "discount_mode" : "standard",
  "trial_days" : "3",
  "trial_amount" : "0.00"
}

Mise à jour du coupon

Description

Mettre à jour un coupon avec l'identifiant et les valeurs de champ donnés.

Arguments de recherche

Aucun

Arguments de mise à jour

code_coupon (chaîne, valeur par défaut : ) - Il s'agit du code de coupon à associer au coupon. Il doit s'agir d'un code unique, sans espace ni caractère spécial autre que "-". Si des espaces sont présents, la valeur sera acceptée mais MemberPress les remplacera par des tirets. De même, si cette valeur est laissée vide, MemberPress générera automatiquement un code unique pour ce coupon.

devrait_expirer (bool, valeur par défaut : false) - Mettez cette valeur à true si vous voulez que le coupon expire dans le futur.

expires_on (Nécessaire si "should_expire" est vrai) (timestamp, valeur par défaut : null) - Indique le timestamp unix de la date à laquelle vous souhaitez que le coupon expire.

montant_utilisation (entier, valeur par défaut : 0) - Définissez un nombre supérieur à zéro si vous souhaitez limiter le nombre de fois que le coupon peut être utilisé.

type de réduction (enum, valeur par défaut : percent) - Cette option modifie la façon dont MemberPress interprète le "discount_amount", qui peut être un pourcentage ou un montant fixe.

montant de la remise (décimal, valeur par défaut : 0.00) - Montant de la remise. En fonction du paramètre "discount_type", il peut s'agir d'un montant fixe ou d'un pourcentage.

affiliations_valides (Requis) (tableau, valeur par défaut : []) - Vous pouvez définir ici un tableau d'identifiants de membres auxquels le coupon s'appliquera.

mode_discount (chaîne, valeur par défaut : standard) - Définit le type de remise. Il peut s'agir d'une remise standard, d'une remise pour essai ou d'une remise pour premier paiement. Si la valeur est standard, la remise s'appliquera à tous les paiements pendant toute la durée de l'abonnement. Si elle est définie sur premier paiement, la remise ne s'appliquera qu'au premier paiement d'un abonnement automatiquement récurrent - cela se fait en remplaçant la période d'essai de l'abonnement. Si la valeur est fixée à trial-override, la réduction s'appliquera également à la période d'essai des abonnements récurrents.

premier_paiement_type_discount (énumération, valeur par défaut : pourcentage) - Cette valeur est ignorée si le mode de réduction n'est pas "premier paiement". Elle modifie la façon dont MemberPress interprète le "first_payment_discount_amount", qui peut être un pourcentage ou un montant fixe. Ne s'applique qu'aux abonnements récurrents.

montant_du_premier_paiement_discount (décimal, valeur par défaut : 0.00) - Cette valeur est ignorée si le mode de réduction n'est pas "premier paiement". Montant de la remise pour le premier paiement d'un abonnement récurrent. En fonction du paramètre "discount_type", il peut s'agir d'un montant fixe ou d'un pourcentage.

jours_d'essai (entier, valeur par défaut : 0) - Définit le nombre de jours d'essai. Utilisé uniquement pour les abonnements récurrents et si le paramètre discount_mode est défini sur trial-override.

montant de l'essai (décimal, valeur par défaut : 0.00) - Fixe le montant de la période d'essai. Utilisé uniquement pour les abonnements récurrents et si le paramètre discount_mode est défini sur trial-override.

Demande d'échantillon

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

Exemple de réponse

{
  "id" : 275,
  "coupon_code" : "B2XJTM2YQB",
  "date" : "2019-04-10 12:05:53",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : "publier",
      "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",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "3",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Essai gratuit de 3 jours",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-10",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    }
  ],
  "should_expire" : false,
  "expires_on" : "0",
  "usage_count" : "0",
  "usage_amount" : "0",
  "discount_type" : "pourcentage",
  "discount_amount" : "15",
  "discount_mode" : "standard",
  "trial_days" : "3",
  "trial_amount" : "0.00"
}

Supprimer le coupon

Description

Supprime un coupon avec l'identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

{
  "id" : 275,
  "coupon_code" : "B2XJTM2YQB",
  "date" : "2019-04-10 12:05:53",
  "status" : "publier",
  "author" : {
    "id" : 5,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "http://zapier.test.com",
    "message" : "",
    "registered_at" : "2018-08-30 16:42:13",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapier test"
  },
  "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" : "publier",
      "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",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "3",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Essai gratuit de 3 jours",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-10",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    }
  ],
  "should_expire" : false,
  "expires_on" : "0",
  "usage_count" : "0",
  "usage_amount" : "0",
  "discount_type" : "pourcentage",
  "discount_amount" : "15",
  "discount_mode" : "standard",
  "trial_days" : "3",
  "trial_amount" : "0.00"
}

Obtenir des transactions

Description

Obtenir une transaction avec un identifiant donné.

Arguments de recherche

page (entier, valeur par défaut : 1) - Page actuelle de la collection.

par page (entier, valeur par défaut : 10) - Nombre maximal d'éléments à renvoyer dans l'ensemble des résultats.

recherche (chaîne) - Limite les résultats à ceux qui correspondent à une chaîne.

membre (entier) - Limiter les résultats aux transactions d'un membre spécifique.

l'adhésion (entier) - Limiter les résultats aux transactions pour une affiliation spécifique.

coupon (entier) - Limite les résultats aux transactions créées avec un coupon spécifique.

statut (chaîne) - Limite les résultats aux transactions ayant un statut donné.

passerelle (chaîne) - Limite les résultats aux transactions créées avec une passerelle de paiement spécifique. Il doit s'agir d'un identifiant unique de la méthode de paiement qui peut être trouvé dans l'onglet paiements de la page Paramètres de MemberPress.

abonnement (entier) - Limiter les résultats aux transactions associées à un abonnement spécifique

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

[
  {
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 56,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-18 16:47:14",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapiertest",
      "address" : {
        "mepr-address-one" : "123 fake st",
        "mepr-address-two" : "",
        "mepr-address-city" : "city",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "81111",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "MemberPress",
        "mepr_birthday" : "2019-04-18",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "15",
      "membre" : "56",
      "id" : "69",
      "subscr_id" : "cus_EuSIHGllVD3168",
      "gateway" : "peum51-1tc",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "2019-04-18 16:47:19",
      "total" : "100,00",
      "tax_rate" : "0.000",
      "tax_amount" : "0.00",
      "tax_desc" : "",
      "tax_class" : "standard",
      "cc_last4" : "1111",
      "cc_exp_month" : "10",
      "cc_exp_year" : "2020",
      "token" : "",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "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,
    "rebill" : false,
    "subscription_payment_index" : 1,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 56,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-18 16:47:14",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapiertest",
      "address" : {
        "mepr-address-one" : "123 fake st",
        "mepr-address-two" : "",
        "mepr-address-city" : "city",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "81111",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "MemberPress",
        "mepr_birthday" : "2019-04-18",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "15",
      "membre" : "56",
      "id" : "69",
      "subscr_id" : "cus_EuSIHGllVD3168",
      "gateway" : "peum51-1tc",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "2019-04-18 16:47:19",
      "total" : "100,00",
      "tax_rate" : "0.000",
      "tax_amount" : "0.00",
      "tax_desc" : "",
      "tax_class" : "standard",
      "cc_last4" : "1111",
      "cc_exp_month" : "10",
      "cc_exp_year" : "2020",
      "token" : "",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "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" : "confirmé",
    "txn_type" : "subscription_confirmation",
    "gateway" : "peum51-1tc",
    "prorated" : "0",
    "created_at" : "2019-04-18 16:47:14",
    "expires_at" : "2019-04-18 23:59:59",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false
  },
  {
    "membership" : {
      "id" : 271,
      "title" : "Adhésion d'un jour",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-04-04 12:14:54",
      "status" : "publier",
      "author" : "5",
      "date_gmt" : "2019-04-04 18:14:54",
      "modified" : "2019-04-04 12:14:54",
      "modified_gmt" : "2019-04-04 18:14:54",
      "group" : "0",
      "prix" : "10.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion d'un jour",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "delay",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-04",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test",
      "address" : {
        "mepr-address-one" : "120 S 200 W",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "2019-01-02",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : "0",
    "id" : "195",
    "montant" : "10.00",
    "total" : "10.00",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "ch_1EPstWJT1LHvX6ILpbHj3WEZ",
    "status" : "complete",
    "txn_type" : "payment",
    "gateway" : "peum51-1tc",
    "prorated" : "0",
    "created_at" : "2019-04-16 15:08:20",
    "expires_at" : "2019-04-17 23:59:59",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 14,
      "title" : "Adhésion d'argent",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:09:57",
      "status" : "publier",
      "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",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "1",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion argent",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2018-08-30",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : false,
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : false,
      "custom_payment_methods" : [],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test",
      "address" : {
        "mepr-address-one" : "120 S 200 W",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "2019-01-02",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "14",
      "membre" : "5",
      "id" : "35",
      "subscr_id" : "cus_ELEy7Swsow2wLS",
      "gateway" : "peum51-1tc",
      "prix" : "25.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "2019-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" : null
    },
    "id" : "194",
    "amount" : "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",
    "gateway" : "peum51-1tc",
    "prorated" : "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" : null,
    "rebill" : true,
    "subscription_payment_index" : 4,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 167,
      "title" : "test d'annulation d'essai",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-12-14 08:17:25",
      "status" : "publier",
      "author" : "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" : "0",
      "price" : "20.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : "1",
      "trial_days" : "30",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "essai annulation test",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2018-12-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" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 29,
      "email" : "trial3@test.com",
      "nom d'utilisateur" : "trial3@test.com",
      "nicename" : "trial3test-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2018-12-14 15:18:45",
      "first_name" : "trial2",
      "last_name" : "test",
      "display_name" : "trial3@test.com",
      "address" : {
        "mepr-address-one" : "123 N",
        "mepr-address-two" : "",
        "mepr-address-city" : "Riverton",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84065",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "167",
      "membre" : "29",
      "id" : "26",
      "subscr_id" : "cus_E9beibZQIjrARq",
      "gateway" : "peum51-1tc",
      "prix" : "20.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "1",
      "trial_days" : "30",
      "trial_amount" : "0.00",
      "status" : "actif",
      "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" : null
    },
    "id" : "193",
    "amount" : "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",
    "gateway" : "peum51-1tc",
    "prorated" : "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" : null,
    "rebill" : true,
    "subscription_payment_index" : 4,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 209,
      "title" : "Période d'essai double inscription",
      "content" : "",
      "excerpt" : "",
      "date" : "2019-02-06 15:14:14",
      "status" : "publier",
      "author" : "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" : "0",
      "prix" : "10.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "1",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Période d'essai double inscription",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "delay",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-02-25",
      "tax_exempt" : faux,
      "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" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 40,
      "email" : "multitrial@test.com",
      "nom d'utilisateur" : "multitrialtest",
      "nicename" : "multitrialtest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-02-06 22:16:19",
      "first_name" : "multitrial",
      "last_name" : "test",
      "display_name" : "multitrialtest",
      "address" : {
        "mepr-address-one" : "",
        "mepr-address-two" : "",
        "mepr-address-city" : "",
        "mepr-address-state" : "",
        "mepr-address-zip" : "",
        "mepr-address-country" : ""
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "209",
      "membre" : "40",
      "id" : "42",
      "subscr_id" : "cus_EVj7zawVe0xj3O",
      "gateway" : "peum51-1tc",
      "prix" : "10.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "2019-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" : null
    },
    "id" : "192",
    "amount" : "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",
    "gateway" : "peum51-1tc",
    "prorated" : "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" : null,
    "rebill" : true,
    "subscription_payment_index" : 3,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 13,
      "email" : "test6@email.com",
      "nom d'utilisateur" : "test6@email.com",
      "nicename" : "test6email-com",
      "url" : "",
      "message" : "",
      "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" : ""
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "15",
      "membre" : "13",
      "id" : "4",
      "subscr_id" : "I-NTY3JJ4SEM15",
      "gateway" : "pejdpl-1yy",
      "price" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "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" : null
    },
    "id" : "191",
    "amount" : "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",
    "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" : null,
    "rebill" : true,
    "subscription_payment_index" : 8,
    "commissions" : []
  },
  {
    "membership" : "0",
    "membre" : {
      "id" : 24,
      "email" : "diggity@email.com",
      "nom d'utilisateur" : "diggity@email.com",
      "nicename" : "diggityemail-com",
      "url" : "",
      "message" : "",
      "registered_at" : "2018-12-03 20:30:51",
      "first_name" : "test",
      "last_name" : "username",
      "display_name" : "diggity@email.com",
      "adresse" : {
        "mepr-address-one" : "",
        "mepr-address-two" : "",
        "mepr-address-city" : "",
        "mepr-address-state" : "",
        "mepr-address-zip" : "",
        "mepr-address-country" : ""
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "0",
      "membre" : "24",
      "id" : "21",
      "subscr_id" : "cus_E5ZCTZ9Z5OaNks",
      "gateway" : "peum51-1tc",
      "prix" : "10.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "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" : null
    },
    "id" : "190",
    "amount" : "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",
    "gateway" : "peum51-1tc",
    "prorated" : "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" : null,
    "rebill" : true,
    "subscription_payment_index" : 5,
    "commissions" : []
  },
  {
    "membership" : {
      "id" : 92,
      "title" : "Débloquez vos performances - Premium",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-09-24 14:24:43",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-09-24 20:24:43",
      "modified" : "2019-04-05 15:35:29",
      "modified_gmt" : "2019-04-05 21:35:29",
      "groupe" : "93",
      "prix" : "257.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "Sign Up",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Débloquez vos performances - Premium",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "delay",
      "expire_after" : "1",
      "expire_unit" : "semaines",
      "expire_fixed" : "2019-04-05",
      "tax_exempt" : faux,
      "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" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
     "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test",
      "address" : {
        "mepr-address-one" : "120 S 200 W",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "2019-01-02",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : "0",
    "id" : "189",
    "montant" : "257.00",
    "total" : "257.00",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "mp-txn-5ca7ca6a1d8a6",
    "status" : "en attente",
    "txn_type" : "payment",
    "gateway" : "peum51-1tc",
    "prorated" : "0",
    "created_at" : "2019-04-05 21:36:42",
    "expires_at" : "2019-04-19 23:59:59",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false
  },
  {
    "membership" : {
      "id" : 92,
      "title" : "Débloquez vos performances - Premium",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-09-24 14:24:43",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-09-24 20:24:43",
      "modified" : "2019-04-05 15:35:29",
      "modified_gmt" : "2019-04-05 21:35:29",
      "groupe" : "93",
      "prix" : "257.00",
      "période" : "1",
      "period_type" : "lifetime",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "0",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Débloquez vos performances - Premium",
      "pricing_show_price" : true,
      "pricing_display" : "auto",
      "custom_price" : "",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "delay",
      "expire_after" : "1",
      "expire_unit" : "semaines",
      "expire_fixed" : "2019-04-05",
      "tax_exempt" : faux,
      "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" : "Vous n'avez pas accès à l'achat de cet article."
    },
    "membre" : {
      "id" : 5,
     "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "http://zapier.test.com",
      "message" : "",
      "registered_at" : "2018-08-30 16:42:13",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapier test",
      "address" : {
        "mepr-address-one" : "120 S 200 W",
        "mepr-address-two" : "",
        "mepr-address-city" : "lehi",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "84043",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "",
        "mepr_birthday" : "2019-01-02",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : "0",
    "id" : "188",
    "montant" : "257.00",
    "total" : "257.00",
    "tax_amount" : "0.00",
    "tax_rate" : "0.000",
    "tax_desc" : "",
    "tax_class" : "standard",
    "trans_num" : "ch_1ELzhmJT1LHvX6ILPV6mtMr",
    "status" : "complete",
    "txn_type" : "payment",
    "gateway" : "peum51-1tc",
    "prorated" : "0",
    "created_at" : "2019-04-05 21:35:49",
    "expires_at" : "2019-04-12 23:59:59",
    "corporate_account_id" : "0",
    "parent_transaction_id" : "0",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null,
    "rebill" : false,
    "subscription_payment_index" : false,
    "commissions" : []
  }
]

Obtenir une transaction

Description

Obtenir une transaction avec un identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

$ curl "http://yourdomain.com/wp-json/mp/v1/transactions/167" \N- -h "memberpress-api-key : api-key-here".
       -H "MEMBERPRESS-API-KEY : API-KEY-HERE" \

Exemple de réponse

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

Créer une transaction

Description

Créer une transaction avec les valeurs de champ données.

Arguments de recherche

Aucun

Arguments de mise à jour

trans_num (chaîne, valeur par défaut : mp-txn-xxx...) - Le numéro de transaction unique.

montant (décimal, valeur par défaut : 0.00) - Prix de base de la transaction (hors taxes)

total (décimal, valeur par défaut : 0.00) - Le prix total de cette transaction (taxes incluses)

montant de la taxe (décimal, valeur par défaut : 0.00) - Permet de définir manuellement le montant de la taxe pour cette transaction.

taux d'imposition (décimal, valeur par défaut : 0.00) - Permet de définir manuellement le taux d'imposition pour cette transaction.

tax_desc (chaîne) - Permet de définir manuellement la description de la taxe pour cette transaction.

classe_d'impôt (chaîne, valeur par défaut : standard) - Permet de définir manuellement la classe de taxe pour cette transaction.

membre (Obligatoire) (entier, valeur par défaut : 0) - L'identifiant WordPress du membre.

l'adhésion (Obligatoire) (nombre entier, valeur par défaut : 0) - L'identifiant de l'adhérent associé à cette transaction.

coupon (entier, valeur par défaut : 0) - L'identifiant du coupon associé à cette transaction.

statut (chaîne, valeur par défaut : pending) - Le statut de cette transaction.

réponse (chaîne) - Un endroit où vous pouvez stocker les réponses POST ou GET de la passerelle de paiement pour référence ultérieure.

passerelle (chaîne, valeur par défaut : manuel) - L'identifiant unique de la méthode de paiement qui peut être trouvé dans l'onglet paiements de la page Paramètres de MemberPress.

abonnement (entier, valeur par défaut : 0) - L'ID du CPT d'abonnement récurrent associé à cette transaction.

date_de_création (chaîne, valeur par défaut : Current Timestamp) - Date de création de la transaction. Cette date doit être au format MySQL. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC.

expires_at (chaîne, valeur par défaut : 0000-00-00 00:00:00) - La date à laquelle la transaction expirera. Cette date doit être au format MySQL. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC. Remarque : laissez la valeur par défaut pour créer une transaction qui dure toute la vie (c'est-à-dire qui n'expire jamais).

send_welcome_email (bool, valeur par défaut : false) - La valeur "true" déclenche l'envoi d'un e-mail de bienvenue au nouveau membre. Si l'utilisateur a déjà reçu un message de bienvenue et que l'adhésion pour laquelle cette transaction est effectuée ne dispose pas de son propre message de bienvenue, aucun message ne sera envoyé.

send_receipt_email (bool, valeur par défaut : false) - La valeur "true" déclenche l'envoi d'un courrier électronique de réception de la transaction.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions" \N- -h "memberpress-api-key : api-key-here".
       -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" \N- -d tax_class=standard
       -d tax_class=standard \N- -d trans_num=="ch_1EFlows" \N
       -d trans_num= "ch_1EFl6yJT1LHvX6IL95fhb7M4" \N-trans_num= "ch_1EFl6yJT1LHvX6IL95fhb7M4" \N-trans_num=
       -d status=refunded \N
       -d gateway="peum51-1tc" \
       -d created_at="2019-03-19 16:48:28" \N- en anglais seulement
       -d expires_at="2019-04-19 23:59:59"

Exemple de réponse

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

Mise à jour de la transaction

Description

Mise à jour d'une transaction avec l'identifiant et les valeurs de champ donnés.

Arguments de recherche

Aucun

Arguments de mise à jour

trans_num (chaîne, valeur par défaut : mp-txn-xxx...) - Le numéro de transaction unique.

montant (décimal, valeur par défaut : 0.00) - Prix de base de la transaction (hors taxes)

total (décimal, valeur par défaut : 0.00) - Le prix total de cette transaction (taxes incluses)

montant de la taxe (décimal, valeur par défaut : 0.00) - Permet de définir manuellement le montant de la taxe pour cette transaction.

taux d'imposition (décimal, valeur par défaut : 0.00) - Permet de définir manuellement le taux d'imposition pour cette transaction.

tax_desc (chaîne) - Permet de définir manuellement la description de la taxe pour cette transaction.

classe_d'impôt (chaîne, valeur par défaut : standard) - Permet de définir manuellement la classe de taxe pour cette transaction.

membre (Obligatoire) (entier, valeur par défaut : 0) - L'identifiant WordPress du membre.

l'adhésion (Obligatoire) (nombre entier, valeur par défaut : 0) - L'identifiant de l'adhérent associé à cette transaction.

coupon (entier, valeur par défaut : 0) - L'identifiant du coupon associé à cette transaction.

statut (chaîne, valeur par défaut : pending) - Le statut de cette transaction.

réponse (chaîne) - Un endroit où vous pouvez stocker les réponses POST ou GET de la passerelle de paiement pour référence ultérieure.

passerelle (chaîne, valeur par défaut : manuel) - L'identifiant unique de la méthode de paiement qui peut être trouvé dans l'onglet paiements de la page Paramètres de MemberPress.

abonnement (entier, valeur par défaut : 0) - L'ID du CPT d'abonnement récurrent associé à cette transaction.

date_de_création (chaîne, valeur par défaut : Current Timestamp) - Date de création de la transaction. Cette date doit être au format MySQL. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC.

expires_at (chaîne, valeur par défaut : 0000-00-00 00:00:00) - La date à laquelle la transaction expirera. Cette date doit être au format MySQL. Toutes les dates stockées dans la base de données doivent être dans le fuseau horaire UTC. Remarque : laissez la valeur par défaut pour créer une transaction qui dure toute la vie (c'est-à-dire qui n'expire jamais).

send_welcome_email (bool, valeur par défaut : false) - La valeur "true" déclenche l'envoi d'un e-mail de bienvenue au nouveau membre. Si l'utilisateur a déjà reçu un message de bienvenue et que l'adhésion pour laquelle cette transaction est effectuée ne dispose pas de son propre message de bienvenue, aucun message ne sera envoyé.

send_receipt_email (bool, valeur par défaut : false) - La valeur "true" déclenche l'envoi d'un courrier électronique de réception de la transaction.

Demande d'échantillon

$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199" \N- -h "memberpress-api-key : api-key-here".
       -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" \N- -d tax_class=standard
       -d tax_class=standard \N- -d tax_class=standard
       -d trans_num= "ch_1EQdOLJT1LHvX6ILZhIzeboJ" \N-trans_num= "ch_1EQdOLJT1LHvX6ILZhIzeboJ" \N-trans_num=
       -d status=complete \N
       -d gateway="peum51-1tc" 
       -d created_at="2019-04-18 16:47:21" \N- en anglais seulement
       -d expires_at="2019-05-18 23:59:59"

Exemple de réponse

{
  "membership" : {
    "id" : 15,
    "title" : "Adhésion en or",
    "content" : "",
    "excerpt" : "",
    "date" : "2018-08-30 16:10:22",
    "status" : "publier",
    "author" : "2",
    "date_gmt" : "2018-08-30 16:10:22",
    "modified" : "2019-04-01 15:03:22",
    "modified_gmt" : "2019-04-01 21:03:22",
    "group" : "17",
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "2",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Adhésion en or",
    "pricing_show_price" : true,
    "pricing_display" : "custom",
    "custom_price" : "Pricing",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "Ceci est un test",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-04-01",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : "1",
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : "1",
    "custom_payment_methods" : [
      "peum51-1tc"
    ],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  "membre" : {
    "id" : 56,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-04-18 16:47:14",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapiertest",
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "MemberPress",
      "mepr_birthday" : "2019-04-18",
      "mepr_testslug" : ""
    }
  },
  "coupon" : "0",
  "abonnement" : {
    "coupon" : "0",
    "adhésion" : "15",
    "membre" : "56",
    "id" : "69",
    "subscr_id" : "cus_EuSIHGllVD3168",
    "gateway" : "peum51-1tc",
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-04-18 16:47:19",
    "total" : "100,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  },
  "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,
  "rebill" : false,
  "subscription_payment_index" : 1,
  "commissions" : []
}

Supprimer une transaction

Description

Supprime une transaction avec l'identifiant donné.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

{
  "membership" : {
    "id" : 15,
    "title" : "Adhésion en or",
    "content" : "",
    "excerpt" : "",
    "date" : "2018-08-30 16:10:22",
    "status" : "publier",
    "author" : "2",
    "date_gmt" : "2018-08-30 16:10:22",
    "modified" : "2019-04-01 15:03:22",
    "modified_gmt" : "2019-04-01 21:03:22",
    "group" : "17",
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "signup_button_text" : "S'inscrire",
    "limit_cycles" : false,
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "trial" : faux,
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "trial_once" : "1",
    "group_order" : "2",
    "is_highlighted" : faux,
    "plan_code" : "",
    "pricing_title" : "Adhésion en or",
    "pricing_show_price" : true,
    "pricing_display" : "custom",
    "custom_price" : "Pricing",
    "pricing_heading_txt" : "",
    "pricing_footer_txt" : "",
    "pricing_button_txt" : "S'inscrire",
    "pricing_button_position" : "footer",
    "pricing_benefits" : [
      ""
    ],
    "register_price_action" : "default",
    "register_price" : "Ceci est un test",
    "thank_you_page_enabled" : false,
    "thank_you_page_type" : "message",
    "thank_you_message" : "",
    "thank_you_page_id" : "0",
    "custom_login_urls_enabled" : false,
    "custom_login_urls_default" : "",
    "custom_login_urls" : [],
    "expire_type" : "none",
    "expire_after" : "1",
    "expire_unit" : "jours",
    "expire_fixed" : "2019-04-01",
    "tax_exempt" : faux,
    "allow_renewal" : false,
    "access_url" : "",
    "disable_address_fields" : false,
    "simultaneous_subscriptions" : "1",
    "use_custom_template" : false,
    "custom_template" : "template-sitemap.php",
    "customize_payment_methods" : "1",
    "custom_payment_methods" : [
      "peum51-1tc"
    ],
    "customize_profile_fields" : false,
    "custom_profile_fields" : [],
    "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article."
  },
  "membre" : {
    "id" : 56,
    "email" : "zapier@test.com",
    "nom d'utilisateur" : "zapiertest",
    "nicename" : "zapiertest",
    "url" : "",
    "message" : "",
    "registered_at" : "2019-04-18 16:47:14",
    "first_name" : "zapier",
    "last_name" : "test",
    "display_name" : "zapiertest",
    "address" : {
      "mepr-address-one" : "123 fake st",
      "mepr-address-two" : "",
      "mepr-address-city" : "city",
      "mepr-address-state" : "UT",
      "mepr-address-zip" : "81111",
      "mepr-address-country" : "US"
    },
    "profil" : {
      "mepr_company_name" : "MemberPress",
      "mepr_birthday" : "2019-04-18",
      "mepr_testslug" : ""
    }
  },
  "coupon" : "0",
  "abonnement" : {
    "coupon" : "0",
    "adhésion" : "15",
    "membre" : "56",
    "id" : "69",
    "subscr_id" : "cus_EuSIHGllVD3168",
    "gateway" : "peum51-1tc",
    "prix" : "100.00",
    "période" : "1",
    "period_type" : "mois",
    "limit_cycles" : "0",
    "limit_cycles_num" : "2",
    "limit_cycles_action" : "expire",
    "prorated_trial" : "0",
    "trial" : "0",
    "trial_days" : "0",
    "trial_amount" : "0.00",
    "status" : "actif",
    "created_at" : "2019-04-18 16:47:19",
    "total" : "100,00",
    "tax_rate" : "0.000",
    "tax_amount" : "0.00",
    "tax_desc" : "",
    "tax_class" : "standard",
    "cc_last4" : "1111",
    "cc_exp_month" : "10",
    "cc_exp_year" : "2020",
    "token" : "",
    "tax_compound" : "0",
    "tax_shipping" : "1",
    "response" : null
  },
  "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,
  "rebill" : false,
  "subscription_payment_index" : 1,
  "commissions" : []
}

Transaction de remboursement

Description

Remboursement d'une transaction donnée.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

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

Remboursement et annulation de la transaction

Description

Remboursement d'une transaction donnée et annulation de l'abonnement associé.

Arguments de recherche

Aucun

Arguments de mise à jour

Aucun

Demande d'échantillon

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

Exemple de réponse

{
  "message" : "La transaction a été remboursée avec succès et l'abonnement associé a été annulé",
  "data" : {
    "membership" : {
      "id" : 15,
      "title" : "Adhésion en or",
      "content" : "",
      "excerpt" : "",
      "date" : "2018-08-30 16:10:22",
      "status" : "publier",
      "author" : "2",
      "date_gmt" : "2018-08-30 16:10:22",
      "modified" : "2019-04-01 15:03:22",
      "modified_gmt" : "2019-04-01 21:03:22",
      "group" : "17",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "signup_button_text" : "S'inscrire",
      "limit_cycles" : false,
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "trial" : faux,
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "trial_once" : "1",
      "group_order" : "2",
      "is_highlighted" : faux,
      "plan_code" : "",
      "pricing_title" : "Adhésion en or",
      "pricing_show_price" : true,
      "pricing_display" : "custom",
      "custom_price" : "Pricing",
      "pricing_heading_txt" : "",
      "pricing_footer_txt" : "",
      "pricing_button_txt" : "S'inscrire",
      "pricing_button_position" : "footer",
      "pricing_benefits" : [
        ""
      ],
      "register_price_action" : "default",
      "register_price" : "Ceci est un test",
      "thank_you_page_enabled" : false,
      "thank_you_page_type" : "message",
      "thank_you_message" : "",
      "thank_you_page_id" : "0",
      "custom_login_urls_enabled" : false,
      "custom_login_urls_default" : "",
      "custom_login_urls" : [],
      "expire_type" : "none",
      "expire_after" : "1",
      "expire_unit" : "jours",
      "expire_fixed" : "2019-04-01",
      "tax_exempt" : faux,
      "allow_renewal" : false,
      "access_url" : "",
      "disable_address_fields" : false,
      "simultaneous_subscriptions" : "1",
      "use_custom_template" : false,
      "custom_template" : "template-sitemap.php",
      "customize_payment_methods" : "1",
      "custom_payment_methods" : [
        "peum51-1tc"
      ],
      "customize_profile_fields" : false,
      "custom_profile_fields" : [],
      "cannot_purchase_message" : "Vous n'avez pas accès à l'achat de cet article".
    },
    "membre" : {
      "id" : 56,
      "email" : "zapier@test.com",
      "nom d'utilisateur" : "zapiertest",
      "nicename" : "zapiertest",
      "url" : "",
      "message" : "",
      "registered_at" : "2019-04-18 16:47:14",
      "first_name" : "zapier",
      "last_name" : "test",
      "display_name" : "zapiertest",
      "address" : {
        "mepr-address-one" : "123 fake st",
        "mepr-address-two" : "",
        "mepr-address-city" : "city",
        "mepr-address-state" : "UT",
        "mepr-address-zip" : "81111",
        "mepr-address-country" : "US"
      },
      "profil" : {
        "mepr_company_name" : "MemberPress",
        "mepr_birthday" : "2019-04-18",
        "mepr_testslug" : ""
      }
    },
    "coupon" : "0",
    "abonnement" : {
      "coupon" : "0",
      "adhésion" : "15",
      "membre" : "56",
      "id" : "69",
      "subscr_id" : "cus_EuSIHGllVD3168",
      "gateway" : "peum51-1tc",
      "prix" : "100.00",
      "période" : "1",
      "period_type" : "mois",
      "limit_cycles" : "0",
      "limit_cycles_num" : "2",
      "limit_cycles_action" : "expire",
      "prorated_trial" : "0",
      "trial" : "0",
      "trial_days" : "0",
      "trial_amount" : "0.00",
      "status" : "actif",
      "created_at" : "2019-04-18 16:47:19",
      "total" : "100,00",
      "tax_rate" : "0.000",
      "tax_amount" : "0.00",
      "tax_desc" : "",
      "tax_class" : "standard",
      "cc_last4" : "1111",
      "cc_exp_month" : "10",
      "cc_exp_year" : "2020",
      "token" : "",
      "tax_compound" : "0",
      "tax_shipping" : "1",
      "response" : null
    },
    "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,
    "rebill" : false,
    "subscription_payment_index" : 1,
    "commissions" : []
  }
}
Cet article a-t-il été utile ?

Articles connexes

Besoin d'aide ?

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

Contenu

fille de l'ordinateur

Achetez MemberPress dès aujourd'hui !

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