Overview


Report API is used to generate sale receipts. You will need to first authenticate using Authenticate API before invoking Report API.


Parameters


PARAMETER VALUE  
a <Gazelle Cloud ID>  REQUIRED
action report  REQUIRED
type <Type (possible values are listed below this table)>  REQUIRED
saleid <Sale ID (use Read API to get Sale ID)>  REQUIRED


Possible Query : salereceipt, salereceiptcomplete


Examples


Generate sale receipt for sale transaction with Sale ID = 5907


PARAMETER VALUE
a

b0bfa14759

action report
type

salereceipt

saleid

5907


URL: https://cloud.phostersoft.com/api?a=b0bfa14759&action=report&type=salereceipt&saleid=5907


If you observe, the JSON response will contain something like the following:


"payload": "./tmp/gazelle/b0bfa14759/salerec20154400640.pdf"


Note that in this case the full URL of the sale receipt will be https://cloud.phostersoft.com/tmp/gazelle/b0bfa14759/salerec20154400640.pdf