Guides from IB about the use of pinyin in assessment:
Pinyin will not be assessed discretely as part of the examination itself. For listening comprehension questions requiring a written response, candidates are to write their responses using either simplified or traditional characters
Link to document.