{
"organizationId": 1,
"name": "PT Limbah Perkasa",
"mouId": 1,
"mouNo": "2024/Mou/00001",
"contractId": 1,
"contractNo": "2024/KTRK/0001",
"TFabaBeneficiaryId": 1,
"discountRules": [
{
"materialCode" : "Material Code 1",
"materialName" : "Fly Ash",
"qtyMin" : 1000,
"qtyMax" : 5000,
"pricePerTon" : 20000,
"discountType" : "percentage",
"discountPercentage" : 10,
"periodStart" : "2024-10-10T15:04:05Z",
"periodEnd" : "2024-10-15T15:04:05Z"
},
{
"materialCode" : "Material Code 2",
"materialName" : "Fly Ash",
"qtyMin" : 2000,
"qtyMax" : 6000,
"pricePerTon" : 30000,
"discountType" : "percentage",
"discountPercentage" : 5,
"periodStart" : "2024-10-10T15:04:05Z",
"periodEnd" : "2024-10-15T15:04:05Z"
}
]
}
curl --location --request POST 'http://localhost:8080/api/v1/fabaDiscount' \
--header 'Content-Type: application/json' \
--data-raw '{
"organizationId": 1,
"name": "PT Limbah Perkasa",
"mouId": 1,
"mouNo": "2024/Mou/00001",
"contractId": 1,
"contractNo": "2024/KTRK/0001",
"TFabaBeneficiaryId": 1,
"discountRules": [
{
"materialCode" : "Material Code 1",
"materialName" : "Fly Ash",
"qtyMin" : 1000,
"qtyMax" : 5000,
"pricePerTon" : 20000,
"discountType" : "percentage",
"discountPercentage" : 10,
"periodStart" : "2024-10-10T15:04:05Z",
"periodEnd" : "2024-10-15T15:04:05Z"
},
{
"materialCode" : "Material Code 2",
"materialName" : "Fly Ash",
"qtyMin" : 2000,
"qtyMax" : 6000,
"pricePerTon" : 30000,
"discountType" : "percentage",
"discountPercentage" : 5,
"periodStart" : "2024-10-10T15:04:05Z",
"periodEnd" : "2024-10-15T15:04:05Z"
}
]
}'
{}