Übersicht
Allgemein
Abonnements
- Abonnements erhalten
- Abonnement erhalten
- Abonnement erstellen
- Update Abonnement
- Abonnement löschen
- Abonnement kündigen
- Abonnement ablaufen
Mitglieder
Regeln
Mitgliedschaften
- Mitgliedschaften erhalten
- Mitgliedschaft erhalten
- Mitgliedschaft erstellen
- Update Mitgliedschaft
- Mitgliedschaft löschen
Gutscheine
Transaktionen
- Transaktionen erhalten
- Transaktion erhalten
- Transaktion erstellen
- Update-Transaktion
- Transaktion löschen
- Erstattungstransaktion
- Transaktion erstatten und stornieren
Ich
Beschreibung
Test der MemberPress REST-Endpunkt-Authentifizierung. Gibt bei Erfolg den Status 200 und bei Misserfolg den Status 401 zurück.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdoamin.com/wp-json/mp/v1/me" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Erfolg": wahr, "Daten": { "benutzername": "username" } }
Webhooks Abonnieren
Beschreibung
Abonnieren Sie einen oder alle Webhook(s) der MemberPress Developer Tools. Gibt bei einem Fehler einen 409-Fehler zurück.
Argumente suchen
Keine
Argumente aktualisieren
url (Erforderlich) (String) - Die URL, an die der Webhook die Anfrage senden wird.
Veranstaltung (erforderlich) (String) - Der Webhook wird durch dieses Ereignis ausgelöst und sendet Daten für dieses Ereignis.
Musteranfrage
$ curl -X POST ""http://http://yourdomain.com/wp-json/mp/v1/webhooks/subscribe" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d url="https://example.com" \ -d event="transaction-completed"
Beispielhafte Antwort
{ "Erfolg": wahr, "Daten": { "id": 1324 } }
Webhooks Abbestellen
Beschreibung
Abmeldung von einem beliebigen Webhook. Gibt bei einem Fehler einen 409-Fehler zurück.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/webhooks/unsubscribe/:id" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Erfolg": true }
Abonnements erhalten
Beschreibung
Ermittelt alle Abonnements auf der Grundlage der angegebenen Suchargumente.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) - Begrenzt die Ergebnisse auf diejenigen, die einer Zeichenkette entsprechen.
Mitglied (ganze Zahl) - Begrenzt die Ergebnisse auf die Abonnements eines bestimmten Mitglieds.
Mitgliedschaft (integer) - Begrenzt die Ergebnisse auf Abonnements für eine bestimmte Mitgliedschaft.
Coupon (integer) - Begrenzt die Ergebnisse auf Abonnements, die mit einem bestimmten Coupon erstellt wurden.
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "Gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 54, "email": "buddy@test2.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 267, "title": "coupon testing", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "status": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 51, "email": "coupon@testing4.com", "benutzername": "coupon@testing4.com", "nicename": "coupontesting4-com", "url": "", "message": "", "registered_at": "2019-04-03 18:01:05", "first_name": "coupon", "last_name": "testing4", "display_name": "gutschein testing4" }, "id": "64", "subscr_id": "cus_Eor77sLgMt4sIg", "gateway": { "name": "Stripe", "label": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "9.99", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "1", "trial_days": "90", "trial_amount": "29.94", "status": "aktiv", "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", "Antwort": null }, { "coupon": { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publish", "author": "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": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "100", "discount_mode": "erste-Zahlung", "trial_days": "0", "trial_amount": "0.00" }, "Mitgliedschaft": { "id": 267, "title": "coupon testing", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "status": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 50, "email": "coupon@testing3.com", "benutzername": "coupon@testing3.com", "nicename": "coupontesting3-com", "url": "", "message": "", "registered_at": "2019-04-03 17:53:28", "first_name": "coupon", "last_name": "testing3", "display_name": "gutschein testing3" }, "id": "63", "subscr_id": "cus_EoqzWnn2NY7UGL", "gateway": { "name": "Stripe", "label": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "9.99", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "1", "trial_days": "30", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 267, "title": "coupon testing", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "status": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 49, "email": "coupon@testing2.com", "benutzername": "coupon@testing2.com", "nicename": "coupontesting2-com", "url": "", "message": "", "registered_at": "2019-04-03 17:33:06", "first_name": "coupon", "last_name": "testing2", "display_name": "gutschein testing2" }, "id": "62", "subscr_id": "cus_EoqfMhbLzIxdXZ", "gateway": { "name": "stripe", "label": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "9.99", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "1", "trial_days": "90", "trial_amount": "29.94", "status": "aktiv", "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", "Antwort": null }, { "coupon": { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publish", "author": "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": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "100", "discount_mode": "erste-Zahlung", "trial_days": "0", "trial_amount": "0.00" }, "Mitgliedschaft": { "id": 267, "title": "coupon testing", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "status": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 48, "email": "coupon@testing.com", "benutzername": "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" }, "id": "61", "subscr_id": "cus_EoqTynS7epcvBN", "gateway": { "name": "Stripe", "label": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "9.99", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "1", "trial_days": "30", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 47, "email": "buddy@test.com", "benutzername": "buddy@test.com", "nicename": "buddytest-com", "url": "", "message": "", "registered_at": "2019-04-01 21:03:59", "first_name": "buddy", "last_name": "test", "display_name": "kumpel test" }, "id": "60", "subscr_id": "cus_Eo9bZvhtSyBpFV", "gateway": { "name": "stripe", "label": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test2.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "ausstehend", "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", "Antwort": null }, { "gutschein": false, "Mitgliedschaft": { "id": 250, "title": "25 1", "content": "", "excerpt": "", "date": "2019-03-13 16:20:17", "status": "veröffentlichen", "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", "price": "25.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "25 1", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-13", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 45, "email": "twenty@five.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.comwp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "25.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null } ]
Abonnement erhalten
Beschreibung
Ermittelt ein Abonnement mit einer bestimmten ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions/59" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Gutschein": false, "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 46, "email": "zapier@test.com", "benutzername": "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": "Mein Stripe-Gateway", "use_label": wahr, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Bezahlen Sie mit Ihrer Kreditkarte über Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mein Stripe-Gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": falsch, "force_ssl": falsch, "debug": falsch, "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": "" } }, "gespeichert": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "Rückerstattungen bearbeiten", "create-subscriptions", "Abonnements kündigen", "Abonnements aktualisieren", "Abonnements aussetzen", "Abonnements wieder aufnehmen", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }
Abonnement erstellen
Beschreibung
Erstellt ein Abonnement mit den angegebenen Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
subscr_id (String, Standardwert: mp-sub-xxx...) - Die Nummer des wiederkehrenden Abonnements. Damit wiederkehrende Rechnungen nachverfolgt werden können, sollte dies die genaue Abonnementnummer sein, die vom Payment Gateway für dieses Abonnement generiert wurde.
Antwort (string) - Ein Ort, an dem Sie POST- oder GET-Antworten des Zahlungsgateways zur späteren Bezugnahme speichern können.
Gateway (String, Standardwert: manuell) - Die eindeutige ID der Zahlungsmethode, die auf der Registerkarte "Zahlungen" der MemberPress-Einstellungsseite zu finden ist.
Mitglied (erforderlich) (ganze Zahl, Standardwert: 0) - Die WordPress-Benutzer-ID des Mitglieds.
Mitgliedschaft (Erforderlich) (Ganzzahl, Standardwert: 0) - Die ID der Mitgliedschaft, für die dieses Abonnement gilt.
Coupon (Ganzzahl, Standardwert: 0) - Die ID des für dieses Abonnement verwendeten Coupons.
Preis (dezimal, Standardwert: 0,00) - Der Abonnement-Zwischensummen-Betrag.
Zeitraum (Ganzzahl, Standardwert: 1) - Der Zeitraum für die Abrechnungszyklen des Abonnements. Weitere Informationen finden Sie in der Dokumentation zu Mitgliedschaften.
Zeitraum_Art (string, Standardwert: lifetime) - Der Typ des Abrechnungszeitraums. Weitere Informationen finden Sie in der Dokumentation zu Mitgliedschaften.
Grenzwert_Zyklen (bool, Standardwert: false) - Ob die Abrechnungszyklen für wiederkehrende Mitgliedszahlungen begrenzt werden sollen oder nicht. Bei true bricht MemberPress die wiederkehrenden Zahlungen ab, wenn die Anzahl der limit_cycles_num erreicht ist.
limit_cycles_num (Ganzzahl, Standardwert: 2) - Wenn limit_cycles true ist, wird diese Zahl verwendet, um zu bestimmen, wie viele wiederkehrende Rechnungen erfolgen sollen, bevor MemberPress das Abonnement automatisch kündigt. Bei einem Wert von 1 wird das Abonnement sofort nach der ersten Zahlung gekündigt, das Mitglied hat jedoch weiterhin Zugang, bis seine Transaktion abgelaufen ist.
limit_cycles_action (string, Standardwert: expire) - Wenn limit_cycles aktiviert ist, bestimmt dies den Zugang des Mitglieds, nachdem sein Abonnement sein Limit limit_cycles_num erreicht hat und gekündigt wurde. Bei der Einstellung "expire" verliert das Mitglied den Zugang, wenn seine letzte Transaktion abläuft. Bei der Einstellung "lifetime" wird dem Mitglied ein lebenslanger Zugang gewährt.
Versuch (bool, Standardwert: false) - Ob es für dieses Abonnement eine Probezeit gibt oder nicht. Probezeiträume funktionieren NUR bei automatisch wiederkehrenden Zahlungen.
test_tage (ganze Zahl, Standardwert: 0) - Wie viele Tage die Testphase dauern soll, bevor die regulären Abrechnungszyklen beginnen.
Versuch_Betrag (dezimal, Standardwert: 0,00) - Wenn eine Probezeit aktiviert ist, wird hier angegeben, wie viel der Benutzer für die Probezeit bezahlt hat.
Status (Erforderlich) (String, Standardwert: pending) - Der aktuelle Abrechnungsstatus des Abonnements.
erstellt_am (erforderlich) (String, Standardwert: null) - Das Datum, an dem das Abonnement erstellt wurde. Es sollte im MySQL-Datetime-Format oder im PHP-Format date('c') vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der Zeitzone UTC gespeichert sein.
insgesamt (dezimal, Standardwert: 0,00) - Der Gesamtbetrag des Abonnements (einschließlich Steuern).
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.
Musteranfrage
$ 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
Beispielhafte Antwort
{ "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 }
Update Abonnement
Beschreibung
Update a Subscription with the given id and field values.
Argumente suchen
Keine
Argumente aktualisieren
subscr_id (String, Standardwert: mp-sub-xxx...) - Die Nummer des wiederkehrenden Abonnements. Damit wiederkehrende Rechnungen nachverfolgt werden können, sollte dies die genaue Abonnementnummer sein, die vom Payment Gateway für dieses Abonnement generiert wurde.
Antwort (string) - Ein Ort, an dem Sie POST- oder GET-Antworten des Zahlungsgateways zur späteren Bezugnahme speichern können.
Gateway (String, Standardwert: manuell) - Die eindeutige ID der Zahlungsmethode, die auf der Registerkarte "Zahlungen" der MemberPress-Einstellungsseite zu finden ist.
Mitglied (erforderlich) (ganze Zahl, Standardwert: 0) - Die WordPress-Benutzer-ID des Mitglieds.
Mitgliedschaft (Erforderlich) (Ganzzahl, Standardwert: 0) - Die ID der Mitgliedschaft, für die dieses Abonnement gilt.
Coupon (Ganzzahl, Standardwert: 0) - Die ID des für dieses Abonnement verwendeten Coupons.
Preis (dezimal, Standardwert: 0,00) - Der Abonnement-Zwischensummen-Betrag.
Zeitraum (Ganzzahl, Standardwert: 1) - Der Zeitraum für die Abrechnungszyklen des Abonnements. Weitere Informationen finden Sie in der Dokumentation zu Mitgliedschaften.
Zeitraum_Art (string, Standardwert: lifetime) - Der Typ des Abrechnungszeitraums. Weitere Informationen finden Sie in der Dokumentation zu Mitgliedschaften.
Grenzwert_Zyklen (bool, Standardwert: false) - Ob die Abrechnungszyklen für wiederkehrende Mitgliedszahlungen begrenzt werden sollen oder nicht. Bei true bricht MemberPress die wiederkehrenden Zahlungen ab, wenn die Anzahl der limit_cycles_num erreicht ist.
limit_cycles_num (Ganzzahl, Standardwert: 2) - Wenn limit_cycles true ist, wird diese Zahl verwendet, um zu bestimmen, wie viele wiederkehrende Rechnungen erfolgen sollen, bevor MemberPress das Abonnement automatisch kündigt. Bei einem Wert von 1 wird das Abonnement sofort nach der ersten Zahlung gekündigt, das Mitglied hat jedoch weiterhin Zugang, bis seine Transaktion abgelaufen ist.
limit_cycles_action (string, Standardwert: expire) - Wenn limit_cycles aktiviert ist, bestimmt dies den Zugang des Mitglieds, nachdem sein Abonnement sein Limit limit_cycles_num erreicht hat und gekündigt wurde. Bei der Einstellung "expire" verliert das Mitglied den Zugang, wenn seine letzte Transaktion abläuft. Bei der Einstellung "lifetime" wird dem Mitglied ein lebenslanger Zugang gewährt.
Versuch (bool, Standardwert: false) - Ob es für dieses Abonnement eine Probezeit gibt oder nicht. Probezeiträume funktionieren NUR bei automatisch wiederkehrenden Zahlungen.
test_tage (ganze Zahl, Standardwert: 0) - Wie viele Tage die Testphase dauern soll, bevor die regulären Abrechnungszyklen beginnen.
Versuch_Betrag (dezimal, Standardwert: 0,00) - Wenn eine Probezeit aktiviert ist, wird hier angegeben, wie viel der Benutzer für die Probezeit bezahlt hat.
Status (Erforderlich) (String, Standardwert: pending) - Der aktuelle Abrechnungsstatus des Abonnements.
erstellt_am (erforderlich) (String, Standardwert: null) - Das Datum, an dem das Abonnement erstellt wurde. Es sollte im MySQL-Datetime-Format oder im PHP-Format date('c') vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der Zeitzone UTC gespeichert sein.
insgesamt (dezimal, Standardwert: 0,00) - Der Gesamtbetrag des Abonnements (einschließlich Steuern).
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.
Musteranfrage
$ 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
Beispielhafte Antwort
{ "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 }
Abonnement löschen
Beschreibung
Delete a Subscription with the given id.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/subscriptions/69" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "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 }
Abonnement kündigen
Beschreibung
Cancel a given subscription.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/subscriptions/59/cancel" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "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 } }
Abonnement ablaufen
Beschreibung
Expire all unexpired transactions associated with the Subscription.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X POST "http://yourdomain/wp-json/mp/v1/subscriptions/69/expire" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "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 } }
Mitglieder erhalten
Beschreibung
Get all Members based on the search arguments provided.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) – Limit results to those matching a string. Can only search by email or username.
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/members?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "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 } ] } ]
Mitglied werden
Beschreibung
Get one Member with a given id.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/members/46" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "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 } ] }
Mitglied erstellen
Beschreibung
Create a Member with the given field values.
Argumente suchen
Keine
Argumente aktualisieren
vor_name (string) – The User's First Name.
letzter_name (string) – The User's Last Name.
E-Mail (Required) (string) – The User's Email Address.
Nutzername (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.
Passwort (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.
Transaktion (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.
Stadt (string, default value: empty) – The user's city.
Staat (string, default value: empty) – The user's state.
zip (string, default value: empty) – The user's zip.
Land (string, default value: empty) – The user's country.
usermeta*** more info
Musteranfrage
$ 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
Beispielhafte Antwort
{ "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 } ] }
Update Mitglied
Beschreibung
Update a Member with the given id and field values.
Argumente suchen
Keine
Argumente aktualisieren
vor_name (string) – The User's First Name.
letzter_name (string) – The User's Last Name.
E-Mail (Required) (string) – The User's Email Address.
Nutzername (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.
Passwort (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.
Transaktion (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.
Stadt (string, default value: empty) – The user's city.
Staat (string, default value: empty) – The user's state.
zip (string, default value: empty) – The user's zip.
Land (string, default value: empty) – The user's country.
usermeta*** more info
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/members/56" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d email="zapier@test.com" \ -d username=zapiertest \ -d first_name=zapier \ -d last_name=test
Beispielhafte Antwort
{ "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 } ] }
Mitglied löschen
Beschreibung
Löscht ein Mitglied mit der angegebenen ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/members/56" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "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 } ] }
Regeln erhalten
Beschreibung
Ermittelt alle Regeln, die auf den angegebenen Suchargumenten basieren.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) - Begrenzt die Ergebnisse auf diejenigen, die einer Zeichenkette entsprechen.
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "id": 227, "title": "Eine einzelne Seite: Testseite", "date": "2019-02-20 10:34:06", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }, { "id": 175, "title": "Partial:", "date": "2018-12-14 14:57:43", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }, { "id": 77, "title": "Ein einziges Forum: Forum 1", "date": "2018-09-13 16:41:59", "status": "publish", "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-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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }, { "id": 23, "title": "Eine einzelne Seite: Beispielseite", "date": "2018-08-30 16:14:57", "status": "publish", "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" } ]
Regel erhalten
Beschreibung
Ermittelt eine Regel mit einer bestimmten ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/rules/227" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 227, "title": "Eine einzelne Seite: Testseite", "date": "2019-02-20 10:34:06", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }
Regel erstellen
Beschreibung
Erstellen Sie eine Regel mit den angegebenen Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
Regel_Art (String, Standardwert: all) - Der Typ der Regel, die Sie erstellen.
Regel_Inhalt (string) - Die ID des zu schützenden rule_type. Wenn Sie z. B. eine einzelne Seite schützen wollen, setzen Sie diesen Wert auf die ID dieser Seite. Wenn Sie eine ganze Kategorie schützen, wird hier die ID dieser Kategorie angegeben.
is_rule_content_regex (bool, Standardwert: false) - Ob der Abgleich mit regulären Ausdrücken bei "benutzerdefinierten" (aka Custom URI) rule_type's verwendet werden soll.
autorisierte_Mitgliedschaften (Erforderlich) (Array, Standardwert: []) - Ein Array von Mitgliedschafts-IDs, die dem Mitglied Zugriff auf den Inhalt gewähren, der durch diese Regel geschützt wird.
drip_enabled (bool, Standardwert: false) - Ob Dripping für diese Regel aktiviert werden soll.
Tropfmenge (ganzzahlig, Standardwert: 1) - Die Anzahl der Einheiten, um die das Abtropfen verzögert werden soll.
tropf_einheit (String, Standardwert: Tage) - Die Einheit, nach der der Inhalt getropft werden soll.
tropfen_nach (string, Standardwert: registers) - Das Datum, auf das sich das Dripping bezieht.
tropfen_nach_fest (string) - Wenn drip_after auf "fixed" gesetzt ist, muss dies ein gültiges Datum in der Zukunft sein, das die PHP-Funktion strtotime() interpretieren kann.
expires_enabled (bool, Standardwert: false) - Ob der Ablauf von Inhalten für diese Regel aktiviert werden soll.
abläuft_Betrag (Ganzzahl, Standardwert: 1) - Die Anzahl der Einheiten, um die der Ablauf der Inhalte verzögert werden soll.
ablauf_einheit (String, Standardwert: Tage) - Die Einheit, nach der der Inhalt abläuft.
ablaufen_nach (String, Standardwert: registers) - Das Datum, auf das sich der Ablauf des Inhalts bezieht.
expires_after_fixed (string) - Wenn expires_after auf "fixed" gesetzt ist, ist dies erforderlich und muss ein gültiges Datum in der Zukunft sein, das die PHP-Funktion strtotime() interpretieren kann.
unauth_excerpt_type (String, Standardwert: default) - Der Typ des Auszugs aus dem geschützten Inhalt, der nicht autorisierten Besuchern angezeigt werden soll. Wird ein anderer Wert als "Standard" festgelegt, wird das in den MemberPress-Optionen festgelegte globale Verhalten für alle durch diese Regel geschützten Inhalte außer Kraft gesetzt.
unauth_excerpt_size (Ganzzahl, Standardwert: 100) - Wird nur verwendet, wenn unauth_exceprt_type auf "custom" eingestellt ist. Unbefugten Besuchern werden X Zeichen des eigentlichen geschützten Inhalts als Auszug angezeigt.
unath_message_type (String, Standardwert: default) - Die Art der Meldung, die nicht autorisierten Benutzern angezeigt wird, die versuchen, durch diese Regel geschützte Inhalte anzuzeigen. Wird ein anderer Wert als "Standard" festgelegt, wird das in den MemberPress-Optionen festgelegte globale Verhalten für alle durch diese Regel geschützten Inhalte außer Kraft gesetzt.
unauth_message (string) - Wenn der unauth_message_type auf "custom" gesetzt ist, wird diese Zeichenkette als Meldung angezeigt, die nicht autorisierte Benutzer sehen, wenn sie versuchen, durch diese Regel geschützte Inhalte anzuzeigen.
unauth_login (string, Standardwert: default) - Ob das Login-Formular ein- oder ausgeblendet werden soll, oder ob die globalen Standardeinstellungen in den MemberPress-Optionen beibehalten werden sollen.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d rule_type=single_page \ -d rule_content=225 \ -d drip_unit=days \ -d drip_after=registers \ -d expires_unit=days \ -d expires_after=registers \ -d unauth_excerpt_type=default \ -d unauth_excerpt_size=100 \ -d unauth_message_type=Standard \ -d unauth_login=Standard
Beispielhafte Antwort
{ "id": 227, "title": "Eine einzelne Seite: Testseite", "date": "2019-02-20 10:34:06", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }
Update-Regel
Beschreibung
Aktualisieren einer Regel mit der angegebenen ID und den Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
Regel_Art (String, Standardwert: all) - Der Typ der Regel, die Sie erstellen.
Regel_Inhalt (string) - Die ID des zu schützenden rule_type. Wenn Sie z. B. eine einzelne Seite schützen wollen, setzen Sie diesen Wert auf die ID dieser Seite. Wenn Sie eine ganze Kategorie schützen, wird hier die ID dieser Kategorie angegeben.
is_rule_content_regex (bool, Standardwert: false) - Ob der Abgleich mit regulären Ausdrücken bei "benutzerdefinierten" (aka Custom URI) rule_type's verwendet werden soll.
autorisierte_Mitgliedschaften (Erforderlich) (Array, Standardwert: []) - Ein Array von Mitgliedschafts-IDs, die dem Mitglied Zugriff auf den Inhalt gewähren, der durch diese Regel geschützt wird.
drip_enabled (bool, Standardwert: false) - Ob Dripping für diese Regel aktiviert werden soll.
Tropfmenge (ganzzahlig, Standardwert: 1) - Die Anzahl der Einheiten, um die das Abtropfen verzögert werden soll.
tropf_einheit (String, Standardwert: Tage) - Die Einheit, nach der der Inhalt getropft werden soll.
tropfen_nach (string, Standardwert: registers) - Das Datum, auf das sich das Dripping bezieht.
tropfen_nach_fest (string) - Wenn drip_after auf "fixed" gesetzt ist, muss dies ein gültiges Datum in der Zukunft sein, das die PHP-Funktion strtotime() interpretieren kann.
expires_enabled (bool, Standardwert: false) - Ob der Ablauf von Inhalten für diese Regel aktiviert werden soll.
abläuft_Betrag (Ganzzahl, Standardwert: 1) - Die Anzahl der Einheiten, um die der Ablauf der Inhalte verzögert werden soll.
ablauf_einheit (String, Standardwert: Tage) - Die Einheit, nach der der Inhalt abläuft.
ablaufen_nach (String, Standardwert: registers) - Das Datum, auf das sich der Ablauf des Inhalts bezieht.
expires_after_fixed (string) - Wenn expires_after auf "fixed" gesetzt ist, ist dies erforderlich und muss ein gültiges Datum in der Zukunft sein, das die PHP-Funktion strtotime() interpretieren kann.
unauth_excerpt_type (String, Standardwert: default) - Der Typ des Auszugs aus dem geschützten Inhalt, der nicht autorisierten Besuchern angezeigt werden soll. Wird ein anderer Wert als "Standard" festgelegt, wird das in den MemberPress-Optionen festgelegte globale Verhalten für alle durch diese Regel geschützten Inhalte außer Kraft gesetzt.
unauth_excerpt_size (Ganzzahl, Standardwert: 100) - Wird nur verwendet, wenn unauth_exceprt_type auf "custom" eingestellt ist. Unbefugten Besuchern werden X Zeichen des eigentlichen geschützten Inhalts als Auszug angezeigt.
unath_message_type (String, Standardwert: default) - Die Art der Meldung, die nicht autorisierten Benutzern angezeigt wird, die versuchen, durch diese Regel geschützte Inhalte anzuzeigen. Wird ein anderer Wert als "Standard" festgelegt, wird das in den MemberPress-Optionen festgelegte globale Verhalten für alle durch diese Regel geschützten Inhalte außer Kraft gesetzt.
unauth_message (string) - Wenn der unauth_message_type auf "custom" gesetzt ist, wird diese Zeichenkette als Meldung angezeigt, die nicht autorisierte Benutzer sehen, wenn sie versuchen, durch diese Regel geschützte Inhalte anzuzeigen.
unauth_login (string, Standardwert: default) - Ob das Login-Formular ein- oder ausgeblendet werden soll, oder ob die globalen Standardeinstellungen in den MemberPress-Optionen beibehalten werden sollen.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules/227" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d rule_type=single_page \ -d rule_content=225 \ -d drip_unit=days \ -d drip_after=registers \ -d expires_unit=days \ -d expires_after=registers \ -d unauth_excerpt_type=default \ -d unauth_excerpt_size=100 \ -d unauth_message_type=Standard \ -d unauth_login=Standard
Beispielhafte Antwort
{ "id": 227, "title": "Eine einzelne Seite: Testseite", "date": "2019-02-20 10:34:06", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }
Regel löschen
Beschreibung
Löscht eine Regel mit der angegebenen ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/rules/227" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 227, "title": "Eine einzelne Seite: Testseite", "date": "2019-02-20 10:34:06", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Tage", "drip_after": "registers", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "Tage", "expires_after": "registers", "expires_after_fixed": "", "unauth_excerpt_type": "standard", "unauth_excerpt_size": "100", "unauth_message_type": "Standard", "unauth_message": "", "unauth_login": "Standard", "auto_gen_title": "1" }
Mitgliedschaften erhalten
Beschreibung
Ermittelt alle Mitgliedschaften auf der Grundlage der angegebenen Suchkriterien.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) - Begrenzt die Ergebnisse auf diejenigen, die einer Zeichenkette entsprechen.
Gruppe (Ganzzahl) - Begrenzt die Ergebnisse auf diejenigen, die einer bestimmten Gruppe entsprechen.
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/memberships?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "id": 274, "title": "3 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 271, "title": "Eintägige Mitgliedschaft", "content": "", "excerpt": "", "date": "2019-04-04 12:14:54", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "10.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Eintägige Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 267, "title": "Gutscheintest", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "9.99", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 251, "title": "25 2", "content": "", "excerpt": "", "date": "2019-03-13 16:20:43", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "25 Gruppe", "content": "", "excerpt": "", "date": "2019-03-13 16:21:20", "status": "veröffentlichen", "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": false, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": falsch, "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" }, "price": "10000.00", "Zeitraum": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "1", "is_highlighted": false, "plan_code": "", "pricing_title": "25 2", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-20", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 250, "title": "25 1", "content": "", "excerpt": "", "date": "2019-03-13 16:20:17", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "25 Gruppe", "content": "", "excerpt": "", "date": "2019-03-13 16:21:20", "status": "veröffentlichen", "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": false, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": falsch, "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" }, "price": "25.00", "Zeitraum": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "25 1", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-13", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 247, "title": "274 yearly", "content": "", "auszug": "", "date": "2019-03-04 15:47:14", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "veröffentlichen", "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": false, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": falsch, "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" }, "price": "274.00", "Zeitraum": "1", "period_type": "Jahre", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "1", "is_highlighted": false, "plan_code": "", "pricing_title": "274 jährlich", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 246, "title": "264 einmalig", "content": "", "excerpt": "", "date": "2019-03-04 15:46:37", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "veröffentlichen", "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": false, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": falsch, "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" }, "price": "264.00", "Zeitraum": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "264 einmalig", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Jahre", "expire_fixed": "2019-03-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 210, "title": "1 Tag Probezeit", "content": "", "excerpt": "", "date": "2019-02-07 12:39:50", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "10.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "14 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Tage", "expire_fixed": "2019-02-07", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 209, "title": "Probezeit mit Doppelanmeldung", "content": "", "excerpt": "", "date": "2019-02-06 15:14:14", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "10.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "1", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Probezeit Doppelanmeldung", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Tage", "expire_fixed": "2019-02-25", "tax_exempt": false, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 196, "title": "Coupon-Test", "content": "", "excerpt": "", "date": "2019-01-10 15:36:20", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "period": "1", "period_type": "Jahre", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "14", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "coupon test", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-02-19", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ]
Mitgliedschaft erhalten
Beschreibung
Ermittelt eine Mitgliedschaft mit einer bestimmten ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 274, "title": "3 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }
Mitgliedschaft erstellen
Beschreibung
Erstellen Sie eine Mitgliedschaft mit den angegebenen Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
Titel (Require) (string) - Der Titel der Mitgliedschaft.
Preis (dezimal, Standardwert: 0.00) - Der Basispreis für die Mitgliedschaft.
Zeitraum (ganze Zahl, Standardwert: 1) - Der Zeitraum für die Abrechnungszyklen der Mitgliedschaft. Für einmalige Zahlungen lassen Sie diesen Wert auf 1 stehen. Wenn Sie dem Kunden einmal im Quartal eine Rechnung stellen möchten, setzen Sie diesen Wert auf 3 und den period_type auf Monate. Es gibt einige Einschränkungen je nach period_type.
Zeitraum_Art (string, Standardwert: lifetime) - Der Typ des Abrechnungszeitraums. Für einmalige Zahlungen sollte dieser Wert immer auf "lifetime" gesetzt werden. Andere mögliche Werte sind "Wochen", "Monate" und "Jahre". Je nach Zeitraum gibt es einige Einschränkungen.
signup_button_text (string, Standardwert: Sign Up) - Der Text, der auf der Schaltfläche "Submit" (Abschicken) auf dem Anmeldeformular für diese Mitgliedschaft angezeigt wird.
Grenzwert_Zyklen (bool, Standardwert: false) - Ob die Abrechnungszyklen für wiederkehrende Mitgliedszahlungen begrenzt werden sollen oder nicht. Bei true bricht MemberPress die wiederkehrenden Zahlungen ab, wenn die Anzahl der limit_cycles_num erreicht ist.
limit_cycles_num (Ganzzahl, Standardwert: 2) - Wenn limit_cycles true ist, wird diese Zahl verwendet, um zu bestimmen, wie viele wiederkehrende Rechnungen erfolgen sollen, bevor MemberPress das Abonnement automatisch kündigt. Bei einem Wert von 1 wird das Abonnement sofort nach der ersten Zahlung gekündigt, das Mitglied hat jedoch weiterhin Zugang, bis seine Transaktion abgelaufen ist.
limit_cycles_action (string, Standardwert: expire) - Wenn limit_cycles aktiviert ist, bestimmt dies den Zugang des Mitglieds, nachdem sein Abonnement sein Limit limit_cycles_num erreicht hat und gekündigt wurde. Bei der Einstellung "expire" verliert das Mitglied den Zugang, wenn seine letzte Transaktion abläuft. Bei der Einstellung "lifetime" wird dem Mitglied ein lebenslanger Zugang gewährt.
Versuch (bool, Standardwert: false) - Ob es eine Probezeit für diese Mitgliedschaft geben wird oder nicht. Probezeiträume funktionieren NUR bei automatisch wiederkehrenden Zahlungen.
test_tage (ganze Zahl, Standardwert: 0) - Wie viele Tage die Testphase dauern soll, bevor die regulären Abrechnungszyklen beginnen.
Versuch_Betrag (dezimal, Standardwert: 0,00) - Wenn eine Probezeit aktiviert ist, gibt dies an, wie viel der Benutzer für die Probezeit bezahlen wird.
Gruppe (Ganzzahl, Standardwert: 0) - Die ID einer MemberPress-Gruppe, zu der diese Mitgliedschaft gehören soll. Der Standardwert ist keine Gruppe.
gruppe_ordnung (Ganzzahl, Standardwert: 0) - Wenn die Mitgliedschaft zu einer Gruppe gehört, bestimmt dies ihre Platzierung auf der Gruppenseite und wird auch zur Bestimmung der Upgrade/Downgrade-Pfade verwendet.
is_highlighted (bool, Standardwert: false) - Ob diese Mitgliedschaft in der Gruppe hervorgehoben werden soll oder nicht. Dies fügt zusätzliche CSS-Klassen hinzu, um das Feld "Preise/Merkmale" der Gruppe von den anderen abzuheben.
Preisgestaltung_Titel (string) - Der Titel, der oben im Preisfeld auf einer Gruppenseite angezeigt wird.
preisauszeichnung_anzeige (string, Standardwert: auto) - Wie der Preis im Preisfeld dieser Mitgliedschaft auf der Gruppenseite angezeigt werden soll.
preis_ueberschrift_txt (string) - Eine Überschrift, die in diesem Preisfeld angezeigt wird. Wird unterhalb des Preises, aber oberhalb der Liste der Merkmale/Vorteile angezeigt.
preis_footer_txt (string) - Zeigt eine Nachricht am Ende des Preisfeldes an. Wird direkt über der Schaltfläche "Kaufen" angezeigt.
preisgestaltung_button_txt (string) - Der Text der Kaufschaltfläche.
preis_vorteile (Array, Standardwert: []) - Ein Array von Strings. Jede Zeichenkette wird auf der Seite "Gruppe" in der Preisangabebox als Einzelposition angezeigt.
registrieren_preis (string) - Eine benutzerdefinierte Preiszeichenkette für diese Mitgliedschaft. Dies wird nur verwendet, wenn register_price_action auf "custom" eingestellt ist.
registrieren_preis_aktion (string, Standardwert: default) - Angabe, ob die von MemberPress generierte Standardpreisangabe, eine benutzerdefinierte Preisangabe oder eine vollständig ausgeblendete Preisangabe verwendet werden soll.
danke_für_die_seite_aktiviert (bool, Standardwert: false) - Wenn dieser Wert auf true gesetzt ist, wird der Inhalt der Dankeseite mit der in thank_you_message enthaltenen Nachricht überschrieben.
danke_ihr_nachricht (string) - Eine Zeichenkette, die die benutzerdefinierte Danke-Seite-Nachricht enthält, die auf der Danke-Seite angezeigt wird, wenn diese Mitgliedschaft gekauft wurde. thank_you_page_enabled muss auf true gesetzt werden, damit sie angezeigt wird.
custom_login_urls_enabled (bool, Standardwert: false) - Wenn dieser Wert auf true gesetzt ist, können Sie die Umleitung für die Anmeldung ändern, indem Sie die custom_login_urls_default und/oder die custom_login_urls verwenden, um zu steuern, wohin ein Mitglied nach der Anmeldung weitergeleitet wird.
custom_login_urls_default (string) - Die URL, an die das Mitglied von deafult beim Einloggen weitergeleitet wird, wenn es diese Mitgliedschaft erworben hat. Dies überschreibt die globale Login-Redirect-URL, die in MemberPress -> Optionen eingestellt ist.
benutzerdefinierte_login_urls (Array, Standardwert: []) - Ein Array von Standardobjekten. Jedes Objekt sollte \$obj->url und \$obj->count enthalten. url ist die URL, zu der der Benutzer bei der Anmeldung weitergeleitet werden soll, und count ist die Anzahl der Anmeldungen. Wenn Sie also beispielsweise den Benutzer bei seinem vierten Anmeldeversuch zu einer bestimmten Zielseite weiterleiten möchten, würden Sie die URL auf die Zielseite und die Anzahl auf 4 setzen.
ablauf_art (string, Standardwert: none) - Wenn es sich bei der Mitgliedschaft um eine einmalige Zahlung handelt (nicht automatisch wiederkehrend), können Sie festlegen, ob und wann sie auslaufen soll. Ein Wert von none bedeutet, dass die Mitgliedschaft lebenslang gültig ist. Der Wert "delay" bedeutet, dass sie zu einem bestimmten Zeitpunkt in der Zukunft ausläuft (Beispiel: 6 Monate). Und der Wert "fest" bedeutet, dass er an einem festen Datum in der Zukunft abläuft (Beispiel: 31. Dezember 2019). Hinweis: Dies funktioniert nicht bei wiederkehrenden Mitgliedschaften.
ablaufen_nach (Ganzzahl, Standardwert: 1) - Wenn expire_type auf "delay" eingestellt ist, legen Sie hiermit fest, nach wie vielen expire_units die Mitgliedschaft abläuft. Dies sollte eine Zahl sein (Beispiel "6", für 6 Tage/Monate/Wochen/Jahre).
ablauf_einheit (string, Standardwert: days) - Wenn expire_type auf "delay" eingestellt ist, verwenden Sie dies, um die Einheit für den expire_after-Wert festzulegen. Wenn expire_after beispielsweise auf "6" und dieser Wert auf "Monate" gesetzt wurde, würde die Mitgliedschaft 6 Monate nach dem Datum der Registrierung des Mitglieds ablaufen.
expire_fixed (string) - Wenn expire_type auf "fixed" gesetzt ist, dann setzen Sie dies auf die Zeichenkette des Datums, an dem diese Mitgliedschaft ablaufen soll. Sie können ein beliebiges Datumsformat verwenden, das die PHP-Funktion strtotime() verstehen kann.
steuerbefreit (bool, Standardwert: false) - Soll diese Mitgliedschaft von Steuern befreit werden oder nicht.
zulassen_verlängern (bool, Standardwert: false) - Erlaubt Mitgliedern, Einmalzahlungen zu erneuern, bevor sie abgelaufen sind. Hinweis: Dies funktioniert nur bei Mitgliedschaften mit Einmalzahlung, die den Wert "delay" expire_type haben.
zugangs_url (string) - Fügen Sie hier eine URL ein, die als Seite verwendet werden soll, von der aus das Mitglied auf den Inhalt dieses Mitgliedschaftsabonnements zugreifen kann.
gleichzeitige_Abonnements (bool, Standardwert: false) - Erlaubt Mitgliedern, mehrere aktive Abonnements für dieses Produkt gleichzeitig zu haben. Hinweis: Verwenden Sie dies nicht, wenn allow_renewal auf true gesetzt ist.
use_custom_template (bool, Standardwert: false) - Ob eine benutzerdefinierte Seitenvorlage für diese Mitgliederseite verwendet werden soll oder nicht.
benutzerdefinierte_Vorlage (string) - Der relative Pfad zu Ihrer Vorlagendatei.
anpassung_der_zahlungsmethodik (bool, Standardwert: false) - Zulassen, dass Zahlungsmethoden für diese Mitgliedschaft deaktiviert werden. Eine deaktivierte Zahlungsmethode kann von einem Mitglied beim Checkout nicht verwendet werden.
benutzerdefinierte_Zahlungsmethoden (Array, Standardwert: []) - Wenn customize_payment_methods true ist, muss dies ein Array mit den IDs der gültigen Zahlungsmethoden für diese Mitgliedschaft sein. Hinweis: Wenn gültige Zahlungsmethoden gefiltert werden, MUSS dies mindestens eine Gateway-ID enthalten.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d title="3 Tage kostenlos testen" \ -d price="25.00" \ -d period=1 \ -d period_type=months \ -d signup_button_text="Sign Up" \ -d limit_cycles_num=2 \ -d limit_cycles_action=expire \ \d trial=1 \ -d trial_days=3 \ -d trial_amount="0.00" \ \d pricing_title="3 Tage kostenlos testen" \ -d pricing_display=auto \ \d pricing_button_txt="Sign Up" \ -d register_price_action=default \ -d expire_type=none \ -d expire_after=1 \ -d expire_unit=days \ -d expire_fixed="2019-04-10" \ -d custom_template="template-sitemap.php"
Beispielhafte Antwort
{ "id": 274, "title": "3 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }
Update Mitgliedschaft
Beschreibung
Aktualisieren einer Mitgliedschaft mit der angegebenen ID und den Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
Titel (Require) (string) - Der Titel der Mitgliedschaft.
Preis (dezimal, Standardwert: 0.00) - Der Basispreis für die Mitgliedschaft.
Zeitraum (ganze Zahl, Standardwert: 1) - Der Zeitraum für die Abrechnungszyklen der Mitgliedschaft. Für einmalige Zahlungen lassen Sie diesen Wert auf 1 stehen. Wenn Sie dem Kunden einmal im Quartal eine Rechnung stellen möchten, setzen Sie diesen Wert auf 3 und den period_type auf Monate. Es gibt einige Einschränkungen je nach period_type.
Zeitraum_Art (string, Standardwert: lifetime) - Der Typ des Abrechnungszeitraums. Für einmalige Zahlungen sollte dieser Wert immer auf "lifetime" gesetzt werden. Andere mögliche Werte sind "Wochen", "Monate" und "Jahre". Je nach Zeitraum gibt es einige Einschränkungen.
signup_button_text (string, Standardwert: Sign Up) - Der Text, der auf der Schaltfläche "Submit" (Abschicken) auf dem Anmeldeformular für diese Mitgliedschaft angezeigt wird.
Grenzwert_Zyklen (bool, Standardwert: false) - Ob die Abrechnungszyklen für wiederkehrende Mitgliedszahlungen begrenzt werden sollen oder nicht. Bei true bricht MemberPress die wiederkehrenden Zahlungen ab, wenn die Anzahl der limit_cycles_num erreicht ist.
limit_cycles_num (Ganzzahl, Standardwert: 2) - Wenn limit_cycles true ist, wird diese Zahl verwendet, um zu bestimmen, wie viele wiederkehrende Rechnungen erfolgen sollen, bevor MemberPress das Abonnement automatisch kündigt. Bei einem Wert von 1 wird das Abonnement sofort nach der ersten Zahlung gekündigt, das Mitglied hat jedoch weiterhin Zugang, bis seine Transaktion abgelaufen ist.
limit_cycles_action (string, Standardwert: expire) - Wenn limit_cycles aktiviert ist, bestimmt dies den Zugang des Mitglieds, nachdem sein Abonnement sein Limit limit_cycles_num erreicht hat und gekündigt wurde. Bei der Einstellung "expire" verliert das Mitglied den Zugang, wenn seine letzte Transaktion abläuft. Bei der Einstellung "lifetime" wird dem Mitglied ein lebenslanger Zugang gewährt.
t
rial (bool, Standardwert: false) - Ob es eine Probezeit für diese Mitgliedschaft geben wird oder nicht. Probezeiträume funktionieren NUR bei automatisch wiederkehrenden Zahlungen.
test_tage (ganze Zahl, Standardwert: 0) - Wie viele Tage die Testphase dauern soll, bevor die regulären Abrechnungszyklen beginnen.
Versuch_Betrag (dezimal, Standardwert: 0,00) - Wenn eine Probezeit aktiviert ist, gibt dies an, wie viel der Benutzer für die Probezeit bezahlen wird.
Gruppe (Ganzzahl, Standardwert: 0) - Die ID einer MemberPress-Gruppe, zu der diese Mitgliedschaft gehören soll. Der Standardwert ist keine Gruppe.
gruppe_ordnung (Ganzzahl, Standardwert: 0) - Wenn die Mitgliedschaft zu einer Gruppe gehört, bestimmt dies ihre Platzierung auf der Gruppenseite und wird auch zur Bestimmung der Upgrade/Downgrade-Pfade verwendet.
is_highlighted (bool, Standardwert: false) - Ob diese Mitgliedschaft in der Gruppe hervorgehoben werden soll oder nicht. Dies fügt zusätzliche CSS-Klassen hinzu, um das Feld "Preise/Merkmale" der Gruppe von den anderen abzuheben.
Preisgestaltung_Titel (string) - Der Titel, der oben im Preisfeld auf einer Gruppenseite angezeigt wird.
preisauszeichnung_anzeige (string, Standardwert: auto) - Wie der Preis im Preisfeld dieser Mitgliedschaft auf der Gruppenseite angezeigt werden soll.
preis_ueberschrift_txt (string) - Eine Überschrift, die in diesem Preisfeld angezeigt wird. Wird unterhalb des Preises, aber oberhalb der Liste der Merkmale/Vorteile angezeigt.
preis_footer_txt (string) - Zeigt eine Nachricht am Ende des Preisfeldes an. Wird direkt über der Schaltfläche "Kaufen" angezeigt.
preisgestaltung_button_txt (string) - Der Text der Kaufschaltfläche.
preis_vorteile (Array, Standardwert: []) - Ein Array von Strings. Jede Zeichenkette wird auf der Seite "Gruppe" in der Preisangabebox als Einzelposition angezeigt.
registrieren_preis (string) - Eine benutzerdefinierte Preiszeichenkette für diese Mitgliedschaft. Dies wird nur verwendet, wenn register_price_action auf "custom" eingestellt ist.
registrieren_preis_aktion (string, Standardwert: default) - Angabe, ob die von MemberPress generierte Standardpreisangabe, eine benutzerdefinierte Preisangabe oder eine vollständig ausgeblendete Preisangabe verwendet werden soll.
danke_für_die_seite_aktiviert (bool, Standardwert: false) - Wenn dieser Wert auf true gesetzt ist, wird der Inhalt der Dankeseite mit der in thank_you_message enthaltenen Nachricht überschrieben.
danke_ihr_nachricht (string) - Eine Zeichenkette, die die benutzerdefinierte Danke-Seite-Nachricht enthält, die auf der Danke-Seite angezeigt wird, wenn diese Mitgliedschaft gekauft wurde. thank_you_page_enabled muss auf true gesetzt werden, damit sie angezeigt wird.
custom_login_urls_enabled (bool, Standardwert: false) - Wenn dieser Wert auf true gesetzt ist, können Sie die Umleitung für die Anmeldung ändern, indem Sie die custom_login_urls_default und/oder die custom_login_urls verwenden, um zu steuern, wohin ein Mitglied nach der Anmeldung weitergeleitet wird.
custom_login_urls_default (string) - Die URL, an die das Mitglied von deafult beim Einloggen weitergeleitet wird, wenn es diese Mitgliedschaft erworben hat. Dies überschreibt die globale Login-Redirect-URL, die in MemberPress -> Optionen eingestellt ist.
benutzerdefinierte_login_urls (Array, Standardwert: []) - Ein Array von Standardobjekten. Jedes Objekt sollte \$obj->url und \$obj->count enthalten. url ist die URL, zu der der Benutzer bei der Anmeldung weitergeleitet werden soll, und count ist die Anzahl der Anmeldungen. Wenn Sie also beispielsweise den Benutzer bei seinem vierten Anmeldeversuch zu einer bestimmten Zielseite weiterleiten möchten, würden Sie die URL auf die Zielseite und die Anzahl auf 4 setzen.
ablauf_art (string, Standardwert: none) - Wenn es sich bei der Mitgliedschaft um eine einmalige Zahlung handelt (nicht automatisch wiederkehrend), können Sie festlegen, ob und wann sie auslaufen soll. Ein Wert von none bedeutet, dass die Mitgliedschaft lebenslang gültig ist. Der Wert "delay" bedeutet, dass sie zu einem bestimmten Zeitpunkt in der Zukunft ausläuft (Beispiel: 6 Monate). Und der Wert "fest" bedeutet, dass er an einem festen Datum in der Zukunft abläuft (Beispiel: 31. Dezember 2019). Hinweis: Dies funktioniert nicht bei wiederkehrenden Mitgliedschaften.
ablaufen_nach (Ganzzahl, Standardwert: 1) - Wenn expire_type auf "delay" eingestellt ist, legen Sie hiermit fest, nach wie vielen expire_units die Mitgliedschaft abläuft. Dies sollte eine Zahl sein (Beispiel "6", für 6 Tage/Monate/Wochen/Jahre).
ablauf_einheit (string, Standardwert: days) - Wenn expire_type auf "delay" eingestellt ist, verwenden Sie dies, um die Einheit für den expire_after-Wert festzulegen. Wenn expire_after beispielsweise auf "6" und dieser Wert auf "Monate" gesetzt wurde, würde die Mitgliedschaft 6 Monate nach dem Datum der Registrierung des Mitglieds ablaufen.
expire_fixed (string) - Wenn expire_type auf "fixed" gesetzt ist, dann setzen Sie dies auf die Zeichenkette des Datums, an dem diese Mitgliedschaft ablaufen soll. Sie können ein beliebiges Datumsformat verwenden, das die PHP-Funktion strtotime() verstehen kann.
steuerbefreit (bool, Standardwert: false) - Soll diese Mitgliedschaft von Steuern befreit werden oder nicht.
zulassen_verlängern (bool, Standardwert: false) - Erlaubt Mitgliedern, Einmalzahlungen zu erneuern, bevor sie abgelaufen sind. Hinweis: Dies funktioniert nur bei Mitgliedschaften mit Einmalzahlung, die den Wert "delay" expire_type haben.
zugangs_url (string) - Fügen Sie hier eine URL ein, die als Seite verwendet werden soll, von der aus das Mitglied auf den Inhalt dieses Mitgliedschaftsabonnements zugreifen kann.
gleichzeitige_Abonnements (bool, Standardwert: false) - Erlaubt Mitgliedern, mehrere aktive Abonnements für dieses Produkt gleichzeitig zu haben. Hinweis: Verwenden Sie dies nicht, wenn allow_renewal auf true gesetzt ist.
use_custom_template (bool, Standardwert: false) - Ob eine benutzerdefinierte Seitenvorlage für diese Mitgliederseite verwendet werden soll oder nicht.
benutzerdefinierte_Vorlage (string) - Der relative Pfad zu Ihrer Vorlagendatei.
anpassung_der_zahlungsmethodik (bool, Standardwert: false) - Zulassen, dass Zahlungsmethoden für diese Mitgliedschaft deaktiviert werden. Eine deaktivierte Zahlungsmethode kann von einem Mitglied beim Checkout nicht verwendet werden.
benutzerdefinierte_Zahlungsmethoden (Array, Standardwert: []) - Wenn customize_payment_methods true ist, muss dies ein Array mit den IDs der gültigen Zahlungsmethoden für diese Mitgliedschaft sein. Hinweis: Wenn gültige Zahlungsmethoden gefiltert werden, MUSS dies mindestens eine Gateway-ID enthalten.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d title="3 Tage kostenlos testen" \ -d price="25.00" \ -d period=1 \ -d period_type=months \ -d signup_button_text="Sign Up" \ -d limit_cycles_num=2 \ -d limit_cycles_action=expire \ \d trial=1 \ -d trial_days=3 \ -d trial_amount="0.00" \ \d pricing_title="3 Tage kostenlos testen" \ -d pricing_display=auto \ \d pricing_button_txt="Sign Up" \ -d register_price_action=default \ -d expire_type=none \ -d expire_after=1 \ -d expire_unit=days \ -d expire_fixed="2019-04-10" \ -d custom_template="template-sitemap.php"
Beispielhafte Antwort
{ "id": 274, "title": "3 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }
Mitgliedschaft löschen
Beschreibung
Löscht eine Mitgliedschaft mit der angegebenen ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 274, "title": "3 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }
Gutscheine erhalten
Beschreibung
Ermittelt alle Gutscheine, die auf den angegebenen Suchargumenten basieren.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) - Begrenzt die Ergebnisse auf diejenigen, die einer Zeichenkette entsprechen.
Code (Integer) - Holen Sie sich den Coupon mit dem angegebenen Code.
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/coupons?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }, { "id": 269, "coupon_code": "EXV6U3844B", "date": "2019-04-03 11:59:20", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "0", "discount_mode": "trial-override", "trial_days": "90", "trial_amount": "0.00" }, { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "veröffentlichen", "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": "Monate", "signup_button_text": "Anmelden", "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", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "100", "discount_mode": "erste-Zahlung", "trial_days": "0", "trial_amount": "0.00" }, { "id": 253, "coupon_code": "WVJKX4WU86", "date": "2019-03-13 16:25:39", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "veröffentlichen", "author": "5", "date_gmt": "2019-03-13 22:20:43", "modified": "2019-03-20 13:02:42", "modified_gmt": "2019-03-20 19:02:42", "group": "252", "price": "10000.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "1", "is_highlighted": false, "plan_code": "", "pricing_title": "25 2", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-20", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Dollar", "discount_amount": "12.6", "discount_mode": "standard", "trial_days": "0", "trial_amount": "0.00" }, { "id": 233, "coupon_code": "FRX8L9X5UO", "date": "2019-02-20 14:36:54", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Behobener Ablauftest", "content": "", "excerpt": "", "date": "2018-11-16 09:58:51", "status": "publish", "author": "5", "date_gmt": "2018-11-16 16:58:51", "modified": "2019-02-20 14:41:58", "modified_gmt": "2019-02-20 21:41:58", "group": "0", "price": "75.00", "period": "1", "period_type": "Jahre", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Test mit festem Ablaufdatum", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "fest", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-03-31", "tax_exempt": false, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "1", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "100", "discount_mode": "standard", "trial_days": "0", "trial_amount": "0.00" }, { "id": 197, "coupon_code": "M5TGWIKIYU", "date": "2019-01-10 15:38:04", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "http://zapier.test.com", "message": "", "registered_at": "2018-08-30 16:42:13", "first_name": "zapier", "last_name": "test", "display_name": "zapier test" }, "date_gmt": "2019-01-10 22:38:04", "modified": "2019-02-05 10:18:06", "modified_gmt": "2019-02-05 17:18:06", "valid_memberships": [ { "id": 196, "title": "coupon test", "content": "", "excerpt": "", "date": "2019-01-10 15:36:20", "status": "publish", "author": "5", "date_gmt": "2019-01-10 22:36:20", "modified": "2019-02-19 12:15:59", "modified_gmt": "2019-02-19 19:15:59", "group": "0", "price": "100.00", "period": "1", "period_type": "Jahre", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "14", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "coupon test", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-02-19", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "3", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "20", "discount_mode": "trial-override", "trial_days": "2", "trial_amount": "0.00" }, { "id": 195, "coupon_code": "CJM43W9Y3K", "date": "2019-01-10 13:01:37", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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": "Platin-Mitgliedschaft", "content": "", "excerpt": "", "date": "2018-08-30 16:10:44", "status": "publish", "author": "2", "date_gmt": "2018-08-30 16:10:44", "modified": "2018-11-29 10:04:26", "modified_gmt": "2018-11-29 17:04:26", "group": "17", "price": "2600.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "3", "is_highlighted": false, "plan_code": "", "pricing_title": "Platin-Mitgliedschaft", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2018-11-29", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": "1", "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 14, "title": "Silber-Mitgliedschaft", "content": "", "excerpt": "", "date": "2018-08-30 16:09:57", "status": "publish", "author": "2", "date_gmt": "2018-08-30 16:09:57", "modified": "2018-08-30 16:09:57", "modified_gmt": "2018-08-30 16:09:57", "group": "17", "price": "25.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "1", "is_highlighted": false, "plan_code": "", "pricing_title": "Silber-Mitgliedschaft", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2018-08-30", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, { "id": 13, "title": "Bronze-Mitgliedschaft", "content": "", "excerpt": "", "date": "2018-08-30 16:08:50", "status": "publish", "author": "2", "date_gmt": "2018-08-30 16:08:50", "modified": "2019-01-14 13:49:13", "modified_gmt": "2019-01-14 20:49:13", "group": "17", "price": "0.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Bronze-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-01-14", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "1", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "30", "discount_mode": "erste-Zahlung", "trial_days": "0", "probe_betrag": "0.00" }, { "id": 157, "coupon_code": "QPL9MTM8CI", "date": "2018-12-04 10:45:16", "status": "veröffentlichen", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 des Aktualisierungsplans", "content": "", "excerpt": "", "date": "2018-11-29 12:00:53", "status": "publish", "author": "5", "date_gmt": "2018-11-29 19:00:53", "modified": "2018-11-29 12:00:53", "modified_gmt": "2018-11-29 19:00:53", "group": "0", "price": "10.00", "period": "1", "period_type": "Monate", "signup_button_text": "Sign Up", "limit_cycles": "1", "limit_cycles_num": "1", "limit_cycles_action": "expire", "trial": "1", "trial_days": "30", "trial_amount": "10.00", "trial_once": "1", "group_order": "5", "is_highlighted": false, "plan_code": "", "pricing_title": "Plan-Test aktualisieren", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2018-11-29", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "100", "discount_mode": "erste-Zahlung", "trial_days": "0", "trial_amount": "0.00" } ]
Coupon erhalten
Beschreibung
Ermittelt einen Coupon mit einer bestimmten ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Coupon erstellen
Beschreibung
Erstellt einen Coupon mit den angegebenen Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
gutschein_code (String, Standardwert: ) - Dies ist der Gutscheincode, der mit dem Gutschein verknüpft werden soll. Es sollte sich um einen eindeutigen Code handeln, der keine Leer- oder Sonderzeichen außer "-" enthält. Wenn Leerzeichen vorhanden sind, wird der Wert akzeptiert, aber MemberPress ersetzt sie durch Bindestriche. Auch wenn dieser Wert leer gelassen wird, generiert MemberPress automatisch einen eindeutigen Code für diesen Gutschein.
sollte_verfallen (bool, Standardwert: false) - Setzen Sie diesen Wert auf true, wenn der Coupon irgendwann in der Zukunft ablaufen soll.
abläuft_am (Erforderlich, wenn 'should_expire' true ist) (timestamp, Standardwert: null) - Setzen Sie dies auf den Unix-Zeitstempel, wann der Gutschein ablaufen soll.
verbrauch_betrag (Ganzzahl, Standardwert: 0) - Setzen Sie diesen Wert auf eine Zahl größer als Null, wenn Sie die Anzahl der Einsätze des Gutscheins begrenzen wollen.
rabatt_type (enum, Standardwert: Prozent) - Dies ändert die Art und Weise, in der MemberPress den "discount_amount" entweder als Prozentsatz oder als festen Betrag interpretiert.
rabatt_betrag (dezimal, Standardwert: 0,00) - Der Betrag des Rabatts. Je nach Einstellung von "discount_type" kann dies entweder ein fester Betrag oder ein Prozentsatz sein.
gültige_Mitgliedschaften (Erforderlich) (Array, Standardwert: []) - Sie können hier ein Array von Mitgliedschafts-IDs angeben, für die der Gutschein gelten soll.
discount_mode (String, Standardwert: Standard) - Legt den Rabatttyp fest. Kann auf standard, trial-override oder first-payment eingestellt werden. Bei der Einstellung "Standard" gilt der Rabatt für alle Zahlungen während der Laufzeit des Abonnements. Bei der Einstellung Erste Zahlung gilt der Rabatt nur für die erste Zahlung in einem automatisch wiederkehrenden Abonnement - dies wird erreicht, indem die Probezeit der Mitgliedschaft außer Kraft gesetzt wird. Bei der Einstellung trial-override wird auch die Probezeit für wiederkehrende Abonnements außer Kraft gesetzt.
erste_Zahlung_Rabatt_Art (enum, Standardwert: Prozent) - Dieser Wert wird ignoriert, wenn der discount_mode etwas anderes als "first-payment" ist. Dies ändert die Art und Weise, wie MemberPress den "first_payment_discount_amount" entweder als Prozentsatz oder als festen Betrag interpretiert. Gilt nur für wiederkehrende Abonnements.
erste_Zahlung_Rabatt_Betrag (dezimal, Standardwert: 0,00) - Dieser Wert wird ignoriert, wenn der discount_mode etwas anderes als "first-payment" ist. Der Betrag des Rabatts für die erste Zahlung eines wiederkehrenden Abonnements. Je nach Einstellung von "discount_type" kann dies entweder ein fester Betrag oder ein Prozentsatz sein.
test_tage (Ganzzahl, Standardwert: 0) - Legt die Anzahl der Testtage fest. Wird nur für wiederkehrende Abonnements verwendet und wenn discount_mode auf trial-override eingestellt ist.
Versuch_Betrag (dezimal, Standardwert: 0.00) - Legen Sie den Betrag für die Probezeit fest. Wird nur für wiederkehrende Abonnements verwendet und wenn discount_mode auf trial-override eingestellt ist.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d coupon_code="B2XJTM2YQB" \ -d discount_type=percent \ -d discount_amount=15 \ -d discount_mode=standard \ -d trial_days=3 \ -d trial_amount="0.00"
Beispielhafte Antwort
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Coupon aktualisieren
Beschreibung
Aktualisiert einen Coupon mit der angegebenen ID und den Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
gutschein_code (String, Standardwert: ) - Dies ist der Gutscheincode, der mit dem Gutschein verknüpft werden soll. Es sollte sich um einen eindeutigen Code handeln, der keine Leer- oder Sonderzeichen außer "-" enthält. Wenn Leerzeichen vorhanden sind, wird der Wert akzeptiert, aber MemberPress ersetzt sie durch Bindestriche. Auch wenn dieser Wert leer gelassen wird, generiert MemberPress automatisch einen eindeutigen Code für diesen Gutschein.
sollte_verfallen (bool, Standardwert: false) - Setzen Sie diesen Wert auf true, wenn der Coupon irgendwann in der Zukunft ablaufen soll.
abläuft_am (Erforderlich, wenn 'should_expire' true ist) (timestamp, Standardwert: null) - Setzen Sie dies auf den Unix-Zeitstempel, wann der Gutschein ablaufen soll.
verbrauch_betrag (Ganzzahl, Standardwert: 0) - Setzen Sie diesen Wert auf eine Zahl größer als Null, wenn Sie die Anzahl der Einsätze des Gutscheins begrenzen wollen.
rabatt_type (enum, Standardwert: Prozent) - Dies ändert die Art und Weise, in der MemberPress den "discount_amount" entweder als Prozentsatz oder als festen Betrag interpretiert.
rabatt_betrag (dezimal, Standardwert: 0,00) - Der Betrag des Rabatts. Je nach Einstellung von "discount_type" kann dies entweder ein fester Betrag oder ein Prozentsatz sein.
gültige_Mitgliedschaften (Erforderlich) (Array, Standardwert: []) - Sie können hier ein Array von Mitgliedschafts-IDs angeben, für die der Gutschein gelten soll.
discount_mode (String, Standardwert: Standard) - Legt den Rabatttyp fest. Kann auf standard, trial-override oder first-payment eingestellt werden. Bei der Einstellung "Standard" gilt der Rabatt für alle Zahlungen während der Laufzeit des Abonnements. Bei der Einstellung Erste Zahlung gilt der Rabatt nur für die erste Zahlung in einem automatisch wiederkehrenden Abonnement - dies wird erreicht, indem die Probezeit der Mitgliedschaft außer Kraft gesetzt wird. Bei der Einstellung trial-override wird auch die Probezeit für wiederkehrende Abonnements außer Kraft gesetzt.
erste_Zahlung_Rabatt_Art (enum, Standardwert: Prozent) - Dieser Wert wird ignoriert, wenn der discount_mode etwas anderes als "first-payment" ist. Dies ändert die Art und Weise, wie MemberPress den "first_payment_discount_amount" entweder als Prozentsatz oder als festen Betrag interpretiert. Gilt nur für wiederkehrende Abonnements.
erste_Zahlung_Rabatt_Betrag (dezimal, Standardwert: 0,00) - Dieser Wert wird ignoriert, wenn der discount_mode etwas anderes als "first-payment" ist. Der Betrag des Rabatts für die erste Zahlung eines wiederkehrenden Abonnements. Je nach Einstellung von "discount_type" kann dies entweder ein fester Betrag oder ein Prozentsatz sein.
test_tage (Ganzzahl, Standardwert: 0) - Legt die Anzahl der Testtage fest. Wird nur für wiederkehrende Abonnements verwendet und wenn discount_mode auf trial-override eingestellt ist.
Versuch_Betrag (dezimal, Standardwert: 0.00) - Legen Sie den Betrag für die Probezeit fest. Wird nur für wiederkehrende Abonnements verwendet und wenn discount_mode auf trial-override eingestellt ist.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d coupon_code="B2XJTM2YQB" \ -d discount_type=percent \ -d discount_amount=15 \ -d discount_mode=standard \ -d trial_days=3 \ -d trial_amount="0.00"
Beispielhafte Antwort
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Coupon löschen
Beschreibung
Löscht einen Coupon mit der angegebenen ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "benutzername": "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 Tage kostenlos testen", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": "1", "trial_days": "3", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "3 Tage kostenlos testen", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "rabatt_type": "Prozent", "rabatt_Betrag": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Transaktionen erhalten
Beschreibung
Ermittelt eine Transaktion mit einer bestimmten ID.
Argumente suchen
Seite (ganze Zahl, Standardwert: 1) - Aktuelle Seite der Sammlung.
pro_Seite (ganze Zahl, Standardwert: 10) - Maximale Anzahl der Elemente, die in der Ergebnismenge zurückgegeben werden.
Suche (string) - Begrenzt die Ergebnisse auf diejenigen, die einer Zeichenkette entsprechen.
Mitglied (integer) - Begrenzt die Ergebnisse auf Transaktionen eines bestimmten Mitglieds.
Mitgliedschaft (ganze Zahl) - Begrenzt die Ergebnisse auf Transaktionen für eine bestimmte Mitgliedschaft.
Coupon (ganze Zahl) - Begrenzt die Ergebnisse auf Transaktionen, die mit einem bestimmten Coupon erstellt wurden.
Status (string) - Begrenzt die Ergebnisse auf Transaktionen mit einem bestimmten Status.
Gateway (string) - Begrenzt die Ergebnisse auf Transaktionen, die mit einem bestimmten Zahlungs-Gateway erstellt wurden. Sollte eine eindeutige ID der Zahlungsmethode sein, die auf der Registerkarte "Zahlungen" auf der Seite "MemberPress-Einstellungen" zu finden ist.
Abonnement (Integer) - Ergebnisse auf Transaktionen beschränken, die mit einem bestimmten Abonnement verbunden sind
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/transactions?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
[ { "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "56", "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "199", "Betrag": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] }, { "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "56", "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "198", "Betrag": "0.00", "gesamt": "0.00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "cus_EuSIHGllVD3168", "status": "bestätigt", "txn_type": "subscription_confirmation", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "abonnement_zahlungs_index": false }, { "Mitgliedschaft": { "id": 271, "title": "Eintägige Mitgliedschaft", "content": "", "excerpt": "", "date": "2019-04-04 12:14:54", "status": "veröffentlichen", "author": "5", "date_gmt": "2019-04-04 18:14:54", "modified": "2019-04-04 12:14:54", "modified_gmt": "2019-04-04 18:14:54", "group": "0", "price": "10.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Eintägige Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Tage", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "adresse": { "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", "Betrag": "10.00", "gesamt": "10,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EPstWJT1LHvX6ILpbHj3WEZ", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "abonnement_zahlungsindex": false, "commissions": [] }, { "Mitgliedschaft": { "id": 14, "title": "Silber-Mitgliedschaft", "content": "", "excerpt": "", "date": "2018-08-30 16:09:57", "status": "publish", "author": "2", "date_gmt": "2018-08-30 16:09:57", "modified": "2018-08-30 16:09:57", "modified_gmt": "2018-08-30 16:09:57", "group": "17", "price": "25.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "1", "is_highlighted": false, "plan_code": "", "pricing_title": "Silber-Mitgliedschaft", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2018-08-30", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "adresse": { "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", "Mitgliedschaft": "14", "Mitglied": "5", "id": "35", "subscr_id": "cus_ELEy7Swsow2wLS", "gateway": "peum51-1tc", "price": "25.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "194", "Betrag": "25.00", "gesamt": "25,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EPCLEJT1LHvX6ILbOivd11C", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": wahr, "subscription_payment_index": 4, "commissions": [] }, { "Mitgliedschaft": { "id": 167, "title": "trial cancellation test", "content": "", "excerpt": "", "date": "2018-12-14 08:17:25", "status": "veröffentlichen", "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", "period": "1", "periode_art": "Monate", "signup_button_text": "Anmelden", "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": false, "plan_code": "", "pricing_title": "trial cancellation test", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "expire_fixed": "2018-12-14", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 29, "email": "trial3@test.com", "benutzername": "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", "adresse": { "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", "Mitgliedschaft": "167", "Mitglied": "29", "id": "26", "subscr_id": "cus_E9beibZQIjrARq", "gateway": "peum51-1tc", "price": "20.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "1", "trial_days": "30", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "193", "Betrag": "20.00", "gesamt": "20,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EOodxJT1LHvX6ILTPMeYLk3", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": wahr, "subscription_payment_index": 4, "commissions": [] }, { "Mitgliedschaft": { "id": 209, "title": "Probezeit Doppelanmeldung", "content": "", "excerpt": "", "date": "2019-02-06 15:14:14", "status": "veröffentlichen", "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", "price": "10.00", "period": "1", "period_type": "Monate", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "1", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Probezeit Doppelanmeldung", "preisgestaltung_show_preis": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Tage", "expire_fixed": "2019-02-25", "tax_exempt": false, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 40, "email": "multitrial@test.com", "benutzername": "multitrialtest", "nicename": "multitrialtest", "url": "", "message": "", "registered_at": "2019-02-06 22:16:19", "first_name": "multitrial", "last_name": "test", "display_name": "multitrialtest", "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", "Mitgliedschaft": "209", "Mitglied": "40", "id": "42", "subscr_id": "cus_EVj7zawVe0xj3O", "gateway": "peum51-1tc", "price": "10.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "192", "Betrag": "10.00", "gesamt": "10,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EO6jWJT1LHvX6ILxfcxx7UR", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": wahr, "subscription_payment_index": 3, "commissions": [] }, { "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 13, "email": "test6@email.com", "benutzername": "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", "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", "Mitgliedschaft": "15", "Mitglied": "13", "id": "4", "subscr_id": "I-NTY3JJ4SEM15", "gateway": "pejdpl-1yy", "price": "100.00", "Zeitraum": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "191", "Betrag": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "94773182YA5488446", "status": "vollständig", "txn_type": "payment", "gateway": "pejdpl-1yy", "anteilig": "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", "Antwort": null, "rebill": wahr, "subscription_payment_index": 8, "commissions": [] }, { "Mitgliedschaft": "0", "Mitglied": { "id": 24, "email": "diggity@email.com", "benutzername": "diggity@email.com", "nicename": "diggityemail-com", "url": "", "message": "", "registered_at": "2018-12-03 20:30:51", "first_name": "test", "last_name": "benutzername", "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", "Mitgliedschaft": "0", "Mitglied": "24", "id": "21", "subscr_id": "cus_E5ZCTZ9Z5OaNks", "gateway": "peum51-1tc", "price": "10.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "190", "Betrag": "10.00", "gesamt": "10,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EMLD1JT1LHvX6ILTpgwZu0q", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": wahr, "subscription_payment_index": 5, "commissions": [] }, { "Mitgliedschaft": { "id": 92, "title": "Unlock Your Performance - Premium", "content": "", "excerpt": "", "date": "2018-09-24 14:24:43", "status": "publish", "author": "2", "date_gmt": "2018-09-24 20:24:43", "modified": "2019-04-05 15:35:29", "modified_gmt": "2019-04-05 21:35:29", "group": "93", "price": "257.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Entfesseln Sie Ihre Leistung - Premium", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Wochen", "expire_fixed": "2019-04-05", "tax_exempt": false, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "adresse": { "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", "Betrag": "257.00", "gesamt": "257,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "mp-txn-5ca7ca6a1d8a6", "status": "schwebend", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "abonnement_zahlungs_index": false }, { "Mitgliedschaft": { "id": 92, "title": "Unlock Your Performance - Premium", "content": "", "excerpt": "", "date": "2018-09-24 14:24:43", "status": "publish", "author": "2", "date_gmt": "2018-09-24 20:24:43", "modified": "2019-04-05 15:35:29", "modified_gmt": "2019-04-05 21:35:29", "group": "93", "price": "257.00", "period": "1", "period_type": "Lebensdauer", "signup_button_text": "Anmelden", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "0", "is_highlighted": false, "plan_code": "", "pricing_title": "Entfesseln Sie Ihre Leistung - Premium", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "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": "Wochen", "expire_fixed": "2019-04-05", "tax_exempt": false, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "gleichzeitige_Abonnements": 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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 5, "email": "zapier@test.com", "benutzername": "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", "adresse": { "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", "Betrag": "257.00", "gesamt": "257,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1ELzhmJT1LHvX6ILPVV6mtMr", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "abonnement_zahlungsindex": false, "commissions": [] } ]
Transaktion erhalten
Beschreibung
Ermittelt eine Transaktion mit einer bestimmten ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl "http://yourdomain.com/wp-json/mp/v1/transactions/167" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 46, "email": "zapier@test.com", "benutzername": "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", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "46", "id": "59", "subscr_id": "cus_EjDYhKuKyRY5N2", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }, "id": "167", "amount": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "zurückerstattet", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] }
Transaktion erstellen
Beschreibung
Erstellen Sie eine Transaktion mit den angegebenen Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
trans_num (String, Standardwert: mp-txn-xxx...) - Die eindeutige Transaktionsnummer.
Betrag (dezimal, Standardwert: 0.00) - Der Basispreis für die Transaktion (ohne Steuer)
insgesamt (dezimal, Standardwert: 0.00) - Der Gesamtpreis für diese Transaktion (einschließlich Steuer)
Steuer_Betrag (dezimal, Standardwert: 0,00) - Verwenden Sie diese Option, um den Steuerbetrag für diese Transaktion manuell festzulegen.
steuer_satz (dezimal, Standardwert: 0,00) - Verwenden Sie diese Option, um den Steuersatz für diese Transaktion manuell festzulegen.
tax_desc (string) - Verwenden Sie dies, um die Steuerbeschreibung für diese Transaktion manuell festzulegen.
steuer_klasse (String, Standardwert: Standard) - Verwenden Sie dies, um die Steuerklasse für diese Transaktion manuell festzulegen.
Mitglied (erforderlich) (ganze Zahl, Standardwert: 0) - Die WordPress-Benutzer-ID des Mitglieds.
Mitgliedschaft (Erforderlich) (Ganzzahl, Standardwert: 0) - Die mit dieser Transaktion verbundene Mitgliedschafts-ID.
Coupon (Ganzzahl, Standardwert: 0) - Die mit dieser Transaktion verbundene Coupon-ID.
Status (String, Standardwert: pending) - Der Status dieses Vorgangs.
Antwort (string) - Ein Ort, an dem Sie POST- oder GET-Antworten des Zahlungsgateways zur späteren Bezugnahme speichern können.
Gateway (String, Standardwert: manuell) - Die eindeutige ID der Zahlungsmethode, die auf der Registerkarte "Zahlungen" der MemberPress-Einstellungsseite zu finden ist.
Abonnement (Ganzzahl, Standardwert: 0) - Die ID des mit dieser Transaktion verbundenen CPT für wiederkehrende Abonnements.
erstellt_am (String, Standardwert: Current Timestamp) - Das Datum, an dem die Transaktion erstellt wurde. Dieses Datum sollte im MySQL-Datetime-Format vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der UTC-Zeitzone angegeben werden.
abläuft_am (String, Standardwert: 0000-00-00 00:00:00) - Das Datum, an dem die Transaktion abläuft. Dieses Datum sollte im MySQL-Datetime-Format vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der UTC-Zeitzone sein. Hinweis: Belassen Sie es beim Standardwert, um eine Transaktion zu erstellen, die ein Leben lang gültig ist (d.h. nie abläuft).
send_welcome_email (bool, Standardwert: false) - Wenn dies auf true gesetzt ist, wird eine Willkommens-E-Mail an das neue Mitglied gesendet. Wenn der Benutzer bereits eine Begrüßungs-E-Mail erhalten hat und die Mitgliedschaft, für die diese Transaktion gilt, keine eigene Begrüßungs-E-Mail konfiguriert hat, wird keine E-Mail gesendet.
empfangsbestätigung_email senden (bool, Standardwert: false) - Wenn diese Option auf true gesetzt ist, wird eine E-Mail mit einer Transaktionsbestätigung gesendet.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d amount="100.00" \ -d total="100.00" \ -d tax_amount="0.00" \ -d tax_rate="0.000" \ -d tax_class=standard \ -d trans_num="ch_1EFl6yJT1LHvX6IL95fhb7M4" \ -d status=refunded \ -d gateway="peum51-1tc" \ -d created_at="2019-03-19 16:48:28" \ -d expires_at="2019-04-19 23:59:59"
Beispielhafte Antwort
{ "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 46, "email": "zapier@test.com", "benutzername": "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", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "46", "id": "59", "subscr_id": "cus_EjDYhKuKyRY5N2", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }, "id": "167", "amount": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "zurückerstattet", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] }
Update-Transaktion
Beschreibung
Aktualisierung einer Transaktion mit der angegebenen ID und den Feldwerten.
Argumente suchen
Keine
Argumente aktualisieren
trans_num (String, Standardwert: mp-txn-xxx...) - Die eindeutige Transaktionsnummer.
Betrag (dezimal, Standardwert: 0.00) - Der Basispreis für die Transaktion (ohne Steuer)
insgesamt (dezimal, Standardwert: 0.00) - Der Gesamtpreis für diese Transaktion (einschließlich Steuer)
Steuer_Betrag (dezimal, Standardwert: 0,00) - Verwenden Sie diese Option, um den Steuerbetrag für diese Transaktion manuell festzulegen.
steuer_satz (dezimal, Standardwert: 0,00) - Verwenden Sie diese Option, um den Steuersatz für diese Transaktion manuell festzulegen.
tax_desc (string) - Verwenden Sie dies, um die Steuerbeschreibung für diese Transaktion manuell festzulegen.
steuer_klasse (String, Standardwert: Standard) - Verwenden Sie dies, um die Steuerklasse für diese Transaktion manuell festzulegen.
Mitglied (erforderlich) (ganze Zahl, Standardwert: 0) - Die WordPress-Benutzer-ID des Mitglieds.
Mitgliedschaft (Erforderlich) (Ganzzahl, Standardwert: 0) - Die mit dieser Transaktion verbundene Mitgliedschafts-ID.
Coupon (Ganzzahl, Standardwert: 0) - Die mit dieser Transaktion verbundene Coupon-ID.
Status (String, Standardwert: pending) - Der Status dieses Vorgangs.
Antwort (string) - Ein Ort, an dem Sie POST- oder GET-Antworten des Zahlungsgateways zur späteren Bezugnahme speichern können.
Gateway (String, Standardwert: manuell) - Die eindeutige ID der Zahlungsmethode, die auf der Registerkarte "Zahlungen" der MemberPress-Einstellungsseite zu finden ist.
Abonnement (Ganzzahl, Standardwert: 0) - Die ID des mit dieser Transaktion verbundenen CPT für wiederkehrende Abonnements.
erstellt_am (String, Standardwert: Current Timestamp) - Das Datum, an dem die Transaktion erstellt wurde. Dieses Datum sollte im MySQL-Datetime-Format vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der UTC-Zeitzone angegeben werden.
abläuft_am (String, Standardwert: 0000-00-00 00:00:00) - Das Datum, an dem die Transaktion abläuft. Dieses Datum sollte im MySQL-Datetime-Format vorliegen. Alle in der Datenbank gespeicherten Daten sollten in der UTC-Zeitzone sein. Hinweis: Belassen Sie es beim Standardwert, um eine Transaktion zu erstellen, die ein Leben lang gültig ist (d.h. nie abläuft).
send_welcome_email (bool, Standardwert: false) - Wenn dies auf true gesetzt ist, wird eine Willkommens-E-Mail an das neue Mitglied gesendet. Wenn der Benutzer bereits eine Begrüßungs-E-Mail erhalten hat und die Mitgliedschaft, für die diese Transaktion gilt, keine eigene Begrüßungs-E-Mail konfiguriert hat, wird keine E-Mail gesendet.
empfangsbestätigung_email senden (bool, Standardwert: false) - Wenn diese Option auf true gesetzt ist, wird eine E-Mail mit einer Transaktionsbestätigung gesendet.
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d amount="100.00" \ -d total="100.00" \ -d tax_amount="0.00" \ -d tax_rate="0.000" \ -d tax_class=standard \ -d trans_num="ch_1EQdOLJT1LHvX6ILZhIzeboJ" \ -d status=complete \ -d gateway="peum51-1tc" \ -d created_at="2019-04-18 16:47:21" \ -d expires_at="2019-05-18 23:59:59"
Beispielhafte Antwort
{ "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "56", "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "199", "Betrag": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] }
Transaktion löschen
Beschreibung
Löschen einer Transaktion mit der angegebenen ID.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X DELETE "http://yourdomai.com/wp-json/mp/v1/transactions/199" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "56", "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "199", "Betrag": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] }
Erstattungstransaktion
Beschreibung
Erstattung einer bestimmten Transaktion.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/167/refund" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Nachricht": "Die Transaktion wurde erfolgreich rückerstattet.", "data": { "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 46, "email": "zapier@test.com", "benutzername": "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", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "46", "id": "59", "subscr_id": "cus_EjDYhKuKyRY5N2", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "abgebrochen", "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", "Antwort": null }, "id": "167", "amount": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "zurückerstattet", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] } }
Transaktion erstatten und stornieren
Beschreibung
Erstattung einer bestimmten Transaktion und Stornierung des zugehörigen Abonnements.
Argumente suchen
Keine
Argumente aktualisieren
Keine
Musteranfrage
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199/refund_and_cancel" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Beispielhafte Antwort
{ "Nachricht": "Die Transaktion wurde erfolgreich erstattet und das zugehörige Abonnement wurde storniert.", "data": { "Mitgliedschaft": { "id": 15, "title": "Gold-Mitgliedschaft", "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": "Monate", "signup_button_text": "Anmelden", "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-Mitgliedschaft", "preisgestaltung_show_preis": true, "pricing_display": "custom", "custom_price": "Preisgestaltung", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Anmelden", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "Standard", "register_price": "Dies ist ein Test", "thank_you_page_enabled": false, "thank_you_page_type": "Nachricht", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "keine", "expire_after": "1", "expire_unit": "Tage", "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": "Sie haben keine Berechtigung, diesen Artikel zu kaufen." }, "member": { "id": 56, "email": "zapier@test.com", "benutzername": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "adresse": { "mepr-address-one": "123 fake st", "mepr-address-two": "", "mepr-address-city": "Stadt", "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", "Mitgliedschaft": "15", "Mitglied": "56", "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": "peum51-1tc", "price": "100.00", "period": "1", "period_type": "Monate", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "Status": "aktiv", "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", "Antwort": null }, "id": "199", "Betrag": "100.00", "gesamt": "100,00", "tax_amount": "0.00", "steuer_satz": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "vollständig", "txn_type": "payment", "gateway": "peum51-1tc", "anteilig": "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", "Antwort": null, "rebill": falsch, "subscription_payment_index": 1, "commissions": [] } }