Hi Tim, > No, I drew a complete blank
I detoured through reading up on OAuth2, etc., but this looks to do what you want... I think https://metacpan.org/pod/WebService::HMRC::VAT#SYNOPSIS shows the use of that Perl library, once `MY-ACCESS-TOKEN' is obtained. The same author provides a suite of HMRC libraries, including https://metacpan.org/pod/WebService::HMRC::Authenticate#SYNOPSIS to get tokens, that were originally developed for https://ledgersmb.org/. HMRC provide a sandbox to run code against for testing. HMRC provide quite a lot of documentation for using the API. https://developer.service.hmrc.gov.uk/guides/vat-mtd-end-to-end-service-guide/ It uses OAuth2 that means the user is bumped onto HMRC to prove their identity. Normally, HMRC would then redirect the browser back to the `Carry on' page on the website whence they came, but there's alternatives that include displaying the token so the user can copy it somewhere else, e.g. to the command line. The House of Commons Treasury Committee have tackled the provision of free software for MTD, including VAT: physical page 10 of https://publications.parliament.uk/pa/cm201617/cmselect/cmtreasy/1135/1135.pdf and starting on physical page 31 of https://publications.parliament.uk/pa/cm201617/cmselect/cmtreasy/927/927.pdf -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-04-02 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk