Shortening a long or complex DOI or URL is optional.
If you wish to shorten a DOI, use the shortDOI Service: http://shortdoi.org/. The service will either create a new shortDOI, or return the existing shortDOI if one has already been created.
Example:
Nielsen, K. S., Clayton, S., Stern, P. C., Dietz, T., Capstick, S., & Whitmarsh, L. (2020). How psychology can help limit climate change. American Psychologist. Advance online publication. https://doi.org/ggptzz
"Any shortened URL is acceptable in a reference as long as you check the link t ensure it takes you to the correct location."
Example:
Ostrovsky, Y., & Picot, G. (2020). Innovation in immigrant-owned firms in Canada. Statistics Canada. https://tinyurl.com/y9f6kzm6
(Publication Manual of the American Psychological Association, 2020, p. 300)