• Resolved emoncht

    (@emoncht)


    How can I retrieve License Key through api for woocommerce product variation id? I did not found anything in your documentation

Viewing 1 replies (of 1 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @emoncht,

    Thanks for contacting us,

    I hope you are doing well, You can retrieve a single license key by the license key string itself. The response contains the queried license key data object.

    GET
    /wp-json/lmfwc/v2/licenses/{license_key}

    RESPONSE EXAMPLE:

    {
    
    “success”: true,
    
    “data”: {
    
    “id”: 1,
    
    “orderId”: 165,
    
    “productId”: 20,
    
    “userId”: 1,
    
    “licenseKey”: “FIRST”,
    
    “expiresAt”: “2023-12-28 00:00:00”,
    
    “validFor”: null,
    
    “source”: 2,
    
    “status”: 2,
    
    “timesActivated”: 1,
    
    “timesActivatedMax”: 5,
    
    “createdAt”: “2023-12-11 07:27:15”,
    
    “createdBy”: 1,
    
    “updatedAt”: “2023-12-22 10:52:18”,
    
    “activationData”: [
    
    {
    
    “id”: 3,
    
    “token”: “8a242078c59489077dfa420ed870d043f58cb300”,
    
    “license_id”: 1,
    
    “label”: null,
    
    “source”: 1,
    
    “ip_address”: “::1”,
    
    “user_agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,
    
    “meta_data”: null,
    
    “created_at”: “2023-12-15 14:39:11”,
    
    “updated_at”: “2023-12-15 14:41:30”,
    
    “deactivated_at”: null
    
    }
    
    ]
    
    }
    
    }

    Please have a look at the screenshot.

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thanks & Regards
    WP Experts Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘Retrive Licesense Keys’ is closed to new replies.