Skip to content

Receiving DirectBilling transaction information
Webhook

Request

Signature

Calculating the signature when receiving a notification

We generate the signature by combining all the parameters received (except for the signature) to the API in the order from the table above, separating them with a | separator and adding at the end the key available in the customer panel in the service.
Hashing must be done using sha256.
Example:
dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a|e14f8074|transaction_db_payed|11.07|13.67|5.00|https://www.simpay.pl/complete|https://www.simpay.pl/failure|test|123123123|1|key

The notification is sent using the POST method and requires you to respond in the body with OK and Http Code 200

Bodyapplication/json
idstring, (uuid), = 36 characters(TransactionId)^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]...required

Transaction ID

Example:"dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a"
serviceIdstring, = 8 characters(ServiceId)^[0-9a-f]{8}$required

Service ID

Example:"e14f8074"
statusstring(directbillingTransactionStatus)required

Transaction status

Enum:"transaction_db_new""transaction_db_confirmed""transaction_db_payed""transaction_db_rejected"
Example:"transaction_db_payed"
valuesobjectrequired

Transaction amounts

Example:
{ "net": 11.07, "gross": 13.61, "partner": 5 }
returnsobject
Example:
{ "complete": "https://www.simpay.pl/complete", "failure": "https://www.simpay.pl/failure" }
controlstring
number_fromstringrequired

Phone number from which the transaction was made

Example:"48123123123"
providerintegerrequired
Example:1
signaturestringrequired

Signature of the notification Read how to generate the signature

Example:"a3116cf4f1e960223c2cc3088bf387278b6675255209bdeaf96a2f316a2fadc1"
POST
directbillingTransactionNotification
Payload
{ "id": "dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a", "serviceId": "e14f8074", "status": "transaction_db_payed", "values": { "net": 11.07, "gross": 13.61, "partner": 5 }, "returns": { "complete": "https://www.simpay.pl/complete", "failure": "https://www.simpay.pl/failure" }, "number_from": "48123123123", "provider": 1, "signature": "a3116cf4f1e960223c2cc3088bf387278b6675255209bdeaf96a2f316a2fadc1" }

Responses

Return a 200 status to indicate that the data was received successfully

Bodytext/plain
string
Response
OK