Skip to main content
Developer Communities Admin
Community Manager
September 15, 2026

Has anyone built the Raw Punch Import API to enter raw punches with Labor Metrics?

  • September 15, 2026
  • 2 replies
  • 0 views

Originally posted by Leon Eapen on August 21, 2026 at 1:22 AM.

 

Hi Team,

 

Has anyone built the Raw Punch Import API to enter raw punches with Labor Metrics? We have a customer who needs to import a raw punch with multiple Labor Metrics. I tried doing this, but I kept getting an error saying the Labor Metrics Type is incorrect, even though the Labor Metric Type is present. I’d appreciate any samples of a Raw Punch API import that includes Labor Metric Type.

 

Thanks in advance!

    2 replies

    Developer Communities Admin
    Community Manager
    September 15, 2026

    Originally replied by Brenda Sutton on Aug 21, 2026, 10:00 AM.

     

    Hi @Leon Eapen​ , if you can share the payload and exact error message, that would be helpful.

    Developer Communities Admin
    Community Manager
    September 15, 2026

    Originally replied by Leon Eapen on Aug 23, 2026, 8:16 PM.

     

    Hi @Brenda Sutton​ ,

    The payload is as below :

     

     

        {

            "EmployeeBadge": "12345",

            "RawPunchTime": "2026-08-20T07:00:00+10:00",

            "PunchType": 1,

            "PunchDevice": "API2",

            "ProjectXRefCode": "ACT_PIC",

            "LaborMetrics": [

                {

                    "TypeXRefCode": "CREW",

                    "CodeXRefCode": "ALPHA"

                }

            ],

            "Quantity": 6.7

        }

     

     

     

    The error that I get is :

     

    {

        "ProcessResults": [

            {

                "Level": "ERROR",

                "Message": "Invalid labour metrics type code: INVALID_CODE"

            }

        ]

    }