latestSwagger 2.02026-08-109034173.2 KB

edcd035d71f5

transactions

Validate an offer without creating an invoice or charging

Dry-runs offer validation: checks product IDs, quantities, pricing, taxes, shipping, and coupon data. Does not create an invoice or charge a card. The contact's shipping address will be updated if provided.

post/transaction/validateOffer

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

Offer is valid