api.tipmoto.com » API documentation » Reference » Test save (dry-run)

Test save (dry-run)

When programming an export, you may need to verify how to send the data and whether they are correct. In selected agendas (moto, dily, prislusenstvi and the sub-agenda photo/sort) you can use the test save mode.

When saving, add the parameter ?dry-run=true . As a result, the record is not saved, only the validations are performed. The result is a response identical to the validation messages, with the element <dryRun>true</dryRun> added

Example of the resulting XML:

<tipmoto>
  <success>true</success>
  <dryRun>true</dryRun>
  <result>
    <warnings>
      <warning>Value 'aktivni' filled in incorrectly. Set to value 1</warning>
      <warning>Value 'stk' filled in incorrectly. Set to value 1</warning>
    </warnings>
    <infos>
      <info>'lastModified' is read-only</info>
    </infos>
  </result>
</tipmoto>

Setting as inactive

If you are testing sending ads, you can also send a new ad with the value <aktivni>0</aktivni> , which means that the ad will not be published.

TipMoto.com Contact us