PHP Classes

UK HMRC

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  Learn with a PHP OAut...  >  All threads  >  UK HMRC  >  (Un) Subscribe thread alerts  
Subject:UK HMRC
Summary:Anyone using this class to interface with HMRC in UK ?
Messages:2
Author:GB Systems
Date:2018-11-08 15:34:45
 

  1. UK HMRC   Reply   Report abuse  
Picture of GB Systems GB Systems - 2018-11-08 15:34:45
If anyone is using this class to interface with VAT(MTD) API from HMRC in UK, can they help me with correct server settings and/or code samples

  2. Re: UK HMRC   Reply   Report abuse  
Picture of GB Systems GB Systems - 2018-12-21 09:32:07 - In reply to message 1 from GB Systems
To any future users of this class:

Don't take HMRC documentation at face value. Examples given by them don't mean that the example test data already exists.

Users of this class need to know about the undocumented setting
"RequestContentType" which for POST transactions of JSON data needs to be set to "application/json" and included in the options array in the callApi function