Search

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If it fails, you will receive an error message. Please note, if one of your payments has bad data, the entire transaction is invalid. Invoices not in the state of 'Accepted' or 'Paid' will cause the transaction to be invalid.


ERROR CODE

REASON

406

Not Allowed - Bad data in the XML or current delivery state does not allow an update

504

Timeout


Curl

The following command is an example of how to use curl.

curl -H ‘Content-Type:application/xml’ -H ‘Accept:application/xml’ -k -X POST -d @import.xml https://<url>.<cloudlogistics-staging/gocloudlogistics>.com/<endpoint from above>?auth_token=... 

Installing Curl on Windows

On the curl download page there's a link to the download wizard. Complete all the steps as follows:

  1. Select Type of Package: curl executable

  2. Select Operating System: Windows / Win32 or Win64

  3. Select for What Flavour: Generic

  4. Select which Win32 Version (only if you selected Windows / Win32 in step 2): Unspecified

If you chose Windows / Win32 you should end up here, a page that links to http://www.paehl.com/open_source/?CURL_x.y.z (x.y.z will change as newer versions of curl are released). There you can click the first link ("Download WITHOUT SSL") or second link ("Download WITH SUPPORT SSL") for a zip file with curl.exe.

Windows curl example (Based on “WITH SUPPORT SSL” version):

curl -H “Content-Type:application/xml” -H “Accept:application/xml” -k -X POST --data @import.xml” https://<url>.<cloudlogistics-staging/gocloudlogistics>.com/<endpoint from above>?auth_token=...