transaction object

Properties of the transaction object

{
  "id": "guid",
  "customerid": "guid",
  "invoiceid": "guid",
  /* unknown=0, decline=8,failure=16, success=1 */
  "statecode": "integer",
  /* inactive=7, active=1, draft=0, manual=32, deleted=1024 */
  "status": "integer",
  /* void=2, verification=4, payment=8, refund=16, decline=32, chargeback=64 */
  "type": "integer",
  /* 0=sandbox, 1=production */
  "environment": "integer",
  "totalamount": "decimal",
  "currencycode": "string",
  "paymentmethodid": "guid",
  "paymentproviderid": "guid",
  "customer": "customer object",
  "paymentmethod": "paymentmethod object",
  "paymentprovider": "paymentprovider object",
  "businessunitid": "guid",
  "businessunit": "businessunit object",
  "invoice": "invoice object",
  /* none=0,generic=101010, cardexpired=30000, invalidcardnumber=40100, invalidcardexpiry=40200, invalidcardcvc=40300, carddecline=101011, carddeclinefraud=101020, cardholder=101021 */
  "errorcode": "integer",
  /* reference recieved by payment gateway (psp) */
  "gatewayreference": "string",
  /* response recieved by payment gateway (psp) */
  "gatewayresponse": "string",
  /* error recieved by payment gateway (psp) */
  "gatewayerrorcode": "string",
    /* set by upodi */
  "createdby": "guid",
    /* set by upodi */
  "modifiedby": "guid",
    /* set by upodi */
  "createddate": "datetime",
    /* set by upodi */
  "modifieddate": "datetime"
}