Transaction Properties

🔒

Requires order access scope. For more info, refer to:access scope

Transaction Properties

FieldTypeDesc
idstring
order_idstringOrder ID
payment_channelstringPayment channel
e.g.:

- bogus - A test payment channel
- lianlianlocal - A localized payment channel for Lianlian Pay.
- cod
- shoplazzapayment
messagestringJSON returned by payment provider with additional information about transaction success or failure reason
created_atstringThe created_at field records the creation time in UTC (0 timezone), formatted as ISO 8601.
testbooleanWhether it's a test order
error_codestringError code
amountstringTransaction amount
currencystringTransaction currency
trade_idstringThe unique identifier for the transaction provided by the payment provider. This ID is generated and maintained by the payment service (e.g., PayPal, Stripe) to track the transaction on their side.
payment_detailsPaymentDetailsPayment details

PaymentDetails

FieldTypeDesc
card_numberstringCredit card number, showing only the first 6 and last 4 digits
card_monthstringCredit card expiration month
card_yearstringCredit card expiration year
card_first_namestringCardholder's first name
card_last_namestringCardholder's last name
card_first_sixstringFirst 6 digits of the card number
card_last_fourstringLast 4 digits of the card number
avs_result_codestringAddress Verification System response code
cvv_result_codestringResponse code from the credit card company indicating if the customer correctly entered the card's security code or CVV

Field Introduction: Transaction Status

1. status

The status field indicates the current transaction status. Below are the possible values:

  • authorized - The transaction has been authorized but not yet completed.
  • void - The transaction has been canceled.
  • processing - The transaction is currently being processed.
  • success - The transaction was successfully completed.
  • error - The transaction failed due to an error.
  • refunding - A refund for the transaction is in progress.
  • refunded - The transaction has been successfully refunded.
  • refund_failed - The refund attempt for the transaction has failed.
  • expire - The transaction has expired.

Example

{
  "id": "2150768865",
  "order_id": "633130-00000007",
  "payment_channel": "bogus",
  "message": "",
  "created_at": "2024-04-19 09:54:03",
  "test": true,
  "error_code": "",
  "amount": "109.9000",
  "currency": "CNY",
  "trade_id": "test_633130-00000007",
  "status": "success",
  "payment_details": {
    "card_number": "420000******0000",
    "card_month": "01",
    "card_year": "27",
    "card_first_name": "ryan",
    "card_last_name": "zhang",
    "card_first_fix": "420000",
    "card_last_four": "0000",
    "avs_result_code": "",
    "cvv_result_code": ""
  },
  "payment_name": ""
}