Home > Services > Set-up Instructions > Receipt Generation

Receipt URL generation

To generate the URL to a customers receipt page for use in your own website you can use the argen.cgi utility :-

Syntax: Call https://usd.swreg.org/cgi-bin/argen.cgi?s=[shop_id]&e=[email]&o=[order_id]&p=[password]

Replace [word] with the specified value.

E.g.

https://usd.swreg.org/cgi-bin/argen.cgi?s=123&e=mister@flibble.com &o=98765&p=spoon

This will return the full URL to the receipt page or an error. The following is a full list of errors generated.

  • ERROR-01 (Invalid Number Of Arguments)
  • ERROR-02 (Unable to connect to database)
  • ERROR-03 (Unknown Server Prefix)
  • ERROR-04 (Cannot find order)
  • ERROR-05 (Invalid Order Number)
  • ERROR-06 (Access Denied)
  • ERROR-07 (No Such Shop)
  • ERROR-08 (Not Your Order)

The output from this cgi is either the full URL to the receipt page on a single line or one of the errors above (exactly as shown above) sent with text/plain mime type.