South Africa recorded a trade surplus of R20.29bn in July, Sars figures showed on Friday. Stock photo.