Order System for Prakerja
Introduction
This document provides information about the APIs available on the Course .
Overview
In ordering the Prakerja Class, as system we need to hit 2 APIs which are to Arkademi Database and to PMO database. To the Arkademi Database we need to check the Voucher code and to the PMO we need to check the Redeem Code.
Repository
https://gitlab.com/arkademi/api-course-prakerja
https://gitlab.com/arkademi/arkademi-backend-api-orders-and-coupons-prakerja
The Flow
Besides the following diagram, there is a new system included inside this order system (read here).

The APIs
GET /api/v1/prakerja/wc/coupons/checkV2
Function: To check the availability of voucher codes
App\Api\V1\Controllers\Prakerja\Woocommerce\CouponController@check_v2
GET /api/v1/check-status/reedem-code?redeem_code
Function: To check the availability of redemption codes
App\Api\V1\Controllers\Prakerja\Woocommerce\CouponController@checkStatusReedemCode
POST /api/v1/prakerja/order/create
Function: To create the order
App\Api\V1\Controllers\Order\OrderController@create