latestSwagger 2.02026-08-109034173.2 KB

edcd035d71f5

transactions

This will create a new Invoice and optionally send it to a Contact

This will create a new Invoice and optionally send it to a Contact. Please note that this request requires valid parameters for all associated members of the Invoice or the request will fail. If you have doubled-checked all parameters and the request is still failing, check that the payload JSON format is correct by using <a href="http://jsonlint.com/">JSONLint</a>. If credit card and billing information already exist for this contact, you may omit <b>billing_address</b> and <b>payer</b> from the request. Note that <b>trans_date</b> is given in milliseconds elapsed since midnight on 1/1/1970.

post/transaction/requestPayment

Request body

contact_idinteger required

Create new Transaction for this Object instance (Contact ID).

send_invoice'send' | 'draft' required

What type of request payment do we want, draft or email

chargeNow'chargeNow' | 'chargeLog'

Charge Transaction now or or just log a Transaction.

trans_dateinteger

Timestamp (in milliseconds since midnight 1/1/1970) of the Transaction.

invoice_templateinteger required

Invoice ID to use for this Transaction.

gateway_idinteger required

Gateway ID to use for this Transaction.

cc_idinteger

Credit Card ID to use for this Transaction. This can be used instead of Payer.

Example request

{
  "invoice_template": 1
}

Response

Successfully created invoice

codeinteger required
dataobject required
account_idinteger required