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

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.

Requirement: M = Mandatory, O = Optional, and C = Conditional. A conditional field is mandatory only when the condition stated in its description applies.

Request body

Decrypted biz_data fields

Field
Type
Requirement
Description

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

This example includes mandatory fields and representative optional or conditional fields. Submit fields marked C only when the condition in the field description applies.

{
  "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

Use the partner_id and app_id assigned to your integration. The values above are placeholders.

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

Field
Type
Requirement
Description

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