Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payin Reconciliation

Overview

The Payin Reconciliation API allows merchants to retrieve transaction-level Payin records and reconcile them with their internal orders. Each record includes identifiers, amounts, payment methods, transaction statuses, processing fees, and transaction times.

Records are returned in pages for a specified UTC time range. Each request can cover up to 24 hours.

Before You Start

Use an active merchant account and an enabled App ID for the environment you are calling. The corresponding App Secret Key must be configured and used to generate the Authorization header.

Use credentials from the same environment as the endpoint. Sandbox credentials cannot be used with the Production endpoint, and Production credentials cannot be used with the Sandbox endpoint.

Endpoint

Environment
HTTP Method
URL

Sandbox

POST

https://gateway-test.pagsmile.com/bill/reconciliation

Production

POST

https://gateway.pagsmile.com/bill/reconciliation

Headers

Name
Type
Required
Description

Content-Type

string

Required

Request content type. Use application/json; charset=UTF-8.

Authorization

string

Required

Basic authentication value generated as Basic Base64(app_id:app_secret_key). The app_id in this header must match the app_id in the Request Body.

Request Body

Name
Type
Required
Constraints
Description

app_id

string

Required

Must be a valid, enabled App ID.

Merchant application ID obtained from the Pagsmile dashboard.

timestamp

string

Required

Format: yyyy-MM-dd HH:mm:ss.

Time when the request is sent.

version

string

Optional

Default: 2.0.

API version.

start_time

string

Required

UTC time in yyyy-MM-dd HH:mm:ss format.

Start of the reconciliation time range.

end_time

string

Required

UTC time in yyyy-MM-dd HH:mm:ss format. The interval from start_time must not exceed 24 hours.

End of the reconciliation time range.

page_num

integer

Optional

Default: 1.

Page number to retrieve.

page_size

integer

Optional

Default: 5000. Maximum: 10000.

Maximum number of records returned on each page.

type

string

Optional

One of SUCCESS, REFUNDED, CHARGEBACK, or CHARGEBACK_REVERSED. Values are case-sensitive.

Filters the results by transaction status. If omitted, transactions are not filtered by status.

The maximum query interval is 24 hours. To reconcile a longer period, divide it into multiple requests and use pagination when the response contains more records than the selected page_size.

Request Sample

Success Response

Response Body

Parameter
Type
Description

code

string

Response code. 10000 indicates success.

msg

string

Response message.

page_num

integer

Current page number.

page_size

integer

Maximum number of records requested for the page.

total_size

string

Total number of records matching the query.

detail_list

array

Payin transaction records returned for the current page. Each object contains the fields described below.

merchant_no

string

Pagsmile merchant number.

app_id

string

Merchant application ID associated with the transaction.

trade_no

string

Pagsmile transaction ID.

out_trade_no

string

Merchant-defined transaction ID.

subject

string

Transaction subject submitted when the Payin was created.

content

string

Transaction description submitted when the Payin was created.

order_currency

string

Transaction currency in uppercase.

order_amount

string

Transaction amount, returned with two decimal places.

processing_fee

string

Total processing fee, returned with two decimal places.

processing_fee_detail

array

Processing fee breakdown. Returned when fee details are available.

fee_name

string

Fee component name.

fee_amount

number

Amount of the fee component.

currency

string

Currency of the fee component.

trade_status

string

Current transaction status.

method

string

Payin payment method.

order_time

string

Time when the Payin transaction was created.

update_time

string

Successful payment time when available; otherwise, the latest transaction update time.

Last updated