Thank you <@U658H85S9>, it turned out the 40 was t...
# suitescript
t
Thank you @PabloZ, it turned out the 40 was the Document Number and 217 was the internal id I needed.