MÓDULOS
Suscripciones/Recurrencia

Suscripciones con wallet

8min
el módulo de suscripciones permite guardar y vincular las tarjetas a nivel suscriptor mediante la funcionalidad "wallet" de esta forma, al crear diferentes suscriptores con el mismo valor de referencia "customerreference", es posible seleccionar y modificar las tarjetas compartidas entre los mismos ejemplo creación de suscripción con wallet cuando se crea una suscripción con wallet se debe enviar el parámetro adicional wallet en "true" { "total" 1000, "currency" "ars", "name" "suscripción con wallet", "description" "mobbex dev", "interval" "1m", "trial" 0, "reference" "subscription a00111223", "type" "manual", "test" true, "return url" " https //mobbex com", "webhook" "https //webhook com", "wallet" true } respuesta { "result" true, "data" { "uid" "h4qaghope9qw6cukvo", "name" "suscripción con wallet", "description" "mobbex dev", "interval" "1m", "initialday" 1, "total" 1000, "trial" 0, "setupfee" 0, "charge" "total", "cccutoffday" 1, "url" "https //mobbex com/p/subscriptions/subscribe/h4qaghope9qw6cukvo", "return url" " https //mobbex com", "webhook" "https //webhook com", "shorten url" "https //mobbex com/p/subscriptions/subscribe/h4qaghope9qw6cukvo", "test" true } } ejemplo crear suscriptor con wallet llamando a la api de crear suscriptor , se debe agregar el parámetro "customerreference" válido que será la referencia del cliente en la wallet múltiples suscriptores podrán hacer referencia al mismo customer en la wallet { "customer" { "email" "demo\@mobbex com", "identification" "12123123", "name" "test mobbex" }, "reference" "r2332112121234", "customerreference" "cr2332112121234", "startdate" { "day" 4, "month" 2 } } respuesta { "result" true, "data" { "uid" "4qrf2dc5l8yupiyqgy", "reference" "r2332112121234", "sourceurl" "https //mobbex com/p/subscriptions/h4qaghope9qw6cukvo/subscriber/4qrf2dc5l8yupiyqgy/source", "secondarysourceurl" "https //mobbex com/p/subscriptions/h4qaghope9qw6cukvo/subscriber/4qrf2dc5l8yupiyqgy/source/secondary", "subscriberurl" "https //mobbex com/p/subscriptions/h4qaghope9qw6cukvo/subscriber/4qrf2dc5l8yupiyqgy", "subscription" { "uid" "h4qaghope9qw6cukvo" } } } obtener información con wallet ejemplo obtener información con wallet get https //api mobbex com/p/wallet/ref\ cr2332112121234 respuesta { "result" true, "data" { "uid" "4mr1urz4d8filomnpu", "reference" "cr2332112121234", "test" true, "customerdata" { "email" "demo\@mobbex com", "identification" "12123123", "name" "test demo" }, "features" \[], "status" "active", "sources" \[ { "uid" "w\ t3j9tbmjflvku846we", "name" "tarjeta terminada en 6691", "type" "card", "priority" "primary", "card" { "number" "47654068 6691", "bin" "47654068", "last4" "6691" } }, { "uid" "w 36ixf2d0gyabjjykxp", "name" "tarjeta terminada en 1008", "type" "card", "priority" "secondary", "card" { "number" "53236299 1008", "bin" "53236299", "last4" "1008" } } ], "updated" "2025 02 04t17 40 14 689z", "created" "2025 02 04t17 40 14 689z" } } cambio de método de pago via wallet ejemplo cambio de método de pago via wallet post https //api mobbex com/p/subscriptions/h4qaghope9qw6cukvo/subscriber/5h1lbrt4wngyfx3puf/source { 	"token" "w\ t3j9tbmjflvku846we", 	"securitycode" "200" } respuesta { "result" true, "data" { "status" "success", "code" "200", "text" "operación exitosa!", "operation" { "view" "default", "options" {}, "id" "3eqrsgw7ojxhjdgadhn631", "status" { "code" "200", "text" "aprobado", "message" "transacción aprobada", "data" {}, "view" "default" }, "total" 30 78, "currency" { "value" "test", "label" "test money", "symbol" "t$", "locale" "es", "isocode" "000", "exponent" 2, "hidden" false }, "data" \[], "actions" \[] } } }