Query store transaction records
GET https://{handle}.myshopline.com/admin/openapi/v20250601/payments/store/transactions.json
handle
: The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com
, the store handle is open001
.Query a store's transaction records, including records of payments, refunds, and disputes.
Query Parameters
- date_max stringSpecify the cut-off creation date and time for transactions to query, transactions created before this date and time are returned. The
date_min
anddate_max
parameters must be specified at the same time, and the maximum time interval betweendate_min
anddate_max
cannot exceed 6 months. Format: ISO 8601.Example:2024-12-10T00:00:00+08:00
- date_min stringSpecify the start creation date and time for transactions to query, transactions created on or after this date and time are returned. The
date_min
anddate_max
parameters must be specified at the same time, and the maximum time interval betweendate_min
anddate_max
cannot exceed 6 months.date_min
can only be specified to query transactions created within 12 months. Format: ISO 8601.Example:2024-12-10T00:00:00+08:00
- limit stringMaximum number of transaction records to be returned in the query. The maximum number cannot exceed
1000
. Default value:100
. - page_info stringThe unique identifier for pagination queries, used to locate a specific page.This parameter value is obtained from the
link
value in the response header of this API after you have queried the pagination information. For example, if thelink
value you obtained is<https://\{handle\}.myshopline.com/admin/openapi/\{version\}/products/products.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next"
, the value ofpage_info
iseyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9
.For more information on how to use pagination, refer to Paging Mechanism. - since_id stringThe unique identifier for a payment, refund, or dispute. Filter transaction records that occurred before this order number for the
since_id
mode (query the first page of data). For more information on how to use pagination, refer to Paging Mechanism.Example:10020122431667364394911580160
- status stringTransaction status.When
transaction_type
=PAYMENT
, the valid values are:CREATED
: The transaction has been initiated.CUSTOMER_ACTION
: The transaction is pending customer action, such as confirmation or payment.PROCESSING
: The SHOPLINE Payments system is processing the transaction internally.SUCCEEDED
: The transaction was completed successfully.FAILED
: The transaction failed.CANCELLED
: The transaction has been cancelled.EXPIRED
: The transaction expired due to inactivity or time limits.
Whentransaction_type
=REFUND
, the valid values are:CREATED
: The transaction has been initiated.PROCESSING
: The SHOPLINE Payments system is processing the transaction internally.SUCCEEDED
: The transaction was completed successfully.FAILED
: The transaction failed.
Whentransaction_type
=DISPUTE
anddispute_type
=CHARGEBACK
, the valid values are:CREATED
: The dispute has been initiated.EVIDENCE_RETURNED
: Evidence submitted by the merchant was returned due to being incomplete or insufficient. The merchant needs to resubmit evidence.EVIDENCE_REQUIRED
: SHOPLINE Payments requests additional evidence from the merchant.MERCHANT_SUBMITTED
: The merchant has submitted evidence for review.RESOLVED
: The dispute is resolved but requires further action to determine the final outcome (eitherWON
orLOST
).CANCELLED
: The dispute was cancelled, likely leading to aWON
outcome for the merchant.EVIDENCE_UNDER_REVIEW
: SHOPLINE Payments is reviewing the evidence submitted by the merchant.LOST
: The dispute was resolved in favor of the customer, with funds being returned to the customer.WON
: The dispute was resolved in favor of the merchant. Merchant retains funds.EXPIRED
: The dispute expired due to inactivity. This likely leads to aLOST
outcome for the merchant.SLP_EXPIRED
: The merchant failed to provide evidence within the allotted time. This likely results in anEXPIRED
dispute and potential loss for the merchant.ACCEPTED
: The merchant accepted the dispute. This leads to aLOST
outcome for the merchant.MERCHANT_ACCEPTED
: The merchant agreed to resolve the dispute. This leads to anACCEPTED
outcome for the customer.
Whentransaction_type
=DISPUTE
anddispute_type
=PRE_CHARGEBACK
, the valid values are:PRE_CHARGEBACK_CREATED
: A pre-chargeback has been initiated (a warning of a potential chargeback). The merchant needs to decide whether to accept or reject the refund request.PRE_CHARGEBACK_IN_ACCEPT
: The merchant accepted the pre-chargeback, leading to aPRE_CHARGEBACK_ACCEPTED
outcome.PRE_CHARGEBACK_IN_REJECT
: The merchant rejected the pre-chargeback, leading to aPRE_CHARGEBACK_REJECTED
outcome.PRE_CHARGEBACK_IN_EXPIRE
: A pre-chargeback expired due to merchant inactivity. The outcome could be eitherPRE_CHARGEBACK_ACCEPTED
orPRE_CHARGEBACK_REJECTED
.PRE_CHARGEBACK_ACCEPTED
: The merchant accepted the pre-chargeback and initiated a refund.PRE_CHARGEBACK_REJECTED
: The merchant rejected the pre-chargeback, potentially leading to further action, such as a chargeback.
Whentransaction_type
=DISPUTE
anddispute_type
=RETRIEVAL
, the valid values are:RETRIEVAL_CREATED
: A retrieval request has been submitted.RETRIEVAL_FINISHED
: The retrieval was completed successfully.RETRIEVAL_CANCELED
: The retrieval request was cancelled.
Whentransaction_type
=DISPUTE
anddispute_type
=FRAUD_NOTIFICATION
, the valid values are:FRAUD_FINISHED
: Notification of potential fraudulent activity. The merchant should contact the customer to verify the transaction and potentially issue a refund if necessary.
Example:SUCCEEDED
- trade_order_id stringThe unique identifier for a payment, refund, or dispute. Precisely search for information on the specified order number.Example:
10020122431667364394911580160
- transaction_type stringTransaction type. Valid values are:
PAYMENT
: payment transactionREFUND
: refund transactionDISPUTE
: dispute transaction
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Response
- 200
- 400
- 401
- 429
For more information about status codes, see Http status code.
Response Headers
link
The URL link that provides the pagination data. You can obtainpage_info
from this parameter for subsequent pagination requests. This parameter is returned when the requested page has a previous or next page. For more information on how to use pagination, refer to Paging Mechanism.traceId
traceId
Response Body
transactionsobject[]
Transaction list.additional_dataobject
Additional Information.dispute_evidence_update_deadline stringDeadline for merchant to submit evidence. Format: ISO 8601.is_settled booleanWhether the transaction has been settled.true
: settledfalse
: to be settled
Example:true
reserve_held stringReserved funds. SHOPLINE Payments may charge a certain reserve for payment orders and will transfer it into the merchant's account balance after the holding period ends. Rounded to 2 decimal places.Example:1.23
reserve_release_time stringRelease time of reserved funds, the time when SHOPLINE Payments transfers the reserved funds into the merchant's account balance. Format: ISO 8601.Example:2024-12-10T00:00:00+08:00
statement_time stringConsolidated statement generation time. Format: ISO 8601.amount stringTransaction amount. Rounded to 2 decimal places.Example:10.10
channel_deal_id stringThe serial number for the payment channel used by SHOPLINE Payments to process transactions.Example:Z237HWV6LT7QCWX3
create_time stringTransaction order creation time. Format: ISO 8601.Example:2024-12-09T00:00:00+08:00
credit_cardobject
Credit card information. This field is returned when the value ofpayment_method
isCreditCard
,Applepay
, orGooglepay
.auth_code stringAuthorization code. The authorization code is a unique code generated by the issuing bank to indicate that the transaction has been approved.Example:123456
bin stringCard BIN.Example:48068133
brand stringCard brand.Example:Visa
issuer_country stringCard issuing country.Example:US
last4 stringLast four digits of card number.Example:1234
type stringCard type.Example:CREDIT
currency stringTransaction currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD
.Example:USD
customerobject
Customer information.personal_infoobject
Customer identity information.first_name stringCustomer's first name.Example:demo
last_name stringCustomer's last name.Example:payment
dispute_type stringThis field is returned whentransaction_type
isDISPUTE
. Valid values are:CHARGEBACK
: A customer disputed the transaction with their bank, resulting in a reversal of funds.PRE_CHARGEBACK
: This signifies a preliminary stage before a full chargeback. The issuing bank is investigating the dispute.RETRIEVAL
: The acquirer requests additional information from the merchant regarding the transaction.FRAUD_NOTIFICATION
: This indicates a notification of potential fraudulent activity related to the transaction.
Example:CHARGEBACK
exchangeobject
Foreign exchange information.amount stringThe amount of foreign exchange based on the actual payment amount, rounded to 2 decimal places.Example:10.10
currency stringExchange currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD
.Example:USD
rate stringExchange rate, in the format ofTransaction currency/Exchange currency @Exchange rate
. The value is precise to 10 decimal places. Example:USD/USD @1.0000000000
.Example:USD/USD @1.0000000000
fee stringTransaction fees. If SHOPLINE Payments charges a fee to the merchant, this field is displayed as a negative amount. If SHOPLINE Payments refunds a fee to the merchant, this field is displayed as a positive amount.Example:-0.22
fee_type stringFee type. Valid values are:domestic
: Local transaction fee, the fee for accepting domestic bank card transactions.international
: Cross-border transaction fee, the fee for accepting foreign bank card transactions.
Example:international
merchant_id stringMerchant’s ID in SHOPLINE Payments.Example:2143350491097202688
paid_amount stringActual payment amount, rounded to 2 decimal places.Example:10.10
payment_method stringPayment method.Example:ApplePay
payment_method_optionobject
Optional information for payment method.installmentobject
Installment information of payment method.count stringNumber of installments.Example:12
payment_msgobject
Payment failure information. Whentransaction_type
isPAYMENT
orREFUND
, and the status isFAILED
, this field is returned.code stringError code.Example:The payment has been declined for unspecificed reasons.
msg stringError description.Example:4600
reason stringThe reason of refund or dispute. Whentransaction_type
=DISPUTE
anddispute_type
=CHARGEBACK
, the valid values are:fraudulent
: The transaction was fraudulent.unrecognized
: The transaction is suspicious.duplicate
: The customer was charged twice for the same item or service.subscription_canceled
: The customer canceled a subscription but was still billed.product_not_received
: The customer did not receive the purchased product.product_unacceptable
: The customer received the product but was dissatisfied with it.credit_not_processed
: The customer was promised a refund but never received it.general
: Other reasons.
Whentransaction_type
=DISPUTE
anddispute_type
=PRE_CHARGEBACK
/RETRIEVAL
/FRAUD_NOTIFICATION
, this field value can be any string.Whentransaction_type
=REFUND
, this field value can be any string.Whentransaction_type
=PAYMENT
, the reason field is empty.seller_order_id stringBusiness order number.Example:123456
status stringTransaction status. For specific values of this field, refer to the description of thestatus
field in the query parameters.Example:SUCCEEDED
sub_payment_method stringPayment sub-methods are detailed classifications ofpayment_method
, and only some payment methods have sub-methods. For example, the payment methodAlipay
includes the sub-methodsAlipayQrCode
andAlipayWap
.sub_status stringTransaction sub-statuses are detailed classifications of thestatus
, and only some transaction statuses have sub-statuses.Whenstatus
=FAILED
, the valid values are:CONFIRM_FAILED
: An exception occurred during theCONFIRM
phase of the transaction.CAPTURE_FAILED
: An exception occurred during theCAPTURE
phase of the transaction.PAYMENT_FAILED
: An exception occurred during thePAYMENT
phase of the transaction.RISK_REJECTED
: The transaction was rejected due to risk control reasons.
trade_order_id stringThe unique identifier for a payment, refund, or dispute.Example:10010062529029006852253184000
transaction_type stringTransaction type. Valid values are:PAYMENT
: payment transactionREFUND
: refund transactionDISPUTE
: dispute transaction
update_time stringTransaction detail update time. Format: ISO 8601. Updates include changes to transaction status and settlement information.Example:2024-12-09T01:00:00+08:00
API Explorer
Debugger
Examples
Was this article helpful to you?