Create Webhook URL
Registers a callback URL for one or more Remittance API notification types.
Endpoint
POST /remittance/webhook/create
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.
Encrypt biz_data, encrypt the AES key into random_key, and sign the request according to the Common request specification.
Request body
Decrypted biz_data fields
webhook_url
string(128)
M
HTTPS callback URL to which Pagsmile sends notifications.
webhook_desc
string(128)
O
Human-readable description used to identify the webhook configuration.
Plaintext biz_data example
{
"webhook_type": 1,
"webhook_url": "https://www.example.com",
"webhook_desc": "Example reference"
}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
webhook_id
long
O
Pagsmile-assigned unique identifier of the configured webhook endpoint.
Related APIs
Last updated