Overview


Create API is used to create entry in Gazelle Point-of-Sale. You will need to first authenticate using Authenticate API before invoking Create API.


Parameters


PARAMETER VALUE  
a <Gazelle Cloud ID>  REQUIRED
action create  REQUIRED
type <Type (possible values are listed below this table)>  REQUIRED
saleitem_1_itemid <Item ID for Sale Item 1 (use Read API to get Item ID)>  REQUIRED

saleitem_1_quantity

<Quantity for Sale Item 1>  REQUIRED

saleitem_1_unitsell

<Unit Sell for Sale Item 1>  REQUIRED
saleitem_1_unittax <Unit Tax for Sale Item 1>  REQUIRED

saleitem_2_itemid

<Item ID for Sale Item 2 (use Read API to get Item ID)>  OPTIONAL

saleitem_2_quantity

<Quantity for Sale Item 2>   OPTIONAL

saleitem_2_unitsell

<Unit Sell for Sale Item 2>   OPTIONAL

saleitem_2_unittax

<Unit Tax for Sale Item 2>  OPTIONAL
salepayment_1_paymentmethodid

<Payment Method ID for Sale Payment 1 (use Read API to get Payment Method ID)>

 OPTIONAL
salepayment_1_amount <Amount for Sale Payment 1>  OPTIONAL


Possible Type : sale


Examples


Create a sale transaction in Gazelle Demo Account for the following:

2 x APPLETV @ $150 each

Note that using Read API, we can discover that APPLETV has Item ID = 47, and Cash Payment Method has Payment Method ID = 1


PARAMETER VALUE
a

b0bfa14759

action create
type sale
saleitem_1_itemid 47

saleitem_1_quantity

2

saleitem_1_unitsell

150
saleitem_1_unittax 0
salepayment_1_paymentmethodid

1

salepayment_1_amount 300


URL: https://cloud.phostersoft.com/api?a=b0bfa14759&action=create&type=sale&saleitem_1_itemid=47&saleitem_1_quantity=2&saleitem_1_unitsell=150&saleitem_1_unittax=0&salepayment_1_paymentmethodid=1&salepayment_1_amount=300