Get billing records
GET https://{handle}.myshopline.com/admin/openapi/v20260601/payments/store/balance_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 .Get billing records of the SHOPLINE Payments account.
Query Parameters
- payout_id stringPayout ID. The billing records from the time of the previous payout (excluded) to the time of the billing record specified by
payout_id(included) are returned. - since_id stringThe ID of the billing record. When this value is provided, the query for billing records will start from the creation time (exclusive) of the specified billing record ID.
- start_time stringSpecify the earliest date and time for billing records to query. Billing records created on and after this time are returned. If
payout_idis not passed, then bothstart_timeandend_timemust be specified, and the time interval cannot exceed three months. Format: ISO 8601.Example:2025-04-30T00:00:00+08:00 - limit stringMaximum number of records to be returned in the query.Value range: 1-100Default value: 50
- account_type stringThe SHOPLINE Payments account type. Valid values are:
PendingSettlementAccount: The pending settlement account.PayoutAccount: The payout account.RevolvingMarginAccount: The revolving reserve account.FixedMarginAccount: The fixed reserve account.
- end_time stringSpecify the latest date and time for the billing records to query. Billing records created before this time are returned. If
payout_idis not passed, then bothstart_timeandend_timemust be specified, and the time interval cannot exceed three months. Format: ISO 8601.Example:2025-05-31T00:00:00+08:00 - is_settlement_details stringWhether to display billing details in the batch settlement report. Valid values are:
true: Display billing details instead of the settlement record.false: Display the settlement record instead of billing details.
Billing details refer to records with the followingtypevalues:ADJUSTMENTCHARGEBACK_FEECHARGEBACK_FEE_FROZENCHARGEBACK_FEE_UNFROZENCHARGEBACK_FROZENCHARGEBACK_INITIATEDCHARGEBACK_LOSTCHARGEBACK_UNFROZENCHARGEBACK_WONFIXED_RESERVE_COLLECTEDFIXED_RESERVE_RELEASEDPAYMENTPAYMENT_FEE_RETURNEDPAYOUTPAYOUT_FAILEDPAYOUT_FEEPAYOUT_FEE_FROZENPAYOUT_FEE_UNFROZENPAYOUT_FROZENPAYOUT_RETURNEDPAYOUT_UNFROZENPRE_CHARGEBACK_ACCEPTEDPRE_CHARGEBACK_FEEPRE_CHARGEBACK_FEE_FROZENPRE_CHARGEBACK_FEE_UNFROZENPRE_CHARGEBACK_FROZENPRE_CHARGEBACK_REJECTEDPRE_CHARGEBACK_UNFROZENREFUNDREFUND_FAILEDREFUND_FEEREFUND_FEE_FROZENREFUND_FEE_UNFROZENREFUND_FROZENREFUND_INITIATEDREFUND_UNFROZENROLLING_RESERVE_COLLECTEDROLLING_RESERVE_SETTLED_TO_FIXED_RESERVEROLLING_RESERVE_SETTLED_TO_PAYOUT_ACCOUNTTRANSFER
Settlement records refer to records whosetypevalue isSETTLEMENT.Default value:false. - page_info stringThe unique identifier for pagination queries, used to locate a specific page.This parameter value is obtained from the
linkvalue in the response header of this API after you have queried the pagination information.For example, if thelinkvalue you obtained is<https://{handle}.myshopline.com/admin/openapi/{version}/payments/store/balance_transactions.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next", the value ofpage_infoiseyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9.For more information on how to use pagination, refer to Paging Mechanism.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
link
The URL link that provides the pagination data. You can obtainpage_infofrom 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
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
transactionsobject[]
A list of billing records from the merchant's SHOPLINE Payments account.account_balance stringAccount balance. The value is rounded to two decimal places.account_currency stringAccount currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD.account_identify_code stringThe identification code of the SHOPLINE Payments account.account_type stringAccount type. Valid values are:PendingSettlementAccount: The pending settlement account.PayoutAccount: The payout account.RevolvingMarginAccount: The revolving reserve account.FixedMarginAccount: The fixed reserve account.
amount stringSettlement amount. The value is rounded to two decimal places. Negative values represent fees deducted from the merchant, and positive values represent refunds issued to the merchant.exchange_rate stringSettlement exchange rate.exchange_rage=transaction_amount/amount. The value is rounded to 10 decimal places. This field takes a positive value.id stringThe unique identifier for a billing record.interchange_fee stringInterchange fee. The value is rounded to two decimal places. This field takes a negative value, referring to fees deducted from the merchant.net stringNet amount.net=amount+interchange_fee+scheme_fee+payment_method_fee+revolving_margin_account_balance. The value is rounded to two decimal places.payment_method_fee stringPayment method fee. The value is rounded to two decimal places. Negative values represent fees deducted from the merchant, and positive values represent refunds issued to the merchant.payout_account_available_balance stringPayout account available balance. The value is rounded to two decimal places.payout_account_frozen_balance stringPayout account frozen balance. This field takes a positive value. The value is rounded to two decimal places.posting_time stringThe date and time when the SHOPLINE Payments billing record was created. Format: ISO 8601.Example:2025-05-31T10:00:00+08:00revolving_margin_account_balance stringRevolving reserve amount. The value is rounded to two decimal places. Negative values represent revolving reserve deducted from the merchant, and positive values represent revolving margin refunds issued to the merchant.scheme_fee stringScheme fee. The value is rounded to two decimal places. This field takes a negative value, referring to fees deducted from the merchant.settlement_batch_id stringBatch settlement ID.source_order_id stringThe order ID associated with the billing record.source_order_transaction_id stringThe transaction ID associated with the billing record, such as a payment or a refund order ID.transaction_amount stringTransaction amount. The value is rounded to two decimal places.transaction_currency stringTransaction currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD.type stringThe type of billing records. Valid values are:ADJUSTMENT: balance adjustmentCHARGEBACK_FEE: chargeback feeCHARGEBACK_FEE_FROZEN: chargeback fee frozenCHARGEBACK_FEE_UNFROZEN: chargeback fee unfrozenCHARGEBACK_FROZEN: chargeback frozenCHARGEBACK_UNFROZEN: chargeback unfrozenCHARGEBACK_INITIATED: chargeback initiatedCHARGEBACK_LOST: chargeback lostCHARGEBACK_WON: chargeback wonFIXED_RESERVE_COLLECTED: fixed reserve chargedFIXED_RESERVE_RELEASED: fixed reserve releasedPAYMENT: paymentPAYMENT_FEE_RETURNED: payment fee returnedPAYOUT: payoutPAYOUT_FAILED: payout failedPAYOUT_FEE: payout feePAYOUT_FEE_FROZEN: payout fee frozenPAYOUT_FEE_UNFROZEN: payout fee unfrozenPAYOUT_FROZEN: payout frozenPAYOUT_RETURNED: payout returnedPAYOUT_UNFROZEN: payout unfrozenPRE_CHARGEBACK_ACCEPTED: pre-chargeback acceptedPRE_CHARGEBACK_FEE: pre-chargeback feePRE_CHARGEBACK_FEE_FROZEN: pre-chargeback fee frozenPRE_CHARGEBACK_FEE_UNFROZEN: pre-chargeback fee unfrozenPRE_CHARGEBACK_FROZEN: pre-chargeback frozenPRE_CHARGEBACK_REJECTED: pre-chargeback rejectedPRE_CHARGEBACK_UNFROZEN: pre-chargeback unfrozenREFUND: refundREFUND_FAILED: refund failedREFUND_FEE: refund feeREFUND_FEE_FROZEN: refund fee frozenREFUND_FEE_UNFROZEN: refund fee unfrozenREFUND_FROZEN: refund frozenREFUND_INITIATED: refund initiatedREFUND_UNFROZEN: refund unfrozenROLLING_RESERVE_COLLECTED: rolling reserve chargedROLLING_RESERVE_SETTLED_TO_FIXED_RESERVE: rolling reserve settled to fixed reserveROLLING_RESERVE_SETTLED_TO_PAYOUT_ACCOUNT: rolling reserve settled to payout accountSETTLEMENT: settlementTRANSFER: transferWITHHOLDING_PAYMENT: withholding paymentWITHHOLDING_PAYMENT_RETURNED: withholding payment return
API Explorer
Debugger
Examples
Was this article helpful to you?