moves Command Payload to `api` package