{{ translate('Endpoint') }}
POST
{{ route('api.purchases.validation') }}
{{ translate('Parameters') }}
{{ translate('Responses') }}

{{ translate('Success Response:') }}

{
    "status": "success",
    "data": {
        "purchase": {
            "purchase_code": "34a4ee05-1792-4c7a-9e6b-d47*********",
            "license_type": "Regular",
            "price": 59,
            "currency": "{{ defaultCurrency()->code }}",
            "supported_until": "2025-09-26T20:11:14.000000Z", // {{ translate('This will be null when its not supported') }}
            "downloaded": false,
            "purchased_at": "2024-09-26T20:11:14.000000Z",
            "item": {
                "id": 1534268,
                "name": "Lorem Ipsum - simply dummy text of the printing",
                "description":"Lorem Ipsum is simply dummy text of the printing and typesetting industry...."
                "category": "Themes",
                "sub_category": "WordPress", // {{ translate('This will be null when its not exists') }}
                "options": {
                    // {{ translate('Item options here...') }}
                },
                "version": "1.0.0",
                "demo_link": "https://example.com",
                "tags": "Lorem, Ipsum, Listings, simply, dummy, etc...",
                "media": {
                    "thumbnail": "https://example.com/thumbnail.png",
                    "preview_image": "https://example.com/preview.jpg", // {{ translate('This is not included for audio items') }}
                    "preview_video": "https://example.com/video.mp4", // {{ translate('This is only included for video items') }}
                    "preview_audio": "https://example.com/audio.mp3", // {{ translate('This is only included for audio items') }}
                    "screenshots": {
                        "0": "http://example.com/screenshot1.png",
                        "1": "http://example.com/screenshot2.png",
                    }
                },
                "prices": { // {{ translate('This will be null when the item is free') }}
                    "regular": 49,
                    "extended": 199 // {{ translate('This will not exists if the item has no extended license') }}
                },
                "currency": "{{ defaultCurrency()->code }}", // {{ translate('This will be null when the item is free') }}
                "last_update_at": "2024-09-27 13:53:47",
                "published_at": "2024-09-22T05:02:13.000000Z"
            }
        }
    }
}

{{ translate('Error Response') }}:

{
    "status": "error",
    "msg": "{{ translate('Invalid purchase code') }}"
}