Pay an Invoice.

Parameters

id

The ID of the Invoice to be paid.

amt

The amount that will be paid.

Example

FM_api('Invoice_pay', ['id' => '1', 'amt' => 500]);

Result

On Success

{'ok':1}

On Failure

If the User is not logged in:

{'error':'not logged in'}

If the amount is not set:

{'error':'amount is not set'}