Dokumentasi API : Inventory – Print Group Allocations

Pada halaman ini, akan dijelaskan penggunaaan API untuk mendapatkan data alokasi produk berdasarkan pengelompokan tertentu.


API Print Group Allocation List

Method ini digunakan untuk mendapatkan data list alokasi yang dikelompokan berdasarkan kode alokasi, kode inventory, produk id, brand, type, typebrand, atau tidak sama sekali (none)

Request

METHODURL
GEThttp://apiv2.mitrabunso.com/public/inventory/print/list/{id_user}/{groupBy}/{printStatus}/{id_product}/{limit}/{offset}

Parameter yang digunakan pada method ini adalah sebagai berikut:

METHODParameterWajibTipeKeterangan
GETid_userYASTRING36 character id user
GETgroupByYASTRINGPilihan pengelompokan data alokasi.

Pilihan pengelompokan:
– “allocationCode”,
– “inventoryCode”,
– “productId”,
– “type”,
– “brand”,
– “typebrand”,
– atau “none”
GETprintStatusYABOOLEAN0 => Belum di-print,
1 => Sudah di-print
GETid_productYASTRING36 character id produk yang dipilih.
*Note: dapat pula diisikan “none” apabila tidak ada id yang dimasukkan
GEToffsiteYAintoffsite data
GETlimitYAintlimit data
HEADAuthorizationYABearer TokenBearer Token Login

Response

{
                "message": "Data retrieved successfully",
                "show": "1",
                "total": 372,
                "data": [
                    {
                        "deleted_at": null,
                        "spaceName": "0FV1 DUS 27",
                        "typeId": "b3c143ac-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Clear View Standing Cover",
                        "brandId": "5623359c-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Oppo Reno4",
                        "colorId": "743a1cfa-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Gold",
                        "quantity": "100",
                        "allocationCode": "22122213323",
                        "totalPacks": "10",
                        "id": "000ffb35-895a-4aa3-b381-a1a6a1261176",
                        "code": "22122213323411089",
                        "print": "1",
                        "transaction": "0",
                        "pack": null,
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": null,
                        "productCode": null,
                        "productId": "00a4d3ca-c0b0-4131-a1eb-a2f69db1283a",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": null,
                        "spaceId": "7f8fb7a3-df57-40ad-9068-371dfa2019c3",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2023-04-17 16:06:03.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    }
                ]
            }

API Print Group Allocation Labels

Method ini digunakan untuk mendapatkan data label alokasi yang dikelompokan berdasarkan kode alokasi, kode inventory, produk id, brand, type, typebrand, atau tidak sama sekali (none)

Request

METHODURL
GEThttp://apiv2.mitrabunso.com/public/inventory/print/labels/{id_user}/{groupBy}/{value_group}/{id_product}/{printStatus}

Parameter yang digunakan pada method ini adalah sebagai berikut:

METHODParameterWajibTipeKeterangan
GETid_userYASTRING36 character id user
GETgroupByYASTRINGPilihan pengelompokan data alokasi.

Pilihan pengelompokan:
– “allocationCode”,
– “inventoryCode”,
– “productId”,
– “type”,
– “brand”,
– “typebrand”,
– atau “none”
GETvalue_groupYASTRINGValue dari group yang dipilih.

Pasangan value:
– “allocationCode” => Kode Alokasi,
– “inventoryCode” => Kode Inventory,
– “productId” => Id Produk,
– “type” => Id Type,
– “brand” => Id Brand,
– “typebrand” => Id Type + Id Brand
GETid_productYASTRING36 character id produk yang dipilih.
*Note: dapat pula diisikan “none” apabila tidak ada id yang dimasukkan
GETprintStatusYABOOLEAN0 => Belum di-print,
1 => Sudah di-print
HEADAuthorizationYABearer TokenBearer Token Login

Response

