Visión general
General
Suscripciones
- Obtener suscripciones
- Obtener suscripción
- Crear suscripción
- Actualizar suscripción
- Borrar suscripción
- Cancelar suscripción
- Expiración de la suscripción
Miembros
Reglas
Afiliaciones
Cupones
Transacciones
- Obtener transacciones
- Obtener transacción
- Crear transacción
- Actualizar transacción
- Borrar transacción
- Transacción de reembolso
- Reembolso y cancelación de transacciones
Yo
Descripción
Prueba la autenticación del punto final REST MemberPress. Devuelve un estado 200 en caso de éxito y 401 en caso de fallo.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdoamin.com/wp-json/mp/v1/me" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "éxito": true "datos": { "nombre de usuario": "nombre de usuario" } }
Webhooks Suscribirse
Descripción
Suscribirse a uno o todos los webhooks de MemberPress Developer Tools. Devuelve un error 409 en caso de fallo.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
url (Obligatorio) (cadena) - La url donde el webhook enviará la petición.
evento (Obligatorio) (cadena) - El Webhook se activará por y enviará datos para este Evento.
Solicitud de muestra
$ 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="transacción-completada"
Muestra de respuesta
{ "éxito": true "datos": { "id": 1324 } }
Anulación de la suscripción a Webhooks
Descripción
Cancelar la suscripción de cualquier webhook. Devuelve un error 409 en caso de fallo.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/webhooks/unsubscribe/:id" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "success": true }
Obtener suscripciones
Descripción
Obtiene todas las suscripciones en función de los argumentos de búsqueda proporcionados.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (cadena) - Limita los resultados a los que coinciden con una cadena.
miembro (entero) - Limitar los resultados a las suscripciones de un miembro específico.
afiliación (integer) - Limitar los resultados a las suscripciones de una afiliación específica.
cupón (entero) - Limitar los resultados a las suscripciones creadas con un cupón específico.
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }, { "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 54, "email": "buddy@test2.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }, { "cupón": false "membresía": { "id": 267, "title": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 51, "email": "coupon@testing4.com", "nombre de usuario": "coupon@testing4.com", "nicename": "coupontesting4-com", "url": "", "message": "", "registered_at": "2019-04-03 18:01:05", "first_name": "cupón", "last_name": "testing4", "display_name": "cupón testing4" }, "id": "64", "subscr_id": "cus_Eor77sLgMt4sIg", "gateway": { "name": "Stripe", "label": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "9.99", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "1", "trial_days": "90", "importe_prueba": "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 }, { "cupón": { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:19:30", "modified": "2019-04-03 11:53:48", "modified_gmt": "2019-04-03 17:53:48", "valid_memberships": [ "267" ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "discount_type": "percent", "discount_amount": "100", "discount_mode": "primer-pago", "trial_days": "0", "trial_amount": "0.00" }, "membership": { "id": 267, "title": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 50, "email": "coupon@testing3.com", "nombre de usuario": "coupon@testing3.com", "nicename": "coupontesting3-com", "url": "", "message": "", "registered_at": "2019-04-03 17:53:28", "first_name": "cupón", "last_name": "testing3", "display_name": "cupón testing3" }, "id": "63", "subscr_id": "cus_EoqzWnn2NY7UGL", "gateway": { "name": "Stripe", "label": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "process-refunds", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "9.99", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }, { "cupón": false "membresía": { "id": 267, "title": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 49, "email": "coupon@testing2.com", "nombre de usuario": "coupon@testing2.com", "nicename": "coupontesting2-com", "url": "", "message": "", "registered_at": "2019-04-03 17:33:06", "first_name": "cupón", "last_name": "testing2", "display_name": "cupón testing2" }, "id": "62", "subscr_id": "cus_EoqfMhbLzIxdXZ", "gateway": { "name": "Stripe", "label": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "9.99", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "1", "trial_days": "90", "importe_prueba": "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 }, { "cupón": { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:19:30", "modified": "2019-04-03 11:53:48", "modified_gmt": "2019-04-03 17:53:48", "valid_memberships": [ "267" ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "discount_type": "percent", "discount_amount": "100", "discount_mode": "primer-pago", "trial_days": "0", "trial_amount": "0.00" }, "membership": { "id": 267, "title": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 48, "email": "coupon@testing.com", "nombre de usuario": "coupon@testing.com", "nicename": "coupontesting-com", "url": "", "message": "", "registered_at": "2019-04-03 17:21:50", "first_name": "cupón", "last_name": "testing", "display_name": "cupón pruebas" }, "id": "61", "subscr_id": "cus_EoqTynS7epcvBN", "gateway": { "name": "Stripe", "label": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "9.99", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }, { "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 47, "email": "buddy@test.com", "nombre de usuario": "buddy@test.com", "nicename": "buddytest-com", "url": "", "message": "", "registered_at": "2019-04-01 21:03:59", "first_name": "amigo", "last_name": "test", "display_name": "buddy test" }, "id": "60", "subscr_id": "cus_Eo9bZvhtSyBpFV", "gateway": { "name": "Stripe", "label": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }, { "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test2.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "cancelled", "created_at": "2019-03-15 20:26:28", "total": "100.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, { "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "estado": "pending", "created_at": "2019-03-14 19:11:50", "total": "100.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "", "cc_exp_month": "", "cc_exp_year": "", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, { "cupón": false "membresía": { "id": 250, "title": "25 1", "content": "", "excerpt": "", "date": "2019-03-13 16:20:17", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-13 22:20:17", "modified": "2019-03-13 16:20:17", "modified_gmt": "2019-03-13 22:20:17", "group": "252", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "25 1", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-13", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 45, "email": "twenty@five.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.comwp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "25.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "cancelled", "created_at": "2019-03-13 22:22:31", "total": "25.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null } ]
Obtener suscripción
Descripción
Obtener una Suscripción con un id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/subscriptions/59" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "cupón": false "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-03-14 13:10:21", "modified_gmt": "2019-03-14 19:10:21", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 46, "email": "zapier@test.com", "nombre de usuario": "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": "Mi pasarela Stripe", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Paga con tu tarjeta de crédito a través de Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "Mi pasarela Stripe", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "clave_secreta": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "procesar-tarjetas-de-crédito", "procesar-pagos", "procesar-reembolsos", "crear-suscripciones", "cancelar-suscripciones", "actualizar-suscripciones", "suspender-suscripciones", "reanudar-suscripciones", "enviar-cc-expiraciones" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "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 }
Crear suscripción
Descripción
Crea una Suscripción con los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
subscr_id (cadena, valor predeterminado: mp-sub-xxx...) - El número de suscripción periódica. Para poder realizar un seguimiento de las facturaciones periódicas, este debe ser el número de suscripción exacto generado por la pasarela de pago para esta suscripción.
respuesta (cadena) - Un lugar donde almacenar las respuestas POST o GET de la pasarela de pago para su posterior consulta.
pasarela (cadena, valor por defecto: manual) - El ID único del método de pago que se puede encontrar en la pestaña de pagos de la página de Configuración de MemberPress.
miembro (Obligatorio) (integer, valor por defecto: 0) - ID de usuario de WordPress del usuario.
afiliación (Obligatorio) (integer, valor predeterminado: 0) - ID de la suscripción.
cupón (integer, valor predeterminado: 0) - ID del cupón utilizado en esta suscripción.
precio (decimal, valor por defecto: 0,00) - Importe subtotal de la suscripción.
periodo (integer, valor por defecto: 1) - Periodo para los ciclos de facturación de la Suscripción. Consulte la documentación de Suscripciones para obtener más información.
tipo_periodo (string, valor por defecto: lifetime) - El tipo de periodo de facturación. Consulte la documentación sobre Afiliaciones para obtener más información.
limitar_ciclos (bool, valor por defecto: false) - Limitar o no los ciclos de facturación para los pagos recurrentes de los miembros. Si se establece en true, MemberPress cancelará los pagos recurrentes una vez alcanzado el importe de limit_cycles_num.
limitar_ciclos_num (integer, valor por defecto: 2) - Si limit_cycles es true, este número se utiliza para determinar cuántas facturaciones recurrentes deben producirse antes de que MemberPress cancele automáticamente la Suscripción. Si se establece en 1, la Suscripción se cancelará inmediatamente después de que el primer pago haya llegado, sin embargo el miembro mantendrá el acceso hasta que su Transacción haya expirado.
limitar_ciclos_accion (cadena, valor por defecto: expire) - Si limit_cycles está habilitado, entonces esto determinará el acceso del Miembro después de que su Suscripción haya alcanzado su límite limit_cycles_num y haya sido cancelada. Si se establece en "expire", el usuario perderá el acceso cuando expire su última transacción. Si el valor es "lifetime", el usuario tendrá acceso de por vida.
ensayo (bool, valor por defecto: false) - Si hay o no un periodo de prueba en esta Suscripción. Los periodos de prueba SÓLO funcionan en pagos recurrentes automáticos.
días_de_prueba (integer, valor por defecto: 0) - Cuántos días debe durar el periodo de prueba antes de que comiencen los ciclos de facturación normales.
importe_juicio (decimal, valor por defecto: 0,00) - Si se activa un periodo de prueba, especifica cuánto ha pagado el usuario por el periodo de prueba.
estado (Obligatorio) (cadena, valor predeterminado: pendiente) - Estado actual de facturación de la suscripción.
fecha_de_creación (Obligatorio) (cadena, valor predeterminado: null) - Fecha de creación de la suscripción. Debe estar en un formato de fecha y hora de MySQL o en el formato date('c') de PHP. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC.
total (decimal, valor por defecto: 0,00) - Importe total de la suscripción (impuestos incluidos).
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.
Solicitud de muestra
$ 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
Muestra de respuesta
{ "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 }
Actualizar suscripción
Descripción
Update a Subscription with the given id and field values.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
subscr_id (cadena, valor predeterminado: mp-sub-xxx...) - El número de suscripción periódica. Para poder realizar un seguimiento de las facturaciones periódicas, este debe ser el número de suscripción exacto generado por la pasarela de pago para esta suscripción.
respuesta (cadena) - Un lugar donde almacenar las respuestas POST o GET de la pasarela de pago para su posterior consulta.
pasarela (cadena, valor por defecto: manual) - El ID único del método de pago que se puede encontrar en la pestaña de pagos de la página de Configuración de MemberPress.
miembro (Obligatorio) (integer, valor por defecto: 0) - ID de usuario de WordPress del usuario.
afiliación (Obligatorio) (integer, valor predeterminado: 0) - ID de la suscripción.
cupón (integer, valor predeterminado: 0) - ID del cupón utilizado en esta suscripción.
precio (decimal, valor por defecto: 0,00) - Importe subtotal de la suscripción.
periodo (integer, valor por defecto: 1) - Periodo para los ciclos de facturación de la Suscripción. Consulte la documentación de Suscripciones para obtener más información.
tipo_periodo (string, valor por defecto: lifetime) - El tipo de periodo de facturación. Consulte la documentación sobre Afiliaciones para obtener más información.
limitar_ciclos (bool, valor por defecto: false) - Limitar o no los ciclos de facturación para los pagos recurrentes de los miembros. Si se establece en true, MemberPress cancelará los pagos recurrentes una vez alcanzado el importe de limit_cycles_num.
limitar_ciclos_num (integer, valor por defecto: 2) - Si limit_cycles es true, este número se utiliza para determinar cuántas facturaciones recurrentes deben producirse antes de que MemberPress cancele automáticamente la Suscripción. Si se establece en 1, la Suscripción se cancelará inmediatamente después de que el primer pago haya llegado, sin embargo el miembro mantendrá el acceso hasta que su Transacción haya expirado.
limitar_ciclos_accion (cadena, valor por defecto: expire) - Si limit_cycles está habilitado, entonces esto determinará el acceso del Miembro después de que su Suscripción haya alcanzado su límite limit_cycles_num y haya sido cancelada. Si se establece en "expire", el usuario perderá el acceso cuando expire su última transacción. Si el valor es "lifetime", el usuario tendrá acceso de por vida.
ensayo (bool, valor por defecto: false) - Si hay o no un periodo de prueba en esta Suscripción. Los periodos de prueba SÓLO funcionan en pagos recurrentes automáticos.
días_de_prueba (integer, valor por defecto: 0) - Cuántos días debe durar el periodo de prueba antes de que comiencen los ciclos de facturación normales.
importe_juicio (decimal, valor por defecto: 0,00) - Si se activa un periodo de prueba, especifica cuánto ha pagado el usuario por el periodo de prueba.
estado (Obligatorio) (cadena, valor predeterminado: pendiente) - Estado actual de facturación de la suscripción.
fecha_de_creación (Obligatorio) (cadena, valor predeterminado: null) - Fecha de creación de la suscripción. Debe estar en un formato de fecha y hora de MySQL o en el formato date('c') de PHP. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC.
total (decimal, valor por defecto: 0,00) - Importe total de la suscripción (impuestos incluidos).
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.
Solicitud de muestra
$ 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
Muestra de respuesta
{ "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 }
Borrar suscripción
Descripción
Delete a Subscription with the given id.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/subscriptions/69" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "coupon": false, "membership": { "id": 15, "title": "Gold Membership", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "status": "publish", "author": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": false, "limit_cycles_num": "2", "limit_cycles_action": "expire", "trial": false, "trial_days": "0", "trial_amount": "0.00", "trial_once": "1", "group_order": "2", "is_highlighted": false, "plan_code": "", "pricing_title": "Gold Membership", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Sign Up", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "This is a test", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-01", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": "1", "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": "1", "custom_payment_methods": [ "peum51-1tc" ], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "You don't have access to purchase this item." }, "member": { "id": 56, "email": "zapier@test.com", "username": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest" }, "id": "69", "subscr_id": "cus_EuSIHGllVD3168", "gateway": { "name": "Stripe", "label": "My Stripe gateway", "use_label": true, "icon": "http://yourdomain.com/wp-content/plugins/memberpress/images/checkout/cards.png", "use_icon": true, "desc": "Pay with your credit card via Stripe", "use_desc": true, "id": "peum51-1tc", "has_spc_form": true, "settings": { "gateway": "MeprStripeGateway", "id": "peum51-1tc", "label": "My Stripe gateway", "use_label": true, "use_icon": true, "use_desc": true, "email": "", "sandbox": false, "force_ssl": false, "debug": false, "test_mode": "on", "use_stripe_checkout": false, "churn_buster_enabled": false, "churn_buster_uuid": "", "api_keys": { "test": { "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "live": { "public": "", "secret": "" } }, "saved": "1", "public_key": "pk_test_99NqpKsIsKWcjE2cgvKViV99", "secret_key": "sk_test_99WXy9TgeQGH47NMkNSnSd99" }, "capabilities": [ "process-credit-cards", "process-payments", "process-refunds", "create-subscriptions", "cancel-subscriptions", "update-subscriptions", "suspend-subscriptions", "resume-subscriptions", "send-cc-expirations" ] }, "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "trial": "0", "trial_days": "0", "trial_amount": "0.00", "status": "active", "created_at": "2019-04-18 16:47:19", "total": "100.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }
Cancelar suscripción
Descripción
Cancel a given subscription.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/subscriptions/59/cancel" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "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 } }
Expiración de la suscripción
Descripción
Expire all unexpired transactions associated with the Subscription.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X POST "http://yourdomain/wp-json/mp/v1/subscriptions/69/expire" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "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 } }
Conseguir socios
Descripción
Get all Members based on the search arguments provided.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (string) – Limit results to those matching a string. Can only search by email or username.
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/members?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "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 } ] } ]
Hacerse miembro
Descripción
Get one Member with a given id.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/members/46" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "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 } ] }
Crear miembro
Descripción
Create a Member with the given field values.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
nombre (string) – The User's First Name.
apellido (string) – The User's Last Name.
correo electrónico (Required) (string) – The User's Email Address.
nombre de usuario (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.
contraseña (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.
transacción (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.
dirección1 (string, default value: empty) – The user's address line 1.
dirección2 (string, default value: empty) – The user's address line 2.
ciudad (string, default value: empty) – The user's city.
estado (string, default value: empty) – The user's state.
zip (string, default value: empty) – The user's zip.
país (string, default value: empty) – The user's country.
usermeta*** more info
Solicitud de muestra
$ 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
Muestra de respuesta
{ "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 } ] }
Actualización Miembro
Descripción
Update a Member with the given id and field values.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
nombre (string) – The User's First Name.
apellido (string) – The User's Last Name.
correo electrónico (Required) (string) – The User's Email Address.
nombre de usuario (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.
contraseña (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.
transacción (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.
dirección1 (string, default value: empty) – The user's address line 1.
dirección2 (string, default value: empty) – The user's address line 2.
ciudad (string, default value: empty) – The user's city.
estado (string, default value: empty) – The user's state.
zip (string, default value: empty) – The user's zip.
país (string, default value: empty) – The user's country.
usermeta*** more info
Solicitud de muestra
$ 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
Muestra de respuesta
{ "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 } ] }
Borrar miembro
Descripción
Delete a Member with the given id.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/members/56" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "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 } ] }
Obtener normas
Descripción
Obtiene todas las Reglas basadas en los argumentos de búsqueda proporcionados.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (cadena) - Limita los resultados a los que coinciden con una cadena.
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/rules?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "id": 227, "title": "Una sola página: Página de prueba", "date": "2019-02-20 10:34:06", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }, { "id": 175, "title": "Parcial:", "date": "2018-12-14 14:57:43", "status": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }, { "id": 77, "title": "Un solo foro: Foro 1", "date": "2018-09-13 16:41:59", "status": "publicar", "autor": { "id": 2, "email": "", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }, { "id": 23, "title": "Una sola página: Página de muestra", "date": "2018-08-30 16:14:57", "estado": "publicar", "author": { "id": 2, "email": "", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" } ]
Regla Get
Descripción
Obtener una Regla con un id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/rules/227" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 227, "title": "Una sola página: Página de prueba", "date": "2019-02-20 10:34:06", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }
Crear regla
Descripción
Crea una Regla con los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
tipo_regla (cadena, valor por defecto: todas) - El tipo de Regla que está creando.
contenido_regla (cadena) - El ID del tipo de regla que se está protegiendo. Por ejemplo, si protege una Página Única, entonces establecería esto al ID de esa página. Si protege una categoría entera, entonces establecería esto al ID de esa categoría.
is_rule_content_regex (bool, valor predeterminado: false) - Si se utiliza la coincidencia de expresiones regulares en rule_type's "personalizados" (aka Custom URI).
Afiliaciones_autorizadas (Obligatorio) (matriz, valor predeterminado: []) - Una matriz de ID de miembros que conceden al miembro acceso al contenido protegido por esta regla.
goteo_activado (bool, valor por defecto: false) - Si se debe activar el goteo en esta regla.
importe_goteo (integer, valor por defecto: 1) - El número de unidades para retrasar el goteo.
unidad_goteo (cadena, valor por defecto: días) - La unidad por la que gotear el contenido.
goteo_después (cadena, valor por defecto: registros) - Fecha en la que se basa el goteo.
goteo_después_fijado (cadena) - Si drip_after se establece como "fixed", entonces esto es requerido y debe ser una fecha válida en el futuro que la función strtotime() de PHP pueda interpretar.
caduca_activado (bool, valor por defecto: false) - Si la Expiración de Contenido debe ser habilitada en esta Regla.
importe_vencimiento (integer, valor por defecto: 1) - Número de unidades para retrasar la expiración del contenido.
unidad_de_vencimiento (cadena, valor por defecto: días) - Unidad en la que caduca el contenido.
caducar_después (cadena, valor por defecto: registros) - Fecha en la que se basa la caducidad del contenido.
expires_after_fixed (cadena) - Si expires_after está establecido como "fixed", entonces esto es requerido y debe ser una fecha válida en el futuro que la función strtotime() de PHP pueda interpretar.
unauth_excerpt_type (cadena, valor por defecto: default) - El tipo de extracto del Contenido protegido que se mostrará a los visitantes no autorizados. Si se establece en cualquier otro valor que no sea "default", esto anulará el comportamiento global establecido en las Opciones MemberPress para cualquier Contenido protegido por esta Regla.
unauth_excerpt_size (integer, valor por defecto: 100) - Sólo se utiliza si unauth_exceprt_type está configurado como "custom". Mostrará X caracteres del Contenido protegido real como extracto a los visitantes no autorizados.
tipo_mensaje_unath (cadena, valor por defecto: default) - El tipo de mensaje que se mostrará a los usuarios no autorizados que intenten ver Contenido protegido por esta Regla. Si se establece en cualquier otro valor que no sea "default", esto anulará el comportamiento global establecido en las Opciones MemberPress para cualquier Contenido protegido por esta Regla.
mensaje_de_unauth (cadena) - Si el unauth_message_type está configurado como "custom", entonces esta cadena se mostrará como el mensaje que verán los usuarios no autorizados cuando intenten ver Contenido protegido por esta Regla.
unauth_login (cadena, valor por defecto: por defecto) - Mostrar u ocultar el formulario de inicio de sesión, o dejar la configuración global por defecto en las Opciones de MemberPress.
Solicitud de muestra
$ 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 rule_content=225 \d -d drip_unit=días \d -d drip_after=registros \d -d expires_unit=días \ -d expires_after=registros \d -d unauth_excerpt_type=default \d -d unauth_excerpt_size=100 \d -d unauth_message_type=default \d -d unauth_login=por defecto
Muestra de respuesta
{ "id": 227, "title": "Una sola página: Página de prueba", "date": "2019-02-20 10:34:06", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }
Norma de actualización
Descripción
Actualiza una regla con el id y los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
tipo_regla (cadena, valor por defecto: todas) - El tipo de Regla que está creando.
contenido_regla (cadena) - El ID del tipo de regla que se está protegiendo. Por ejemplo, si protege una Página Única, entonces establecería esto al ID de esa página. Si protege una categoría entera, entonces establecería esto al ID de esa categoría.
is_rule_content_regex (bool, valor predeterminado: false) - Si se utiliza la coincidencia de expresiones regulares en rule_type's "personalizados" (aka Custom URI).
Afiliaciones_autorizadas (Obligatorio) (matriz, valor predeterminado: []) - Una matriz de ID de miembros que conceden al miembro acceso al contenido protegido por esta regla.
goteo_activado (bool, valor por defecto: false) - Si se debe activar el goteo en esta regla.
importe_goteo (integer, valor por defecto: 1) - El número de unidades para retrasar el goteo.
unidad_goteo (cadena, valor por defecto: días) - La unidad por la que gotear el contenido.
goteo_después (cadena, valor por defecto: registros) - Fecha en la que se basa el goteo.
goteo_después_fijado (cadena) - Si drip_after se establece como "fixed", entonces esto es requerido y debe ser una fecha válida en el futuro que la función strtotime() de PHP pueda interpretar.
caduca_activado (bool, valor por defecto: false) - Si la Expiración de Contenido debe ser habilitada en esta Regla.
importe_vencimiento (integer, valor por defecto: 1) - Número de unidades para retrasar la expiración del contenido.
unidad_de_vencimiento (cadena, valor por defecto: días) - Unidad en la que caduca el contenido.
caducar_después (cadena, valor por defecto: registros) - Fecha en la que se basa la caducidad del contenido.
expires_after_fixed (cadena) - Si expires_after está establecido como "fixed", entonces esto es requerido y debe ser una fecha válida en el futuro que la función strtotime() de PHP pueda interpretar.
unauth_excerpt_type (cadena, valor por defecto: default) - El tipo de extracto del Contenido protegido que se mostrará a los visitantes no autorizados. Si se establece en cualquier otro valor que no sea "default", esto anulará el comportamiento global establecido en las Opciones MemberPress para cualquier Contenido protegido por esta Regla.
unauth_excerpt_size (integer, valor por defecto: 100) - Sólo se utiliza si unauth_exceprt_type está configurado como "custom". Mostrará X caracteres del Contenido protegido real como extracto a los visitantes no autorizados.
tipo_mensaje_unath (cadena, valor por defecto: default) - El tipo de mensaje que se mostrará a los usuarios no autorizados que intenten ver Contenido protegido por esta Regla. Si se establece en cualquier otro valor que no sea "default", esto anulará el comportamiento global establecido en las Opciones MemberPress para cualquier Contenido protegido por esta Regla.
mensaje_de_unauth (cadena) - Si el unauth_message_type está configurado como "custom", entonces esta cadena se mostrará como el mensaje que verán los usuarios no autorizados cuando intenten ver Contenido protegido por esta Regla.
unauth_login (cadena, valor por defecto: por defecto) - Mostrar u ocultar el formulario de inicio de sesión, o dejar la configuración global por defecto en las Opciones de MemberPress.
Solicitud de muestra
$ 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 rule_content=225 \d -d drip_unit=días \d -d drip_after=registros \d -d expires_unit=días \ -d expires_after=registros \d -d unauth_excerpt_type=default \d -d unauth_excerpt_size=100 \d -d unauth_message_type=default \d -d unauth_login=por defecto
Muestra de respuesta
{ "id": 227, "title": "Una sola página: Página de prueba", "date": "2019-02-20 10:34:06", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }
Borrar regla
Descripción
Elimina una Regla con el id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/rules/227" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 227, "title": "Una sola página: Página de prueba", "date": "2019-02-20 10:34:06", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "days", "drip_after": "registros", "drip_after_fixed": "", "expires_enabled": false, "expires_amount": "0", "expires_unit": "days", "expires_after": "registros", "expires_after_fixed": "", "unauth_excerpt_type": "default", "unauth_excerpt_size": "100", "unauth_message_type": "default", "unauth_message": "", "unauth_login": "default", "auto_gen_title": "1" }
Obtener afiliaciones
Descripción
Obtener todas las afiliaciones en función de los argumentos de búsqueda proporcionados.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (cadena) - Limita los resultados a los que coinciden con una cadena.
grupo (entero) - Limita los resultados a los que coinciden con un grupo específico.
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/memberships?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "id": 274, "title": "3 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 271, "title": "Afiliación por un día", "content": "", "excerpt": "", "date": "2019-04-04 12:14:54", "estado": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación de un día", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 267, "title": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". }, { "id": 251, "title": "25 2", "content": "", "excerpt": "", "date": "2019-03-13 16:20:43", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 grupo", "content": "", "excerpt": "", "date": "2019-03-13 16:21:20", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-13 22:21:20", "modified": "2019-03-13 16:21:20", "modified_gmt": "2019-03-13 22:21:20", "pricing_page_disabled": falso, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": false, "group_theme": "minimal_gray_horizontal.css", "fallback_membership": "", "page_button_class": "", "page_button_highlighted_class": "", "page_button_disabled_class": "", "alternate_group_url": "", "use_custom_template": false, "custom_template": "template-sitemap.php" }, "price": "10000.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "25 2", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-20", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 250, "title": "25 1", "content": "", "excerpt": "", "date": "2019-03-13 16:20:17", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 grupo", "content": "", "excerpt": "", "date": "2019-03-13 16:21:20", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-13 22:21:20", "modified": "2019-03-13 16:21:20", "modified_gmt": "2019-03-13 22:21:20", "pricing_page_disabled": falso, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": false, "group_theme": "minimal_gray_horizontal.css", "fallback_membership": "", "page_button_class": "", "page_button_highlighted_class": "", "page_button_disabled_class": "", "alternate_group_url": "", "use_custom_template": false, "custom_template": "template-sitemap.php" }, "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "25 1", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-13", "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": "No tienes acceso para comprar este artículo". }, { "id": 247, "title": "274 anual", "content": "", "excerpt": "", "date": "2019-03-04 15:47:14", "estado": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "prorrateo", "content": "", "excerpt": "", "date": "2019-03-04 15:47:52", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-04 22:47:52", "modified": "2019-03-04 15:47:52", "modified_gmt": "2019-03-04 22:47:52", "pricing_page_disabled": falso, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": false, "group_theme": "minimal_gray_horizontal.css", "fallback_membership": "", "page_button_class": "", "page_button_highlighted_class": "", "page_button_disabled_class": "", "alternate_group_url": "", "use_custom_template": false, "custom_template": "template-sitemap.php" }, "price": "274.00", "period": "1", "period_type": "years", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "274 anuales", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 246, "title": "264 una vez", "content": "", "excerpt": "", "date": "2019-03-04 15:46:37", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "prorrateo", "content": "", "excerpt": "", "date": "2019-03-04 15:47:52", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-04 22:47:52", "modified": "2019-03-04 15:47:52", "modified_gmt": "2019-03-04 22:47:52", "pricing_page_disabled": falso, "disable_change_plan_popup": false, "is_upgrade_path": "1", "upgrade_path_reset_period": false, "group_theme": "minimal_gray_horizontal.css", "fallback_membership": "", "page_button_class": "", "page_button_highlighted_class": "", "page_button_disabled_class": "", "alternate_group_url": "", "use_custom_template": false, "custom_template": "template-sitemap.php" }, "price": "264.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "264 one time", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "years", "expire_fixed": "2019-03-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 210, "title": "1 día de prueba", "content": "", "excerpt": "", "date": "2019-02-07 12:39:50", "estado": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Prueba gratuita de 14 días", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-02-07", "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": "No tienes acceso para comprar este artículo". }, { "id": 209, "title": "Periodo de prueba doble alta", "content": "", "excerpt": "", "date": "2019-02-06 15:14:14", "estado": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Periodo de prueba doble alta", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-02-25", "tax_exempt": falso, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 196, "title": "prueba de cupón", "content": "", "excerpt": "", "date": "2019-01-10 15:36:20", "status": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "years", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-02-19", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ]
Afiliación
Descripción
Obtener un Miembro con un id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 274, "title": "3 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }
Crear afiliación
Descripción
Crea una Membresía con los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
título (Requisito) (cadena) - El título de la Afiliación.
precio (decimal, valor por defecto: 0,00) - Precio base de la Afiliación.
periodo (integer, valor por defecto: 1) - Periodo para los ciclos de facturación de la Membresía. Para pagos únicos, deje este valor en 1. Si desea facturar al cliente una vez al trimestre, debe establecer este valor en 3 y el period_type en meses. Hay algunas limitaciones dependiendo del period_type.
tipo_periodo (cadena, valor por defecto: lifetime) - Tipo de periodo de facturación. Para pagos no recurrentes, este valor debe ser siempre "de por vida". Otros valores posibles son "semanas", "meses" y "años". Existen algunas limitaciones en función del periodo.
signup_button_text (cadena, valor predeterminado: Inscribirse) - El texto que aparece en el botón de envío que se muestra en el formulario de inscripción de este miembro.
limitar_ciclos (bool, valor por defecto: false) - Limitar o no los ciclos de facturación para los pagos recurrentes de los miembros. Si se establece en true, MemberPress cancelará los pagos recurrentes una vez alcanzado el importe de limit_cycles_num.
limitar_ciclos_num (integer, valor por defecto: 2) - Si limit_cycles es true, este número se utiliza para determinar cuántas facturaciones recurrentes deben producirse antes de que MemberPress cancele automáticamente la Suscripción. Si se establece en 1, la Suscripción se cancelará inmediatamente después de que el primer pago haya llegado, sin embargo el miembro mantendrá el acceso hasta que su Transacción haya expirado.
limitar_ciclos_accion (cadena, valor por defecto: expire) - Si limit_cycles está habilitado, entonces esto determinará el acceso del Miembro después de que su Suscripción haya alcanzado su límite limit_cycles_num y haya sido cancelada. Si se establece en "expire", el usuario perderá el acceso cuando expire su última transacción. Si el valor es "lifetime", el usuario tendrá acceso de por vida.
ensayo (bool, valor por defecto: false) - Si habrá o no un periodo de prueba en esta Membresía. Los periodos de prueba SÓLO funcionan con pagos recurrentes automáticos.
días_de_prueba (integer, valor por defecto: 0) - Cuántos días debe durar el periodo de prueba antes de que comiencen los ciclos de facturación normales.
importe_juicio (decimal, valor por defecto: 0,00) - Si se activa un periodo de prueba, especifica cuánto pagará el usuario por el periodo de prueba.
grupo (integer, valor por defecto: 0) - El ID de un Grupo MemberPress al que debe pertenecer esta Membresía. El valor predeterminado es sin grupo.
orden_grupo (integer, valor por defecto: 0) - Si la Afiliación pertenece a un Grupo, esto determinará su ubicación en la página del Grupo y también se utiliza para determinar las rutas de Actualización/Desactualización.
is_highlighted (bool, valor por defecto: false) - Resaltar o no este Miembro en el Grupo. Esto añade clases CSS adicionales para que el cuadro de precios/características del Grupo destaque sobre los demás.
título_tarifa (cadena) - El título que aparece en la parte superior del cuadro de precios en una página de Grupo.
presentación_de_precios (cadena, valor por defecto: auto) - Cómo mostrar el precio en el cuadro de precios de esta Afiliación en la página de Grupo.
pricing_heading_txt (cadena) - Título que se mostrará en este cuadro de precios. Se muestra debajo del precio, pero encima de la lista de características/beneficios.
pricing_footer_txt (cadena) - Mostrar un mensaje al pie del cuadro de precios. Se muestra justo encima del botón de compra.
pricing_button_txt (cadena) - El texto del botón de compra.
beneficios_precios (matriz, valor por defecto: []) - Una matriz de cadenas. Cada cadena se mostrará como un elemento de línea en el cuadro de precios de la página Grupo.
registrar_precio (cadena) - Una cadena de precios personalizada para esta Afiliación. Sólo se utiliza si register_price_action tiene el valor "custom".
registrar_precio_accion (cadena, valor por defecto: por defecto) - Si se desea utilizar la cadena de precios por defecto generada por MemberPress, una cadena de precios personalizada u ocultar completamente la cadena de precios.
thank_you_page_enabled (bool, valor predeterminado: false) - Si se establece en true, el contenido de la página Thank You se sustituirá por el mensaje contenido en el valor thank_you_message.
mensaje_gracias (cadena) - Cadena que contiene el mensaje personalizado de la página de agradecimiento que se muestra en la página de agradecimiento cada vez que se adquiere esta suscripción. thank_you_page_enabled debe estar establecido en true para que se muestre.
custom_login_urls_enabled (bool, valor predeterminado: false) - Si se establece en true, puede modificar la redirección de inicio de sesión utilizando custom_login_urls_default y/o custom_login_urls para controlar a dónde se lleva a un miembro después de iniciar sesión.
custom_login_urls_default (cadena) - La URL a la que el miembro será redirigido por deafult cuando inicie sesión si ha comprado esta Membresía. Esto anula la URL de redirección de inicio de sesión global establecida en MemberPress -> Opciones.
urls_de_acceso_personalizadas (matriz, valor por defecto: []) - Una matriz de objetos estándar. Cada objeto debe tener \$obj->url y \$obj->count. url es la URL a la que el usuario debe ser redirigido al iniciar sesión, y count es el número de veces que ha iniciado sesión. Así, por ejemplo, si desea llevar a su usuario a una página de destino específica en su cuarto intento de inicio de sesión, se establecería la url a la página de destino, y el recuento a 4.
caducar_tipo (cadena, valor predeterminado: ninguno) - Si la suscripción es un pago único (no recurrente), puede establecer si debe caducar y cuándo. Un valor de ninguno significa que será válido de por vida. Un valor de retraso significa que expira en algún momento en el futuro (ejemplo: 6 meses). Y un valor fijo significa que expirará en una fecha fija en el futuro (ejemplo: 31 de diciembre de 2019). Nota: esto no funciona con Afiliaciones recurrentes.
caducar_después (integer, valor por defecto: 1) - Si expire_type está configurado como "delay", utilícelo para determinar cuántas expire_unit antes de que caduque la suscripción. Debe ser un número (ejemplo "6", para 6 días/meses/semanas/años).
unidad_de_vencimiento (cadena, valor por defecto: días) - Si expire_type está configurado como "delay", utilice esta opción para establecer la unidad del valor expire_after. Por ejemplo, si expire_after se establece en "6" y esto se establece en "meses", entonces la membresía expirará 6 meses después de la fecha en que el miembro se registró.
caducidad_fija (cadena) - Si expire_type está establecido como "fixed", entonces establezca esto como la cadena de la fecha en la que esta Membresía debería expirar. Puede utilizar cualquier formato de fecha que la función strtotime() de PHP pueda entender.
exento_de_impuestos (bool, valor por defecto: false) - Si esta Afiliación está exenta de impuestos o no.
permitir_renovación (bool, valor por defecto: false) - Permite a los usuarios renovar los pagos únicos antes de que caduquen. Nota: esto sólo funciona en Afiliaciones de pago único que tienen un valor expire_type "delay".
URL_acceso (cadena) - Utilice esta opción para añadir una URL que se utilizará como la página desde la que el usuario podrá acceder al contenido de esta suscripción.
suscripciones_simultaneas (bool, valor predeterminado: false) - Permite a los miembros tener varias suscripciones activas a este producto simultáneamente. Nota: No utilice esta opción si allow_renewal tiene el valor true.
usar_plantilla_personalizada (bool, valor por defecto: false) - Utilizar o no una Plantilla de Página Personalizada para esta página de Afiliación.
plantilla_personalizada (cadena) - La ruta relativa a su archivo de plantilla.
personalizar_métodos_de_pago (bool, valor por defecto: false) - Permitir que los métodos de pago estén desactivados en esta suscripción. Un método de pago desactivado no puede ser utilizado por un miembro en la caja.
custom_payment_methods (matriz, valor predeterminado: []) - Si customize_payment_methods es true, debe ser una matriz de los ID de métodos de pago válidos para esta Afiliación. Nota: Si se filtran métodos de pago válidos, DEBE tener al menos un ID de pasarela.
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d title="3 días de prueba gratuita" \d -d price="25.00" \ -d period=1 \d -d period_type=meses \d -d signup_button_text="Registrarse" \d -d limit_cycles_num=2 \d -d limit_cycles_action=expire \d -d trial=1 \d -d trial_days=3 \d -d trial_amount="0.00" \ -d pricing_title="3 días de prueba gratis" \d -d pricing_display=auto \d -d pricing_button_txt="Registrarse" \d -d register_price_action=por defecto \d -d expire_type=none \d -d expire_after=1 \d -d expire_unit=días \d -d expire_fixed="2019-04-10" \d -d custom_template="template-sitemap.php"
Muestra de respuesta
{ "id": 274, "title": "3 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }
Actualizar la afiliación
Descripción
Actualiza un Miembro con el id y los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
título (Requisito) (cadena) - El título de la Afiliación.
precio (decimal, valor por defecto: 0,00) - Precio base de la Afiliación.
periodo (integer, valor por defecto: 1) - Periodo para los ciclos de facturación de la Membresía. Para pagos únicos, deje este valor en 1. Si desea facturar al cliente una vez al trimestre, debe establecer este valor en 3 y el period_type en meses. Hay algunas limitaciones dependiendo del period_type.
tipo_periodo (cadena, valor por defecto: lifetime) - Tipo de periodo de facturación. Para pagos no recurrentes, este valor debe ser siempre "de por vida". Otros valores posibles son "semanas", "meses" y "años". Existen algunas limitaciones en función del periodo.
signup_button_text (cadena, valor predeterminado: Inscribirse) - El texto que aparece en el botón de envío que se muestra en el formulario de inscripción de este miembro.
limitar_ciclos (bool, valor por defecto: false) - Limitar o no los ciclos de facturación para los pagos recurrentes de los miembros. Si se establece en true, MemberPress cancelará los pagos recurrentes una vez alcanzado el importe de limit_cycles_num.
limitar_ciclos_num (integer, valor por defecto: 2) - Si limit_cycles es true, este número se utiliza para determinar cuántas facturaciones recurrentes deben producirse antes de que MemberPress cancele automáticamente la Suscripción. Si se establece en 1, la Suscripción se cancelará inmediatamente después de que el primer pago haya llegado, sin embargo el miembro mantendrá el acceso hasta que su Transacción haya expirado.
limitar_ciclos_accion (cadena, valor por defecto: expire) - Si limit_cycles está habilitado, entonces esto determinará el acceso del Miembro después de que su Suscripción haya alcanzado su límite limit_cycles_num y haya sido cancelada. Si se establece en "expire", el usuario perderá el acceso cuando expire su última transacción. Si el valor es "lifetime", el usuario tendrá acceso de por vida.
t
rial (bool, valor por defecto: false) - Si habrá o no un periodo de prueba en esta Membresía. Los periodos de prueba SÓLO funcionan con pagos recurrentes automáticos.
días_de_prueba (integer, valor por defecto: 0) - Cuántos días debe durar el periodo de prueba antes de que comiencen los ciclos de facturación normales.
importe_juicio (decimal, valor por defecto: 0,00) - Si se activa un periodo de prueba, especifica cuánto pagará el usuario por el periodo de prueba.
grupo (integer, valor por defecto: 0) - El ID de un Grupo MemberPress al que debe pertenecer esta Membresía. El valor predeterminado es sin grupo.
orden_grupo (integer, valor por defecto: 0) - Si la Afiliación pertenece a un Grupo, esto determinará su ubicación en la página del Grupo y también se utiliza para determinar las rutas de Actualización/Desactualización.
is_highlighted (bool, valor por defecto: false) - Resaltar o no este Miembro en el Grupo. Esto añade clases CSS adicionales para que el cuadro de precios/características del Grupo destaque sobre los demás.
título_tarifa (cadena) - El título que aparece en la parte superior del cuadro de precios en una página de Grupo.
presentación_de_precios (cadena, valor por defecto: auto) - Cómo mostrar el precio en el cuadro de precios de esta Afiliación en la página de Grupo.
pricing_heading_txt (cadena) - Título que se mostrará en este cuadro de precios. Se muestra debajo del precio, pero encima de la lista de características/beneficios.
pricing_footer_txt (cadena) - Mostrar un mensaje al pie del cuadro de precios. Se muestra justo encima del botón de compra.
pricing_button_txt (cadena) - El texto del botón de compra.
beneficios_precios (matriz, valor por defecto: []) - Una matriz de cadenas. Cada cadena se mostrará como un elemento de línea en el cuadro de precios de la página Grupo.
registrar_precio (cadena) - Una cadena de precios personalizada para esta Afiliación. Sólo se utiliza si register_price_action tiene el valor "custom".
registrar_precio_accion (cadena, valor por defecto: por defecto) - Si se desea utilizar la cadena de precios por defecto generada por MemberPress, una cadena de precios personalizada u ocultar completamente la cadena de precios.
thank_you_page_enabled (bool, valor predeterminado: false) - Si se establece en true, el contenido de la página Thank You se sustituirá por el mensaje contenido en el valor thank_you_message.
mensaje_gracias (cadena) - Cadena que contiene el mensaje personalizado de la página de agradecimiento que se muestra en la página de agradecimiento cada vez que se adquiere esta suscripción. thank_you_page_enabled debe estar establecido en true para que se muestre.
custom_login_urls_enabled (bool, valor predeterminado: false) - Si se establece en true, puede modificar la redirección de inicio de sesión utilizando custom_login_urls_default y/o custom_login_urls para controlar a dónde se lleva a un miembro después de iniciar sesión.
custom_login_urls_default (cadena) - La URL a la que el miembro será redirigido por deafult cuando inicie sesión si ha comprado esta Membresía. Esto anula la URL de redirección de inicio de sesión global establecida en MemberPress -> Opciones.
urls_de_acceso_personalizadas (matriz, valor por defecto: []) - Una matriz de objetos estándar. Cada objeto debe tener \$obj->url y \$obj->count. url es la URL a la que el usuario debe ser redirigido al iniciar sesión, y count es el número de veces que ha iniciado sesión. Así, por ejemplo, si desea llevar a su usuario a una página de destino específica en su cuarto intento de inicio de sesión, se establecería la url a la página de destino, y el recuento a 4.
caducar_tipo (cadena, valor predeterminado: ninguno) - Si la suscripción es un pago único (no recurrente), puede establecer si debe caducar y cuándo. Un valor de ninguno significa que será válido de por vida. Un valor de retraso significa que expira en algún momento en el futuro (ejemplo: 6 meses). Y un valor fijo significa que expirará en una fecha fija en el futuro (ejemplo: 31 de diciembre de 2019). Nota: esto no funciona con Afiliaciones recurrentes.
caducar_después (integer, valor por defecto: 1) - Si expire_type está configurado como "delay", utilícelo para determinar cuántas expire_unit antes de que caduque la suscripción. Debe ser un número (ejemplo "6", para 6 días/meses/semanas/años).
unidad_de_vencimiento (cadena, valor por defecto: días) - Si expire_type está configurado como "delay", utilice esta opción para establecer la unidad del valor expire_after. Por ejemplo, si expire_after se establece en "6" y esto se establece en "meses", entonces la membresía expirará 6 meses después de la fecha en que el miembro se registró.
caducidad_fija (cadena) - Si expire_type está establecido como "fixed", entonces establezca esto como la cadena de la fecha en la que esta Membresía debería expirar. Puede utilizar cualquier formato de fecha que la función strtotime() de PHP pueda entender.
exento_de_impuestos (bool, valor por defecto: false) - Si esta Afiliación está exenta de impuestos o no.
permitir_renovación (bool, valor por defecto: false) - Permite a los usuarios renovar los pagos únicos antes de que caduquen. Nota: esto sólo funciona en Afiliaciones de pago único que tienen un valor expire_type "delay".
URL_acceso (cadena) - Utilice esta opción para añadir una URL que se utilizará como la página desde la que el usuario podrá acceder al contenido de esta suscripción.
suscripciones_simultaneas (bool, valor predeterminado: false) - Permite a los miembros tener varias suscripciones activas a este producto simultáneamente. Nota: No utilice esta opción si allow_renewal tiene el valor true.
usar_plantilla_personalizada (bool, valor por defecto: false) - Utilizar o no una Plantilla de Página Personalizada para esta página de Afiliación.
plantilla_personalizada (cadena) - La ruta relativa a su archivo de plantilla.
personalizar_métodos_de_pago (bool, valor por defecto: false) - Permitir que los métodos de pago estén desactivados en esta suscripción. Un método de pago desactivado no puede ser utilizado por un miembro en la caja.
custom_payment_methods (matriz, valor predeterminado: []) - Si customize_payment_methods es true, debe ser una matriz de los ID de métodos de pago válidos para esta Afiliación. Nota: Si se filtran métodos de pago válidos, DEBE tener al menos un ID de pasarela.
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d title="3 días de prueba gratuita" \d -d price="25.00" \ -d period=1 \d -d period_type=meses \d -d signup_button_text="Registrarse" \d -d limit_cycles_num=2 \d -d limit_cycles_action=expire \d -d trial=1 \d -d trial_days=3 \d -d trial_amount="0.00" \ -d pricing_title="3 días de prueba gratis" \d -d pricing_display=auto \d -d pricing_button_txt="Registrarse" \d -d register_price_action=por defecto \d -d expire_type=none \d -d expire_after=1 \d -d expire_unit=días \d -d expire_fixed="2019-04-10" \d -d custom_template="template-sitemap.php"
Muestra de respuesta
{ "id": 274, "title": "3 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }
Suprimir afiliación
Descripción
Elimina un Miembro con el id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/memberships/274" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 274, "title": "3 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }
Obtener cupones
Descripción
Obtiene todos los cupones en función de los argumentos de búsqueda proporcionados.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (cadena) - Limita los resultados a los que coinciden con una cadena.
código (integer) - Obtener el cupón con el código dado.
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/coupons?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "percent", "discount_amount": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }, { "id": 269, "coupon_code": "EXV6U3844B", "date": "2019-04-03 11:59:20", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "discount_type": "percent", "discount_amount": "0", "discount_mode": "trial-override", "trial_days": "90", "trial_amount": "0.00" }, { "id": 268, "coupon_code": "3ITYMDZOI5", "date": "2019-04-03 11:19:30", "status": "publicar", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "prueba de cupones", "content": "", "excerpt": "", "date": "2019-04-03 11:18:41", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-03 17:18:41", "modified": "2019-04-04 10:58:44", "modified_gmt": "2019-04-04 16:58:44", "group": "0", "price": "9.99", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "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": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "discount_type": "percent", "discount_amount": "100", "discount_mode": "primer_pago", "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", "nombre de usuario": "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", "estado": "publicar", "autor": "5", "date_gmt": "2019-03-13 22:20:43", "modified": "2019-03-20 13:02:42", "modified_gmt": "2019-03-20 19:02:42", "group": "252", "price": "10000.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "25 2", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-20", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "dollar", "discount_amount": "12.6", "discount_mode": "standard", "trial_days": "0", "trial_amount": "0.00" }, { "id": 233, "coupon_code": "FRX8L9X5UO", "date": "2019-02-20 14:36:54", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "Corregida la prueba de caducidad", "content": "", "excerpt": "", "date": "2018-11-16 09:58:51", "estado": "publicar", "autor": "5", "date_gmt": "2018-11-16 16:58:51", "modified": "2019-02-20 14:41:58", "modified_gmt": "2019-02-20 21:41:58", "group": "0", "price": "75.00", "period": "1", "period_type": "years", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Prueba de caducidad fija", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "fixed", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-03-31", "tax_exempt": falso, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "1", "usage_amount": "0", "discount_type": "percent", "discount_amount": "100", "discount_mode": "standard", "trial_days": "0", "trial_amount": "0.00" }, { "id": 197, "coupon_code": "M5TGWIKIYU", "date": "2019-01-10 15:38:04", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "prueba de cupón", "content": "", "excerpt": "", "date": "2019-01-10 15:36:20", "status": "publicar", "autor": "5", "date_gmt": "2019-01-10 22:36:20", "modified": "2019-02-19 12:15:59", "modified_gmt": "2019-02-19 19:15:59", "group": "0", "price": "100.00", "period": "1", "period_type": "years", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "cupón de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-02-19", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "3", "usage_amount": "0", "discount_type": "percent", "discount_amount": "20", "discount_mode": "trial-override", "trial_days": "2", "trial_amount": "0.00" }, { "id": 195, "coupon_code": "CJM43W9Y3K", "date": "2019-01-10 13:01:37", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "Afiliación Platino", "content": "", "excerpt": "", "date": "2018-08-30 16:10:44", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:44", "modified": "2018-11-29 10:04:26", "modified_gmt": "2018-11-29 17:04:26", "group": "17", "price": "2600.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Platino", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2018-11-29", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": "1", "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 15, "title": "Afiliación Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, { "id": 14, "title": "Afiliación Silver", "content": "", "excerpt": "", "date": "2018-08-30 16:09:57", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:09:57", "modified": "2018-08-30 16:09:57", "modified_gmt": "2018-08-30 16:09:57", "group": "17", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Plata", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2018-08-30", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, { "id": 13, "title": "Afiliación Bronce", "content": "", "excerpt": "", "date": "2018-08-30 16:08:50", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:08:50", "modified": "2019-01-14 13:49:13", "modified_gmt": "2019-01-14 20:49:13", "group": "17", "price": "0.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Bronce", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-01-14", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "1", "usage_amount": "0", "discount_type": "percent", "discount_amount": "30", "discount_mode": "primer-pago", "trial_days": "0", "trial_amount": "0.00" }, { "id": 157, "coupon_code": "QPL9MTM8CI", "date": "2018-12-04 10:45:16", "status": "publish", "autor": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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": "Prueba de plan de actualización", "content": "", "excerpt": "", "date": "2018-11-29 12:00:53", "estado": "publicar", "autor": "5", "date_gmt": "2018-11-29 19:00:53", "modified": "2018-11-29 12:00:53", "modified_gmt": "2018-11-29 19:00:53", "group": "0", "price": "10.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": "1", "limit_cycles_num": "1", "limit_cycles_action": "expire", "trial": "1", "trial_days": "30", "trial_amount": "10.00", "trial_once": "1", "group_order": "5", "is_highlighted": falso, "plan_code": "", "pricing_title": "Prueba de plan de actualización", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2018-11-29", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "2", "usage_amount": "0", "discount_type": "percent", "discount_amount": "100", "discount_mode": "primer_pago", "trial_days": "0", "trial_amount": "0.00" } ]
Obtener cupón
Descripción
Obtener un cupón con un identificador dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "percent", "discount_amount": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Crear cupón
Descripción
Crea un cupón con los valores de campo indicados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
código_cupón (cadena, valor predeterminado: ) - Es el código de cupón que se asociará al cupón. Debe ser un código único sin espacios ni caracteres especiales distintos de "-". Si hay espacios, se aceptará el valor, pero MemberPress los sustituirá por guiones. Además, si este valor se deja en blanco, MemberPress generará automáticamente un código único para este cupón.
debe_expirar (bool, valor predeterminado: false) - Establezca este valor en true si desea que el cupón caduque en algún momento en el futuro.
caduca_en (Requerido si 'should_expire' es true) (timestamp, valor por defecto: null) - Establece el timestamp unix de cuando quieres que caduque el cupón.
importe_uso (entero, valor por defecto: 0) - Establézcalo en un número mayor que cero si desea limitar el número de veces que se puede utilizar el cupón.
tipo_descuento (enum, valor por defecto: percent) - Esto modificará la forma en que MemberPress interpreta el 'discount_amount' para que sea un porcentaje o una cantidad fija.
importe_descuento (decimal, valor por defecto: 0,00) - Importe del descuento. Dependiendo de lo que 'discount_type' se establece en, esto puede ser una cantidad fija o un porcentaje.
Afiliaciones_válidas (Obligatorio) (matriz, valor predeterminado: []) - Aquí puede establecer una matriz de identificadores de socios a los que se aplicará el cupón.
modo_descuento (cadena, valor por defecto: estándar) - Establece el tipo de descuento. Puede ser estándar, de prueba o de primer pago. Si se establece como estándar, el descuento se aplicará a todos los pagos durante la vigencia de la suscripción. Si se establece como primer pago, el descuento sólo se aplicará al primer pago de una suscripción periódica automática, lo que se consigue anulando el periodo de prueba de la suscripción. Si se establece como trial-override, también se anulará el periodo de prueba en las suscripciones recurrentes.
tipo_descuento_primer_pago (enum, valor por defecto: porcentaje) - Este valor se ignora si el discount_mode es distinto de "first-payment". Esto alterará la forma en que MemberPress interpreta el "first_payment_discount_amount" para que sea un porcentaje o una cantidad fija. Sólo se aplica a las suscripciones periódicas.
importe_descuento_primer_pago (decimal, valor predeterminado: 0,00) - Este valor se ignora si el discount_mode es distinto de "first-payment". El importe del descuento para el primer pago de una suscripción periódica. Dependiendo del valor de 'discount_type', puede ser una cantidad fija o un porcentaje.
días_de_prueba (integer, valor predeterminado: 0) - Establece el número de días de prueba. Solo se utiliza para suscripciones periódicas y si discount_mode está establecido en trial-override.
importe_juicio (decimal, valor por defecto: 0,00) - Establece el importe del periodo de prueba. Solo se utiliza para suscripciones periódicas y si discount_mode está establecido en trial-override.
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d coupon_code="B2XJTM2YQB" \d -d discount_type=porcent \d -d discount_amount=15 \d -d discount_mode=estándar \d -d trial_days=3 \d -d trial_amount="0.00"
Muestra de respuesta
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "percent", "discount_amount": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Actualizar cupón
Descripción
Actualiza un cupón con el id y los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
código_cupón (cadena, valor predeterminado: ) - Es el código de cupón que se asociará al cupón. Debe ser un código único sin espacios ni caracteres especiales distintos de "-". Si hay espacios, se aceptará el valor, pero MemberPress los sustituirá por guiones. Además, si este valor se deja en blanco, MemberPress generará automáticamente un código único para este cupón.
debe_expirar (bool, valor predeterminado: false) - Establezca este valor en true si desea que el cupón caduque en algún momento en el futuro.
caduca_en (Requerido si 'should_expire' es true) (timestamp, valor por defecto: null) - Establece el timestamp unix de cuando quieres que caduque el cupón.
importe_uso (entero, valor por defecto: 0) - Establézcalo en un número mayor que cero si desea limitar el número de veces que se puede utilizar el cupón.
tipo_descuento (enum, valor por defecto: percent) - Esto modificará la forma en que MemberPress interpreta el 'discount_amount' para que sea un porcentaje o una cantidad fija.
importe_descuento (decimal, valor por defecto: 0,00) - Importe del descuento. Dependiendo de lo que 'discount_type' se establece en, esto puede ser una cantidad fija o un porcentaje.
Afiliaciones_válidas (Obligatorio) (matriz, valor predeterminado: []) - Aquí puede establecer una matriz de identificadores de socios a los que se aplicará el cupón.
modo_descuento (cadena, valor por defecto: estándar) - Establece el tipo de descuento. Puede ser estándar, de prueba o de primer pago. Si se establece como estándar, el descuento se aplicará a todos los pagos durante la vigencia de la suscripción. Si se establece como primer pago, el descuento sólo se aplicará al primer pago de una suscripción periódica automática, lo que se consigue anulando el periodo de prueba de la suscripción. Si se establece como trial-override, también se anulará el periodo de prueba en las suscripciones recurrentes.
tipo_descuento_primer_pago (enum, valor por defecto: porcentaje) - Este valor se ignora si el discount_mode es distinto de "first-payment". Esto alterará la forma en que MemberPress interpreta el "first_payment_discount_amount" para que sea un porcentaje o una cantidad fija. Sólo se aplica a las suscripciones periódicas.
importe_descuento_primer_pago (decimal, valor predeterminado: 0,00) - Este valor se ignora si el discount_mode es distinto de "first-payment". El importe del descuento para el primer pago de una suscripción periódica. Dependiendo del valor de 'discount_type', puede ser una cantidad fija o un porcentaje.
días_de_prueba (integer, valor predeterminado: 0) - Establece el número de días de prueba. Solo se utiliza para suscripciones periódicas y si discount_mode está establecido en trial-override.
importe_juicio (decimal, valor por defecto: 0,00) - Establece el importe del periodo de prueba. Solo se utiliza para suscripciones periódicas y si discount_mode está establecido en trial-override.
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \ -d coupon_code="B2XJTM2YQB" \d -d discount_type=porcent \d -d discount_amount=15 \d -d discount_mode=estándar \d -d trial_days=3 \d -d trial_amount="0.00"
Muestra de respuesta
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "percent", "discount_amount": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Eliminar cupón
Descripción
Elimina un cupón con el identificador dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomain.com/wp-json/mp/v1/coupons/275" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "id": 275, "coupon_code": "B2XJTM2YQB", "date": "2019-04-10 12:05:53", "status": "publish", "author": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "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 días de prueba gratuita", "content": "", "excerpt": "", "date": "2019-04-10 12:05:01", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-10 18:05:01", "modified": "2019-04-10 12:05:01", "modified_gmt": "2019-04-10 18:05:01", "group": "0", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "3 días de prueba gratuita", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-10", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". } ], "should_expire": false, "expires_on": "0", "usage_count": "0", "usage_amount": "0", "discount_type": "percent", "discount_amount": "15", "discount_mode": "standard", "trial_days": "3", "trial_amount": "0.00" }
Obtener transacciones
Descripción
Obtener una Transacción con un id dado.
Argumentos de búsqueda
página (integer, valor por defecto: 1) - Página actual de la colección.
por_página (integer, valor por defecto: 10) - Número máximo de elementos que se devolverán en el conjunto de resultados.
busque en (cadena) - Limita los resultados a los que coinciden con una cadena.
miembro (entero) - Limitar los resultados a las transacciones de un miembro específico.
afiliación (entero) - Limitar los resultados a las transacciones de una afiliación específica.
cupón (entero) - Limitar los resultados a las transacciones creadas con un cupón específico.
estado (cadena) - Limitar los resultados a las transacciones con un estado determinado.
pasarela (cadena) - Limita los resultados a las transacciones creadas con una pasarela de pago específica. Debe ser un ID único del método de pago que se puede encontrar en la pestaña de pagos de la página de configuración de MemberPress.
suscripción (entero) - Limitar los resultados a las transacciones asociadas a una suscripción específica
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/transactions?page=2&per_page=10" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
[ { "membresía": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "MemberPress", "mepr_birthday": "2019-04-18", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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": "199", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] }, { "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "MemberPress", "mepr_birthday": "2019-04-18", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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": "198", "amount": "0.00", "total": "0.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "cus_EuSIHGllVD3168", "status": "confirmed", "txn_type": "subscription_confirmation", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": false "subscription_payment_index": false }, { "membership": { "id": 271, "title": "Afiliación de un día", "content": "", "excerpt": "", "date": "2019-04-04 12:14:54", "estado": "publicar", "autor": "5", "date_gmt": "2019-04-04 18:14:54", "modified": "2019-04-04 12:14:54", "modified_gmt": "2019-04-04 18:14:54", "group": "0", "price": "10.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación de un día", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-04-04", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "http://zapier.test.com", "message": "", "registered_at": "2018-08-30 16:42:13", "first_name": "zapier", "last_name": "test", "display_name": "zapier test", "address": { "mepr-address-one": "120 S 200 W", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "lehi", "mepr-dirección-estado": "UT", "mepr-address-zip": "84043", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "", "mepr_birthday": "2019-01-02", "mepr_testslug": "" } }, "coupon": "0", "subscription": "0", "id": "195", "importe": "10.00", "total": "10.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EPstWJT1LHvX6ILpbHj3WEZ", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-16 15:08:20", "expires_at": "2019-04-17 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": false, "subscription_payment_index": false, "commissions": [] }, { "membership": { "id": 14, "title": "Afiliación Silver", "content": "", "excerpt": "", "date": "2018-08-30 16:09:57", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:09:57", "modified": "2018-08-30 16:09:57", "modified_gmt": "2018-08-30 16:09:57", "group": "17", "price": "25.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Plata", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2018-08-30", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "http://zapier.test.com", "message": "", "registered_at": "2018-08-30 16:42:13", "first_name": "zapier", "last_name": "test", "display_name": "zapier test", "address": { "mepr-address-one": "120 S 200 W", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "lehi", "mepr-dirección-estado": "UT", "mepr-address-zip": "84043", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "", "mepr_birthday": "2019-01-02", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "14", "miembro": "5", "id": "35", "subscr_id": "cus_ELEy7Swsow2wLS", "gateway": "peum51-1tc", "price": "25.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "active", "created_at": "2019-01-14 16:41:05", "total": "25.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, "id": "194", "amount": "25.00", "total": "25.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EPCLEJT1LHvX6ILbOivd11C", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-14 17:42:12", "expires_at": "2019-05-14 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": true, "subscription_payment_index": 4, "commissions": [] }, { "afiliación": { "id": 167, "title": "prueba de cancelación de prueba", "content": "", "excerpt": "", "date": "2018-12-14 08:17:25", "estado": "publicar", "autor": "5", "date_gmt": "2018-12-14 15:17:25", "modified": "2018-12-14 08:17:25", "modified_gmt": "2018-12-14 15:17:25", "group": "0", "price": "20.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "prueba de cancelación de prueba", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "none", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2018-12-14", "tax_exempt": false, "allow_renewal": false, "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 29, "email": "trial3@test.com", "nombre de usuario": "trial3@test.com", "nicename": "trial3test-com", "url": "", "message": "", "registered_at": "2018-12-14 15:18:45", "first_name": "trial2", "last_name": "prueba", "display_name": "trial3@test.com", "address": { "mepr-dirección-uno": "123 N", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "Riverton", "mepr-dirección-estado": "UT", "mepr-address-zip": "84065", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "", "mepr_birthday": "", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "167", "miembro": "29", "id": "26", "subscr_id": "cus_E9beibZQIjrARq", "gateway": "peum51-1tc", "price": "20.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "1", "trial_days": "30", "trial_amount": "0.00", "status": "active", "created_at": "2018-12-14 15:19:04", "total": "20.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, "id": "193", "amount": "20.00", "total": "20.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EOodxJT1LHvX6ILTPMeYLk3", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-13 16:23:57", "expires_at": "2019-05-13 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": true, "subscription_payment_index": 4, "commissions": [] }, { "afiliación": { "id": 209, "title": "Periodo de prueba doble alta", "content": "", "excerpt": "", "date": "2019-02-06 15:14:14", "estado": "publicar", "autor": "5", "date_gmt": "2019-02-06 22:14:14", "modified": "2019-02-25 14:13:29", "modified_gmt": "2019-02-25 21:13:29", "group": "0", "price": "10.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Periodo de prueba doble alta", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "days", "expire_fixed": "2019-02-25", "tax_exempt": falso, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 40, "email": "multitrial@test.com", "nombre de usuario": "multitrialtest", "nicename": "multitrialtest", "url": "", "message": "", "registered_at": "2019-02-06 22:16:19", "first_name": "multitrial", "last_name": "test", "display_name": "multitrialtest", "address": { "mepr-dirección-uno": "", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "", "mepr-dirección-estado": "", "mepr-dirección-código postal": "", "mepr-dirección-país": "" }, "profile": { "mepr_nombre_empresa": "", "mepr_birthday": "", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "209", "miembro": "40", "id": "42", "subscr_id": "cus_EVj7zawVe0xj3O", "gateway": "peum51-1tc", "price": "10.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "active", "created_at": "2019-02-11 16:29:32", "total": "10.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, "id": "192", "amount": "10.00", "total": "10.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EO6jWJT1LHvX6ILxfcxx7UR", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-11 17:30:46", "expires_at": "2019-05-11 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": true, "subscription_payment_index": 3, "commissions": [] }, { "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 13, "email": "test6@email.com", "nombre de usuario": "test6@email.com", "nicename": "test6email-com", "url": "", "message": "", "registered_at": "2018-09-10 22:51:42", "first_name": "", "last_name": "", "display_name": "test6@email.com", "address": { "mepr-dirección-uno": "", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "", "mepr-dirección-estado": "", "mepr-dirección-código postal": "", "mepr-dirección-país": "" }, "profile": { "mepr_nombre_empresa": "", "mepr_birthday": "", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "13", "id": "4", "subscr_id": "I-NTY3JJ4SEM15", "gateway": "pejdpl-1yy", "price": "100.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "active", "created_at": "2018-09-10 22:53:04", "total": "100.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "", "cc_exp_month": "", "cc_exp_year": "", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, "id": "191", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "94773182YA5488446", "status": "complete", "txn_type": "payment", "gateway": "pejdpl-1yy", "prorrateado": "0", "created_at": "2019-04-10 17:41:20", "expires_at": "2019-05-10 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": true, "subscription_payment_index": 8, "commissions": [] }, { "afiliación": "0", "miembro": { "id": 24, "email": "diggity@email.com", "nombre de usuario": "diggity@email.com", "nicename": "diggityemail-com", "url": "", "message": "", "registered_at": "2018-12-03 20:30:51", "first_name": "test", "last_name": "username", "display_name": "diggity@email.com", "address": { "mepr-dirección-uno": "", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "", "mepr-dirección-estado": "", "mepr-dirección-código postal": "", "mepr-dirección-país": "" }, "profile": { "mepr_nombre_empresa": "", "mepr_birthday": "", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "0", "miembro": "24", "id": "21", "subscr_id": "cus_E5ZCTZ9Z5OaNks", "gateway": "peum51-1tc", "price": "10.00", "period": "1", "period_type": "months", "limit_cycles": "0", "limit_cycles_num": "2", "limit_cycles_action": "expire", "prorated_trial": "0", "juicio": "0", "trial_days": "0", "trial_amount": "0.00", "status": "active", "created_at": "2018-12-03 20:31:15", "total": "10.00", "tax_rate": "0.000", "tax_amount": "0.00", "tax_desc": "", "tax_class": "standard", "cc_last4": "1111", "cc_exp_month": "10", "cc_exp_year": "2020", "token": "", "tax_compound": "0", "tax_shipping": "1", "response": null }, "id": "190", "amount": "10.00", "total": "10.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EMLD1JT1LHvX6ILTpgwZu0q", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-06 20:33:55", "expires_at": "2019-05-03 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": true, "subscription_payment_index": 5, "commissions": [] }, { "afiliación": { "id": 92, "title": "Libera tu rendimiento - Premium", "content": "", "excerpt": "", "date": "2018-09-24 14:24:43", "estado": "publicar", "autor": "2", "date_gmt": "2018-09-24 20:24:43", "modified": "2019-04-05 15:35:29", "modified_gmt": "2019-04-05 21:35:29", "group": "93", "price": "257.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Libera tu rendimiento - Premium", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "weeks", "expire_fixed": "2019-04-05", "tax_exempt": falso, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "http://zapier.test.com", "message": "", "registered_at": "2018-08-30 16:42:13", "first_name": "zapier", "last_name": "test", "display_name": "zapier test", "address": { "mepr-address-one": "120 S 200 W", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "lehi", "mepr-dirección-estado": "UT", "mepr-address-zip": "84043", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "", "mepr_birthday": "2019-01-02", "mepr_testslug": "" } }, "coupon": "0", "subscription": "0", "id": "189", "importe": "257.00", "total": "257,00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "mp-txn-5ca7ca6a1d8a6", "status": "pending", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-05 21:36:42", "expires_at": "2019-04-19 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": false "subscription_payment_index": false }, { "membership": { "id": 92, "title": "Libera tu rendimiento - Premium", "content": "", "excerpt": "", "date": "2018-09-24 14:24:43", "estado": "publicar", "autor": "2", "date_gmt": "2018-09-24 20:24:43", "modified": "2019-04-05 15:35:29", "modified_gmt": "2019-04-05 21:35:29", "group": "93", "price": "257.00", "period": "1", "period_type": "lifetime", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Libera tu rendimiento - Premium", "pricing_show_price": true, "pricing_display": "auto", "custom_price": "", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "", "thank_you_page_enabled": false, "thank_you_page_type": "message", "thank_you_message": "", "thank_you_page_id": "0", "custom_login_urls_enabled": false, "custom_login_urls_default": "", "custom_login_urls": [], "expire_type": "delay", "expire_after": "1", "expire_unit": "weeks", "expire_fixed": "2019-04-05", "tax_exempt": falso, "allow_renewal": "1", "access_url": "", "disable_address_fields": false, "simultaneous_subscriptions": false, "use_custom_template": false, "custom_template": "template-sitemap.php", "customize_payment_methods": false, "custom_payment_methods": [], "customize_profile_fields": false, "custom_profile_fields": [], "cannot_purchase_message": "No tienes acceso para comprar este artículo". }, "member": { "id": 5, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "http://zapier.test.com", "message": "", "registered_at": "2018-08-30 16:42:13", "first_name": "zapier", "last_name": "test", "display_name": "zapier test", "address": { "mepr-address-one": "120 S 200 W", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "lehi", "mepr-dirección-estado": "UT", "mepr-address-zip": "84043", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "", "mepr_birthday": "2019-01-02", "mepr_testslug": "" } }, "coupon": "0", "subscription": "0", "id": "188", "importe": "257.00", "total": "257,00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1ELzhmJT1LHvX6ILPVV6mtMr", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "0", "created_at": "2019-04-05 21:35:49", "expires_at": "2019-04-12 23:59:59", "corporate_account_id": "0", "parent_transaction_id": "0", "tax_compound": "0", "tax_shipping": "1", "response": null, "refacturación": false, "subscription_payment_index": false, "commissions": [] } ]
Obtener transacción
Descripción
Obtener una Transacción con un id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl "http://yourdomain.com/wp-json/mp/v1/transactions/167" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-03-14 13:10:21", "modified_gmt": "2019-03-14 19:10:21", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 46, "email": "zapier@test.com", "nombre de usuario": "zapier@test.com", "nicename": "zapiertest-com", "url": "", "message": "", "registered_at": "2019-03-19 16:48:20", "first_name": "Zapier", "last_name": "test", "display_name": "zapier@test.com", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "Zapier test", "mepr_birthday": "2019-03-19", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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 }, "id": "167", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "reembolsado", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] }
Crear transacción
Descripción
Crea una Transacción con los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
trans_num (cadena, valor por defecto: mp-txn-xxx...) - El número único de transacción.
importe (decimal, valor por defecto: 0,00) - Precio base de la transacción (impuestos no incluidos)
total (decimal, valor por defecto: 0,00) - Precio total de la transacción (impuestos incluidos)
importe_impuesto (decimal, valor por defecto: 0,00) - Utilícelo para establecer manualmente el importe del impuesto para esta transacción.
tipo_impuesto (decimal, valor por defecto: 0,00) - Utilícelo para establecer manualmente el tipo impositivo de esta transacción.
tax_desc (cadena) - Utilice esta opción para establecer manualmente la descripción fiscal de esta transacción.
clase_impuesto (cadena, valor por defecto: estándar) - Utilícelo para establecer manualmente la clase de impuesto para esta transacción.
miembro (Obligatorio) (integer, valor por defecto: 0) - ID de usuario de WordPress del usuario.
afiliación (Obligatorio) (integer, valor predeterminado: 0) - ID de afiliación asociado a esta transacción.
cupón (integer, valor predeterminado: 0) - ID de cupón asociado a esta transacción.
estado (cadena, valor por defecto: pendiente) - Estado de esta transacción.
respuesta (cadena) - Un lugar donde almacenar las respuestas POST o GET de la pasarela de pago para su posterior consulta.
pasarela (cadena, valor por defecto: manual) - El ID único del método de pago que se puede encontrar en la pestaña de pagos de la página de Configuración de MemberPress.
suscripción (integer, valor predeterminado: 0) - ID del CPT de suscripción periódica asociado a esta transacción.
fecha_de_creación (cadena, valor por defecto: Current Timestamp) - Fecha de creación de la transacción. Debe tener un formato de fecha y hora MySQL. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC.
fecha_de_vencimiento (cadena, valor por defecto: 0000-00-00 00:00:00) - Fecha en la que expirará la transacción. Debe tener un formato de fecha y hora MySQL. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC. Nota: Deje el valor predeterminado para crear una transacción que dure toda la vida (es decir, que nunca caduque).
send_welcome_email (bool, valor por defecto: false) - Si se establece en true, se enviará un correo electrónico de bienvenida al nuevo miembro. Si el usuario ya ha recibido un correo electrónico de bienvenida y la afiliación para la que se realiza esta transacción no tiene configurado su propio correo electrónico de bienvenida, no se enviará ningún correo electrónico.
send_receipt_email (bool, valor predeterminado: false) - Si se establece en true, se enviará un correo electrónico con el recibo de la transacción.
Solicitud de muestra
$ 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 importe_impuesto="0.00" \ -d tax_rate="0.000" \d -d tax_class=estándar \d -d trans_num="ch_1EFl6yJT1LHvX6IL95fhb7M4" \d -status=reembolsado -d gateway="peum51-1tc" \ -d created_at="2019-03-19 16:48:28" \d -d expires_at="2019-04-19 23:59:59"
Muestra de respuesta
{ "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-03-14 13:10:21", "modified_gmt": "2019-03-14 19:10:21", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 46, "email": "zapier@test.com", "nombre de usuario": "zapier@test.com", "nicename": "zapiertest-com", "url": "", "message": "", "registered_at": "2019-03-19 16:48:20", "first_name": "Zapier", "last_name": "test", "display_name": "zapier@test.com", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "Zapier test", "mepr_birthday": "2019-03-19", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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 }, "id": "167", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "reembolsado", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] }
Actualizar transacción
Descripción
Actualiza una transacción con el id y los valores de campo dados.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
trans_num (cadena, valor por defecto: mp-txn-xxx...) - El número único de transacción.
importe (decimal, valor por defecto: 0,00) - Precio base de la transacción (impuestos no incluidos)
total (decimal, valor por defecto: 0,00) - Precio total de la transacción (impuestos incluidos)
importe_impuesto (decimal, valor por defecto: 0,00) - Utilícelo para establecer manualmente el importe del impuesto para esta transacción.
tipo_impuesto (decimal, valor por defecto: 0,00) - Utilícelo para establecer manualmente el tipo impositivo de esta transacción.
tax_desc (cadena) - Utilice esta opción para establecer manualmente la descripción fiscal de esta transacción.
clase_impuesto (cadena, valor por defecto: estándar) - Utilícelo para establecer manualmente la clase de impuesto para esta transacción.
miembro (Obligatorio) (integer, valor por defecto: 0) - ID de usuario de WordPress del usuario.
afiliación (Obligatorio) (integer, valor predeterminado: 0) - ID de afiliación asociado a esta transacción.
cupón (integer, valor predeterminado: 0) - ID de cupón asociado a esta transacción.
estado (cadena, valor por defecto: pendiente) - Estado de esta transacción.
respuesta (cadena) - Un lugar donde almacenar las respuestas POST o GET de la pasarela de pago para su posterior consulta.
pasarela (cadena, valor por defecto: manual) - El ID único del método de pago que se puede encontrar en la pestaña de pagos de la página de Configuración de MemberPress.
suscripción (integer, valor predeterminado: 0) - ID del CPT de suscripción periódica asociado a esta transacción.
fecha_de_creación (cadena, valor por defecto: Current Timestamp) - Fecha de creación de la transacción. Debe tener un formato de fecha y hora MySQL. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC.
fecha_de_vencimiento (cadena, valor por defecto: 0000-00-00 00:00:00) - Fecha en la que expirará la transacción. Debe tener un formato de fecha y hora MySQL. Todas las fechas almacenadas en la base de datos deben estar en la zona horaria UTC. Nota: Deje el valor predeterminado para crear una transacción que dure toda la vida (es decir, que nunca caduque).
send_welcome_email (bool, valor por defecto: false) - Si se establece en true, se enviará un correo electrónico de bienvenida al nuevo miembro. Si el usuario ya ha recibido un correo electrónico de bienvenida y la afiliación para la que se realiza esta transacción no tiene configurado su propio correo electrónico de bienvenida, no se enviará ningún correo electrónico.
send_receipt_email (bool, valor predeterminado: false) - Si se establece en true, se enviará un correo electrónico con el recibo de la transacción.
Solicitud de muestra
$ 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 importe_impuesto="0.00" \ -d tax_rate="0.000" \d -d tax_class=estándar \d -d trans_num="ch_1EQdOLJT1LHvX6ILZhIzeboJ" \d -d status=complete \d -d gateway="peum51-1tc" \ -d created_at="2019-04-18 16:47:21" \d -d expires_at="2019-05-18 23:59:59"
Muestra de respuesta
{ "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "MemberPress", "mepr_birthday": "2019-04-18", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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": "199", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] }
Borrar transacción
Descripción
Elimina una transacción con el id dado.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X DELETE "http://yourdomai.com/wp-json/mp/v1/transactions/199" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "MemberPress", "mepr_birthday": "2019-04-18", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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": "199", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] }
Transacción de reembolso
Descripción
Reembolsar una transacción determinada.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/167/refund" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "mensaje": "La transacción se ha reembolsado correctamente", "datos": { "afiliación": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-03-14 13:10:21", "modified_gmt": "2019-03-14 19:10:21", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 46, "email": "zapier@test.com", "nombre de usuario": "zapier@test.com", "nicename": "zapiertest-com", "url": "", "message": "", "registered_at": "2019-03-19 16:48:20", "first_name": "Zapier", "last_name": "test", "display_name": "zapier@test.com", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "Zapier test", "mepr_birthday": "2019-03-19", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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 }, "id": "167", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EFl6yJT1LHvX6IL95fhb7M4", "status": "reembolsado", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] } }
Reembolso y cancelación de transacciones
Descripción
Reembolsa una transacción determinada y cancela su suscripción asociada.
Argumentos de búsqueda
Ninguno
Actualizar argumentos
Ninguno
Solicitud de muestra
$ curl -X POST "http://yourdomain.com/wp-json/mp/v1/transactions/199/refund_and_cancel" \ -H "MEMBERPRESS-API-KEY: API-KEY-HERE" \
Muestra de respuesta
{ "mensaje": "La transacción se ha reembolsado correctamente y se ha cancelado su suscripción asociada", "data": { "suscripción": { "id": 15, "title": "Membresía Oro", "content": "", "excerpt": "", "date": "2018-08-30 16:10:22", "estado": "publicar", "autor": "2", "date_gmt": "2018-08-30 16:10:22", "modified": "2019-04-01 15:03:22", "modified_gmt": "2019-04-01 21:03:22", "group": "17", "price": "100.00", "period": "1", "period_type": "months", "signup_button_text": "Sign Up", "limit_cycles": falso, "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": falso, "plan_code": "", "pricing_title": "Afiliación Oro", "pricing_show_price": true, "pricing_display": "custom", "custom_price": "Pricing", "pricing_heading_txt": "", "pricing_footer_txt": "", "pricing_button_txt": "Regístrate", "pricing_button_position": "footer", "pricing_benefits": [ "" ], "register_price_action": "default", "register_price": "Esto es una prueba", "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": "No tienes acceso para comprar este artículo". }, "member": { "id": 56, "email": "zapier@test.com", "nombre de usuario": "zapiertest", "nicename": "zapiertest", "url": "", "message": "", "registered_at": "2019-04-18 16:47:14", "first_name": "zapier", "last_name": "test", "display_name": "zapiertest", "address": { "mepr-dirección-uno": "123 fake st", "mepr-dirección-dos": "", "mepr-dirección-ciudad": "city", "mepr-dirección-estado": "UT", "mepr-address-zip": "81111", "mepr-address-country": "US" }, "profile": { "mepr_company_name": "MemberPress", "mepr_birthday": "2019-04-18", "mepr_testslug": "" } }, "coupon": "0", "suscripción": { "cupón": "0", "suscripción": "15", "miembro": "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", "juicio": "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": "199", "amount": "100.00", "total": "100.00", "importe_impuesto": "0.00", "tax_rate": "0.000", "tax_desc": "", "tax_class": "standard", "trans_num": "ch_1EQdOLJT1LHvX6ILZhIzeboJ", "status": "complete", "txn_type": "payment", "gateway": "peum51-1tc", "prorrateado": "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, "refacturación": falso, "subscription_payment_index": 1, "commissions": [] } }