ImportPayment

Used when importing an order.

Fields

FieldDescription
amount
decimal 
(required)

Amount

Example value:24.990000
paidts
timestamp 
(required)

Timestamp of payment

Example value:"2014-09-26 15:24:36"
paymentmethodid
int 
(required)

Payment method id

Example value:1
properties
map<string, mixed>

Additional properties for the payment. Can contain a variable structure.

Example value:{ "amount": 96.340000, "id": "tr_qCXD7waFrT", "mode": "live" }
vouchercode
string

Voucher code that was used for this payment

Example value:"CODE1234"
vouchercodeid
int

Voucher code id that was used for this payment

Example value:1329

Example

 1{
 2    "amount": 24.990000,
 3    "paidts": "2014-09-26 15:24:36",
 4    "paymentmethodid": 1,
 5    "properties": {
 6        "amount": 96.340000,
 7        "id": "tr_qCXD7waFrT",
 8        "mode": "live"
 9    },
10    "vouchercode": "CODE1234",
11    "vouchercodeid": 1329
12}