Menu
picture of tbs certificates
picture of tbs certificates
Certificates
Our products range
Partners
Support
Focus


Checking order changes via the TBS INTERNET API

This page contains order change checking examples, and simple PHP implementations examples based on the phpxmlrpc 3 library.

You can also consult our reference documentation.

Main parameters

  • timestampChangementDepuis : If provided, the date from which order changes must be refurned. Must be a unix timestamp or a ISO 8601 formatted date.
  • timestampChangementJusqua : If provided the date until which changes must be returned. Must be a unix timestamp or a ISO 8601 formatted date.
  • typeDate : If the returned dates must be unix timestamps or ISO 8601 formatted dates. Values: "timestamp" or "iso".

Date format

Dates used in the timestampChangementDepuis an timestampChangementJusqua parameters can be unix timestamps or ISO 8601.

In the case of ISO 8601 dates, if no timezone is provided, UTC will be assumed. Unix Timetamps are always using UTC.

Here are some valid date examples:

  • 2017-04-21
  • 685058400
  • 1497909600
  • 2017-02-28T14:58:42
  • 2016-01-14T117:31:00+0200

On the contrary, here are some invalid examples:

  • 17/07/2014
  • 2015-23-08
  • Samedi 31 décembre 2017
  • 19/01
  • Tuesday, June 20, 2017

Request example (XML)

Here is a valid command:

  
<?xml version="1.0"?>
<methodCall>
  <methodName>changementCommandes</methodName>
  <params>
    <param>
      <value><struct>
	<member><name>identification</name>
	<value><struct>
	  <member><name>utilisateur</name>
	  <value><string>MY_USERNAME</string></value>
	  </member>
	  <member><name>motDePasse</name>
	  <value><string>MY_PASSWORD</string></value>
	  </member>
	</struct></value>
	</member>
	<member><name>typeDate</name>
	<value><string>iso</string></value>
	</member>
	<member><name>timestampChangementDepuis</name>
	<value><string>1496735500</string></value>
	</member>
	<member><name>timestampChangementJusqua</name>
	<value><string>1497909600</string></value>
	</member>
      </struct></value>
    </param>
  </params>
</methodCall>


PHP Examples

Reference Example

You can find here a valid order change checking example using PHP.