# API: Add payment

# addInvoicePayment

Submit new payment (transaction) to invoice

# Required parameters

Parameter Description
id Invoice ID
amount Transaction amount
paymentmodule ID of related payment gateway
fee Fees applied to payment (0 for no fees)
date Transaction date

# Optional parameters

Parameter Description
transnumber Transaction number
currency_id Currency ID
rate Currency rate
send_email Set to 1 to notify customer about transaction

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addInvoicePayment&id=ID&amount=AMOUNT&paymentmodule=PAYMENTMODULE&fee=FEE&date=DATE

# PHP Samples

# Response

{
    "success": true,
    "call": "addInvoicePayment",
    "server_time": 1323787706,
    "info": [
        "Transaction has been added to invoice"
    ]
}
Last Updated: 10/7/2024, 2:36:43 PM