ServerToServer Notification
The ServerToServer notification flow is intended to notify the merchant by sending a JSON frame with the final result of the authorization request to a callback url.
Request sent by Alignet
Header
Field | Description | Type |
|---|---|---|
| It will contain a signature to validate that the response json is authentic. |
|
Body
Field | Description | Accepted Value | Type | Mandatory |
|---|---|---|---|---|
| Indicates whether the process was successful | Alfanumeric:
|
| YES |
| Merchant ID | Alfanumeric |
| YES |
| Merchant order number | Numeric greater than or equal to 6 digits |
| YES |
| Object with transaction information |
| YES | |
| Transaction amount | Numeric |
| YES |
| Transaction status |
|
| YES |
| Currency code of the transaction that was authorized | Numeric |
| YES |
| Amount of the transaction that was authorized. The amount must be in cents. | Numeric |
| YES |
| Object containing detailed result of processing. This object may change depending on the payment method. This field is variable and modifiable over time, take it as a reference.
|
|
| NO* |
| Object containing metadata of the executed flow |
|
| YES |
| Object containing the result of the executed flow |
|
| YES |
| Code representing the result of the executed flow | Numeric |
| YES |
| Object that contains the message resulting from the flow. |
|
| YES |
| Language-level locale for the message of the executed stream | Alfanumeric |
| YES |
| Message resulting from the executed flow | Alfanumeric |
| YES |
Example
{
"success": "true",
"action": "authorize",
"merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
"merchant_operation_number": "2391645",
"transaction": {
"transaction_id": "5hk8rwa3h3cq9oyfs3a28v1ms",
"state": "AUTORIZADO"
"amount": "15000",
"currency": "604",
"processor_response": {
"date": "17-01-2024 12:27:46",
"authorization_code": "055552",
"result_message": {
"code": "00",
"description": "Approval and completed successfully"
}
}
},
"meta": {
"status": {
"code": "00",
"message_ilgn": [
{
"locale": "es_PE",
"value": "Procesado correctamente"
}
]
}
}
}
Callback response
After sending the frame to callback, Alignet will wait 10 seconds to get a HTTPS STATUS-CODE 200 response otherwise it will retry later. The amount of retry notifications is configurable per merchant.