{
                "message": "Data retrieved successfully",
                "total": 7,
                "data": [
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "2CD300",
                        "qty": "10",
                        "allocationCode": "22050223500",
                        "totalPacks": null,
                        "id": "33baead7-ce35-4ead-92f0-ff8f48729d2c",
                        "code": "22050223500751001",
                        "print": "0",
                        "transaction": "1",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "IMPORT-2CD300",
                        "space": "LT 2 - 2CD300",
                        "spaceId": "4e65a73b-931c-48b4-b127-d55284e2faa9",
                        "created": {
                            "date": "2022-05-02 23:50:07.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-05-02 23:50:07.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "8b66d86d-f1ee-4da0-b7c5-d0e6b5992f2e",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "120A0D01",
                        "qty": "10",
                        "allocationCode": "22122814323",
                        "totalPacks": null,
                        "id": "64972de4-fc6e-4a84-b7cd-c934113a44f2",
                        "code": "22122814323410391",
                        "print": "0",
                        "transaction": "0",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": "0FW0 DUS 7",
                        "spaceId": "b0b47917-4c29-4d43-aba6-2411e33570ff",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "120A0D01",
                        "qty": "10",
                        "allocationCode": "22122814323",
                        "totalPacks": null,
                        "id": "6662aeb8-d63a-43a7-b511-76e7c688f9b3",
                        "code": "22122814323410394",
                        "print": "0",
                        "transaction": "0",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": "0FW0 DUS 7",
                        "spaceId": "b0b47917-4c29-4d43-aba6-2411e33570ff",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "120A0D01",
                        "qty": "10",
                        "allocationCode": "22122814323",
                        "totalPacks": null,
                        "id": "6d96cbd5-821d-4cb3-97b0-457f9b46c263",
                        "code": "22122814323410392",
                        "print": "0",
                        "transaction": "0",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": "0FW0 DUS 7",
                        "spaceId": "b0b47917-4c29-4d43-aba6-2411e33570ff",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "120A0D01",
                        "qty": "10",
                        "allocationCode": "22122814323",
                        "totalPacks": null,
                        "id": "92aa3f1a-a677-4cb3-89fe-f5cf604e6061",
                        "code": "22122814323410393",
                        "print": "0",
                        "transaction": "0",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": "0FW0 DUS 7",
                        "spaceId": "b0b47917-4c29-4d43-aba6-2411e33570ff",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "120A0D01",
                        "qty": "10",
                        "allocationCode": "22122814323",
                        "totalPacks": null,
                        "id": "9de0f3e0-a0ed-41ef-ae45-7c9826c42e03",
                        "code": "22122814323410390",
                        "print": "0",
                        "transaction": "0",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "INPUTSYSTEM20230119",
                        "space": "0FW0 DUS 7",
                        "spaceId": "b0b47917-4c29-4d43-aba6-2411e33570ff",
                        "created": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-12-22 12:32:00.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "5dff9be2-c24d-41dc-8078-1ebf9e3448f6",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    },
                    {
                        "deleted_at": null,
                        "typeId": "b3c14bfe-ace6-11ec-b86f-f6f18f017643",
                        "typeName": "Flip Wallet Dompet",
                        "brandId": "562370ca-ace7-11ec-b86f-f6f18f017643",
                        "brandName": "Samsung A51",
                        "colorId": "743a2ba0-ace5-11ec-b86f-f6f18f017643",
                        "colorName": "Navy",
                        "spaceCode": "2CD300",
                        "qty": "10",
                        "allocationCode": "22050223500",
                        "totalPacks": null,
                        "id": "d6c80b2a-7d02-4310-a0d8-1bc06add094c",
                        "code": "22050223500751000",
                        "print": "0",
                        "transaction": "1",
                        "pack": "Pack Isi 10",
                        "packId": "22d812f7-0e2b-4186-a7a8-0775f8f6dd3b",
                        "product": "Flip Wallet Dompet Samsung A51 Navy",
                        "productCode": "0FW0SA5100NVY",
                        "productId": "45c66c50-5516-4c83-89ac-b1e877e8a332",
                        "plCode": "IMPORT-2CD300",
                        "space": "LT 2 - 2CD300",
                        "spaceId": "4e65a73b-931c-48b4-b127-d55284e2faa9",
                        "created": {
                            "date": "2022-05-02 23:50:07.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "updated": {
                            "date": "2022-05-02 23:50:07.000000",
                            "timezone_type": 3,
                            "timezone": "Asia/Bangkok"
                        },
                        "createdBy": "8b66d86d-f1ee-4da0-b7c5-d0e6b5992f2e",
                        "updatedBy": "",
                        "createdByName": null,
                        "updatedByName": null
                    }
                ]
            }

Leave a Reply