Query Materials
Retrieves trade material records for a merchant within a specified time range, with optional filters and pagination.
Endpoint
POST /remittance/material/query-materials
Sandbox base URL: https://rem-api-sandbox.pagsmile.com
Content-Type: application/json; charset=UTF-8
The request uses the standard Remittance API request envelope. The fields below describe the decrypted biz_data object.
Request body
Decrypted biz_data fields
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant.
material_id
long
O
Pagsmile-assigned unique identifier of the material record.
transaction_type
integer
O
Business transaction type represented by the record. See Transaction Type for supported values.
business_type
integer
O
Business category represented by the material record and used for compliance review.
Supported values:
10 — Goods trade
11 — Service trade
20 — Platform
21 — Independent platform
start_date
string
M
Start of the query period, inclusive. Format: yyyy-MM-dd.
end_date
string
M
End of the query period, inclusive. Format: yyyy-MM-dd.
page_num
int
O
One-based page number of the result set.
Default: 1.
page_size
int
O
Maximum number of records returned on each page.
Default: 10.
Maximum: 30.
Plaintext biz_data example
{
"merchant_id": 100398,
"material_id": 100001,
"transaction_type": 1,
"business_type": 1,
"start_date": "2026-07-20",
"end_date": "2026-07-20",
"page_num": 1,
"page_size": 10
}Request example
Response
The data field in the response envelope is AES-encrypted. Decrypt random_key with your RSA private key, then use the resulting AES key to decrypt data. See Security for implementation details.
Encrypted response example
Decrypted data example
Response data fields
material_id
long
M
Pagsmile-assigned unique identifier of the material record.
material_name
string
M
Human-readable name of the material record.
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant associated with the returned record.
transaction_type
Integer
M
Business transaction type represented by the record. See Transaction Type for supported values.
business_type
Integer
O
Business category represented by the material record and used for compliance review.
Supported values:
10 — Goods trade
11 — Service trade
20 — Platform
21 — Independent platform
contract_no
string
O
Contract number shown in the supporting trade material.
contract_date
string
O
Date of the supporting contract.
Format: yyyy-MM-dd.
buyer_name
string
O
Legal name of the buyer shown in the supporting trade material.
buyer_country
string
O
Two-letter ISO 3166-1 alpha-2 code of the buyer's country.
amount
string
O
Monetary amount of the transaction, expressed in the corresponding currency.
amount_linking
string
O
Total amount currently under review for association with the material.
amount_linked
string
O
Total amount successfully associated with the material.
currency
string
O
Three-letter ISO 4217 code of the currency in which the material record values are denominated.
platform_name
string
O
Name of the commerce platform associated with the transaction.
payee_name
string
O
Name of the payee or withdrawal beneficiary.
created_at
string
O
Date and time when the material record was created.
Format: yyyy-MM-dd HH:mm:ss.
comments
string
O
Review comments or reason for rejection or failure, when provided.
Related APIs
Last updated