SetCredential Command under DoorLock cluster not working

Hey guys,
I was able to commission a Yale matter lock and was able to do some operations with it over matter-thread. However when I tried to set a lock code with “SetCredential” command, I am getting a failure status 133 - InvalidCommand
Command: {"command":"device_command","timeout":5,"command_id":"120","args":{"node_id":8,"endpoint_id":1,"cluster_id":257,"command_name":"SetCredential","payload":{"operationType":0,"credential":{"credentialType":1,"credentialIndex":2},"credentialData":"445566","userStatus":1},"response_type":null,"timed_request_timeout_ms":5000,"interaction_timeout_ms":5000}}

Response:{ "command_id": "120", "result": { "status": 133, "userIndex": null, "nextCredentialIndex": 3 } }

Is there anything wrong with the command or structure? Kindly let me know if you have any inputs

Br,

After multiple attempts, we were able to identify the issue

  1. The credentialData should be encoded in base64 format, and the lock was able to see the code as expected ie, “445566” (string) → “NDQ1NTY2” (base64)
  2. I verified the other fields like userIndex, userType, and credentialStatus are not mandatory to set a credential

Thanks,