Payment

A single payment.

Fields

FieldDescription
id
int 
(required)

Payment ID

Example value:6843548354
orderid
int 
(required)

Order ID

Example value:1269434
amount
decimal 
(required)

Payment amount

Example value:22.500000
paidts
timestamp 
(required)

Timestamp of payment

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

Payment method ID

Example value:123
properties
map<string, mixed
(required)

Additional properties for the payment. Structure depends on the payment method

Example value:{ "amount": "96.35", "amountRefunded": null, "cancelledDatetime": null, "createdDatetime": "2015-03-13T04:57:41.0Z", "description": "Order 60534521", "details": { "cardHolder": "John Johnsson", "cardNumber": "6008", "cardSecurity": "3dsecure" }, "expiredDatetime": null, "id": "tr_qCXD7waFrT", "links": { "redirectUrl": "https://apps.ticketmatic.com/backoffice/paymentredirects/mollie/D5bjEq34RTFfd", "webhookUrl": "https://apps.ticketmatic.com/backoffice/paymentwebhooks/mollie/D5bjEq34RTFfd" }, "metadata": { "accountid": "400", "orderid": "605", "paymentrequestid": "109" }, "method": "creditcard", "mode": "live", "paidDatetime": "2015-03-13T05:00:14.0Z", "status": "paid" }
refundpaymentid
int 
(required)

Id for the original payment if this payment is a refund

Example value:234
vouchercodeid
int 
(required)

Id of the vouchercode to use for this payment

Example value:2948

Example

 1{
 2    "id": 6843548354,
 3    "orderid": 1269434,
 4    "amount": 22.500000,
 5    "paidts": "2014-09-26 15:24:36",
 6    "paymentmethodid": 123,
 7    "properties": {
 8        "amount": "96.35",
 9        "amountRefunded": null,
10        "cancelledDatetime": null,
11        "createdDatetime": "2015-03-13T04:57:41.0Z",
12        "description": "Order 60534521",
13        "details": {
14            "cardHolder": "John Johnsson",
15            "cardNumber": "6008",
16            "cardSecurity": "3dsecure"
17        },
18        "expiredDatetime": null,
19        "id": "tr_qCXD7waFrT",
20        "links": {
21            "redirectUrl": "https://apps.ticketmatic.com/backoffice/paymentredirects/mollie/D5bjEq34RTFfd",
22            "webhookUrl": "https://apps.ticketmatic.com/backoffice/paymentwebhooks/mollie/D5bjEq34RTFfd"
23        },
24        "metadata": {
25            "accountid": "400",
26            "orderid": "605",
27            "paymentrequestid": "109"
28        },
29        "method": "creditcard",
30        "mode": "live",
31        "paidDatetime": "2015-03-13T05:00:14.0Z",
32        "status": "paid"
33    },
34    "refundpaymentid": 234,
35    "vouchercodeid": 2948
36}