/1/purchase - GET

Overview

This API fetches a purchase for the learner that was assigned.


Headers

KeyvalueDescription
X-LearnerId
(Required)
<LearnerId value>The learner for which you want to create the authorization for

*Code Example

curl -X GET "https://api-sandbox.vbmappapp.com/1/purchase" \
    -H "Authorization: Bearer YOUR_RESELLER_API_TOKEN" \
    -H "Content-Type: application/json" \
		-H "X-LearnerId: 98898"

Example Response

{
    "success": true,
    "learnerId": 123,
    "learnerName": "John Doe",
    "totalProducts": 3,
    "activeProducts": 2,
    "expiredProducts": 1,
    "products": [
      {
        "id": 456,
        "productDescription": "VB-MAPP Assessment",
        "beginDate": "2024-01-01",
        "endDate": "2025-01-01",
        "isActive": true,
        "isExpired": false,
        "purchaseId": 789,
        "purchaseDate": "2024-01-01T10:00:00Z"
      }
    ]
  }

Did this page help you?