There is no official specification for this — the QR code spec does not say anything about the contents. Everything I know about the commonly-used and de facto formats and conventions is summarized in this wiki:
https://github.com/zxing/zxing/wiki/Barcode-Contents