cURL
curl --request POST \ --url https://mcapi.knewcms.com:2087/lines/extend/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "credits": 123 }'
{ "id": 12345678, "id_p2p": 12345678, "id_iptv": 0, "access_code": null, "id_one_stream": "c93f1fc3-a99a-450e-987e-cf4c95ce3e38", "username": "12345678", "password": "12345678", "owner": 99999, "exp_date": "2025-01-01T02:00:00.946Z", "gift": 0, "notes": "", "status": 1, "is_trial": 0, "last_trust": null, "whatsapp": "", "package_iptv": 30, "package_one_stream": 101, "package_p2p": "64399dca5ea59e8a1de2b083", "error_iptv": 0, "error_p2p": 0, "admin_id": 1, "trash": 0, "country": "Brasil", "product": "ORIGINAL", "iptv_active": 1, "p2p_active": 1, "warez2_active": 1, "error_warez": 0, "id_warez": 0, "id_nexus": null, "id_whot": null, "updated": 0, "krator_package": 1, "migration_url": null, "custom_package": "[103,111,141,101,102,140,104,143,144,145,146]", "id_tvs_from": null, "id_res_tvs_from": null, "createdAt": "2001-01-01:42:18.954Z", "updatedAt": "2001-01-01:42:18.954Z", "email": "", "group_id": null, "max_connections": 1, "max_connections_nexus": null, "telegram": null, "plan": { "id": 2, "name": "Essencial 2 IPTV + 1 P2P", "description": "Este é o plano essencial Wplay. Ele já dá direito a 2 telas IPTV e 1 P2P.", "credits": "1.00", "days": 30, "status": 1, "type": "plan", "productStreamings": [ { "id": 5, "quantity": 1, "maxConnections": 2, "streamingSystem": { "id": 2, "name": "IPTV" } }, { "id": 6, "quantity": 1, "maxConnections": 1, "streamingSystem": { "id": 3, "name": "P2P" } } ] }, "addons": [] }
Este endpoint permite estender o tempo de um usuário existente na plataforma.
POST https://mcapi.knewcms.com:2087/lines/extend/{id} Headers: { "Authorization": "Bearer seu_token_aqui", "Content-Type": "application/json" } Payload: { "credits": 1 }