add generate po contract

This commit is contained in:
Hanan Askarim
2026-07-12 11:40:43 +07:00
parent c83c42698a
commit 562caa467d
2 changed files with 892 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
@host = accone.aplikasi.web.id/one-api/mockup
### Generate PI cicilan langsung
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/GenerateMonthlyInvoices
Content-Type: application/json
{
"startDate": "2026-07-01",
"endDate": "2026-07-31",
"dryRun": "Y"
}
### List kontrak eligible yang belum diproses
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/ListEligibleContracts
Content-Type: application/json
{
"startDate": "2026-07-01",
"endDate": "2026-07-31"
}
### Generate PI cicilan untuk 1 kontrak
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/GenerateMonthlyInvoices
Content-Type: application/json
{
"startDate": "2026-07-01",
"endDate": "2026-07-31",
"contractID": 123,
"dryRun": "Y"
}
### Panggil endpoint generate via cURL internal
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/CurlGenerateMonthlyInvoices
Content-Type: application/json
{
"baseUrl": "https://accone.aplikasi.web.id/one-api/index.php",
"startDate": "2026-07-01",
"endDate": "2026-07-31",
"userID": 1,
"dryRun": "Y"
}
### Panggil endpoint generate via cURL internal untuk kontrak tertentu
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/CurlGenerateMonthlyInvoices
Content-Type: application/json
{
"baseUrl": "https://accone.aplikasi.web.id/one-api/index.php",
"startDate": "2026-07-01",
"endDate": "2026-07-31",
"userID": 1,
"contractID": 123,
"dryRun": "N"
}