Update Material
Updates the business details of an existing trade material record.
Endpoint
POST /remittance/material/update-material
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
material_id
Material ID
M
Pagsmile-assigned unique identifier of the material record.
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant.
transaction_type
Integer
M
Business transaction type represented by the record. See Transaction Type for supported values.
business_type
Integer
C
Business category represented by the material record and used for compliance review.
Required when transaction_type is 101 (collection).
Supported values:
10 — Goods trade
11 — Service trade
20 — Platform
21 — Independent platform
amount
string
M
Monetary amount of the transaction, expressed in the corresponding currency.
currency
string
M
Three-letter ISO 4217 code of the currency in which the material record values are denominated.
contract_no
string
C
Contract number shown in the supporting trade material. Required when business_type is 10 (goods trade) or 11 (service trade).
contract_date
string
C
Date of the supporting contract.
Format: yyyy-MM-dd. Required when business_type is 10 (goods trade) or 11 (service trade).
buyer_name
string
C
Legal name of the buyer shown in the supporting trade material. Required when business_type is 10 (goods trade) or 11 (service trade).
buyer_country
string
C
Two-letter ISO 3166-1 alpha-2 code of the buyer's country. Required when business_type is 10 (goods trade) or 11 (service trade).
platform_name
string
C
Name of the commerce platform associated with the transaction. Required when business_type is 20 (platform) or 21 (independent platform).
payee_name
string
C
Name of the payment recipient. Required when transaction_type is 111 (payment).
Plaintext biz_data example
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.
Related APIs
Last updated