Perbaikan HT
Last updated
Last updated
Purpose: API ini digunakan untuk rubah data HT
Overview: Proses rubah data HT mensyaratkan 2 object data dalam bentuk form yaitu Header dan Detail
POST
{API_URL}/portal/ck4/perbaikan-ht
Name | Type | Description |
---|---|---|
Endpoint ini menerima parameter berikut dalam form data:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Schema Perbaikan HT",
"description": "JSON Schema untuk Perbaikan HT.",
"properties": {
"idCk4Header": {
"type": "string",
"format": "uuid",
"description": "ID CK4 Header."
},
"nomorPemberitahuan": {
"type": "string",
"description": "Nomor pemberitahuan."
},
"totalJumlahKemasan": {
"type": "integer",
"description": "Total jumlah kemasan."
},
"totalJumlahKemasanDilekatiPita": {
"type": "integer",
"description": "Total jumlah kemasan yang dilekati pita."
},
"totalJumlahProduksiHtBtg": {
"type": "integer",
"description": "Total jumlah produksi HT Botol."
},
"totalJumlahProduksiHtGr": {
"type": "integer",
"description": "Total jumlah produksi HT Gelas."
},
"totalJumlahProduksiHtMl": {
"type": "integer",
"description": "Total jumlah produksi HT Mill."
},
"dokumen": {
"type": "string",
"format": "binary",
"description": "Dokumen."
},
"nomorSurat": {
"type": "string",
"description": "Nomor surat."
},
"tanggalSurat": {
"type": "string",
"format": "date",
"description": "Tanggal surat."
},
"details": {
"type": "array",
"description": "Data detail produksi.",
"items": {
"type": "object",
"properties": {
"idCk4Detail": {
"type": "string",
"format": "uuid",
"description": "ID detail CK4."
},
"bahanKemasan": {
"type": "string",
"description": "Bahan kemasan."
},
"hje": {
"type": "integer",
"description": "Harga Jual Eceran."
},
"idMerkHt": {
"type": "string",
"format": "uuid",
"description": "ID merk HT."
},
"isiPerKemasan": {
"type": "integer",
"description": "Isi per kemasan."
},
"jenisProduksiHt": {
"type": "string",
"description": "Jenis produksi HT."
},
"jumlahKemasan": {
"type": "integer",
"description": "Jumlah kemasan."
},
"jumlahKemasanDilekatiPita": {
"type": "integer",
"description": "Jumlah kemasan yang dilekati pita."
},
"jumlahProduksi": {
"type": "integer",
"description": "Jumlah produksi."
},
"nomorProduksi": {
"type": "string",
"description": "Nomor produksi."
},
"tanggalProduksi": {
"type": "string",
"format": "date",
"description": "Tanggal produksi."
}
},
"required": [
"idCk4Detail",
"bahanKemasan",
"hje",
"idMerkHt",
"isiPerKemasan",
"jenisProduksiHt",
"jumlahKemasan",
"jumlahKemasanDilekatiPita",
"jumlahProduksi",
"nomorProduksi",
"tanggalProduksi"
]
}
}
},
"required": [
"idCk4Header",
"nomorPemberitahuan",
"totalJumlahKemasan",
"totalJumlahKemasanDilekatiPita",
"totalJumlahProduksiHtBtg",
"totalJumlahProduksiHtGr",
"totalJumlahProduksiHtMl",
"dokumen",
"nomorSurat",
"tanggalSurat",
"details"
]
}
--boundary
Content-Disposition: form-data; name="idCk4Header"
4034d080-db3c-45a5-8c08-ef5b8b3e04e6
--boundary
Content-Disposition: form-data; name="nomorPemberitahuan"
98987
--boundary
Content-Disposition: form-data; name="totalJumlahKemasan"
100
--boundary
Content-Disposition: form-data; name="totalJumlahKemasanDilekatiPita"
300
--boundary
Content-Disposition: form-data; name="totalJumlahProduksiHtBtg"
100
--boundary
Content-Disposition: form-data; name="totalJumlahProduksiHtGr"
0
--boundary
Content-Disposition: form-data; name="totalJumlahProduksiHtMl"
0
--boundary
Content-Disposition: form-data; name="dokumen"
(binary)
--boundary
Content-Disposition: form-data; name="nomorSurat"
tes
--boundary
Content-Disposition: form-data; name="tanggalSurat"
2024-08-14
--boundary
Content-Disposition: form-data; name="details[0].idCk4Detail"
ed00d5f0-382f-461c-9f2a-e7f78b025dda
--boundary
Content-Disposition: form-data; name="details[0].bahanKemasan"
Kertas dan Sejenisnya
--boundary
Content-Disposition: form-data; name="details[0].hje"
3000
--boundary
Content-Disposition: form-data; name="details[0].idMerkHt"
51e196c3-5e72-4c76-825b-52b69a1d7ddf
--boundary
Content-Disposition: form-data; name="details[0].isiPerKemasan"
1
--boundary
Content-Disposition: form-data; name="details[0].jenisProduksiHt"
SKT - III
--boundary
Content-Disposition: form-data; name="details[0].jumlahKemasan"
100
--boundary
Content-Disposition: form-data; name="details[0].jumlahKemasanDilekatiPita"
300
--boundary
Content-Disposition: form-data; name="details[0].jumlahProduksi"
100
--boundary
Content-Disposition: form-data; name="details[0].nomorProduksi"
545454
--boundary
Content-Disposition: form-data; name="details[0].tanggalProduksi"
2024-08-14
{
"message": "Success",
"status": true,
"data": null
}
Parameter Name | Type | Description | Example Value |
---|---|---|---|
Parameter Name | Type | Description | Example Value |
---|---|---|---|
Status Code | Description | Reason |
---|---|---|