als_insert_payment.cgi

Top  Previous  Next

Description

The als_insert_payment.cgi interface inserts a payment in the AL-Desk payments table. Payments can then be applied via the AL-Desk Client.

 

Note: when writing vouchers payments are automatically created so there is currently no need to use this call.

 

As is normal for all Put calls a valid webusercode is required.

 

Example Usage          

 

http://127.0.0.1/als_insert_payment.cgi?webusercode=1&amount=100.47&client=100437&reference='apply to helicopter rides'

 

 

 

 

Inputs

Parameter

Description

Required

Example

Data Type

webusercode

Code from WiUsers required for insert access

 

Required

webusercode=5

Integer

client

code of the client

 

Required

client=104437

Integer

amount

amount of the payment

 

Requiredl

amount=100.47

 

reference

Reference text

 

Optional

notes=ariving

%20late

 

Note: spaces must be escaped for http inputs

String

 

 

Returned Fields are echoed back to confirm inputs

#

Field Name

Description

Data Type

1

client

AL-Desk Associated Code

Integer

2

amount

Amount Posted

Currency

3

reference

Reference Text posted

String

4

webusercode

Code from WiUsers required for insert access

 

Integer

 

XML Example

 

<?xml version="1.0" encoding="utf-8" ?>

- <payment>

- <Inputs>

<Param webusercode="1" />

<Param client="100437" />

<Param amount="100.00" />

</Inputs>

- <data>

<row seq="2007" controlno="-1" datevalue="" timevalue="" paytype="1" amount="100" issuedby="1" referencevalue="" issueddesk="1" client="100437" />

</data>

</payment>