Question: What is the "reference" field used for?

Answer: It is used to store a unique id returned by the GSM service provider when a message is sent.

More information