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

Collection Refund Notification

Notifies the partner of a collection refund and its current status.

Notification delivery

Pagsmile sends an HTTP POST request to your configured webhook URL.

Content-Type: application/json; charset=UTF-8

The notification uses the Webhook Common envelope. The fields below describe the decrypted biz_data object.

Webhook notify_type: 201.

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

Notification body

The following fields describe the decrypted biz_data object.

Field
Type
Requirement
Description

merchant_id

long

M

Pagsmile-assigned unique identifier of the merchant.

collection_id

long

M

Pagsmile-assigned unique identifier of the original collection.

receive_amount

string

M

Original amount received for the collection, expressed in receive_currency.

receive_currency

string

M

Three-letter ISO 4217 code of the currency in which the original collection amount was received.

refund_status

int

M

Current refund status. 1 — Refunding. 2 — Refunded. 3 — Refund Failed.

refund_amount

string

M

Amount of the collection refund, expressed in refund_currency.

refund_currency

string

M

Three-letter ISO 4217 code of the refund currency. This is the original collection currency.

refund_fee

string

O

Fee charged for the collection refund, expressed in refund_currency.

refund_order_no

string

O

Order number of the collection refund, when available.

refund_transaction_id

Long

O

Pagsmile-assigned unique identifier of the collection refund transaction.

refund_reversal_order_no

string

O

Order number of the collection refund reversal, when available.

refund_reversal_transaction_id

long

O

Pagsmile-assigned unique identifier of the refund reversal transaction. Returned when refund_status is 3 (Refund Failed).

refunded_at

string

O

Date and time when the refund completed successfully. Format: yyyy-MM-dd HH:mm:ss. Returned when refund_status is 2 (Refunded).

refund_created_at

string

M

Date and time when the refund request was created. Format: yyyy-MM-dd HH:mm:ss.

Plaintext biz_data example

Refund failed example

Acknowledgement

Return any HTTP 2xx status code after the notification is safely recorded. Process repeated notifications idempotently using the webhook request_id. For delivery, retries, and signature handling, refer to Webhook Common.

Last updated