Skip to content

Commit ccd09fd

Browse files
Merge pull request #2842 from MultiSafepay/DOCS-4001
DOCS-4001: Add Webhook example response
2 parents 4b7ca76 + ebb8ad3 commit ccd09fd

File tree

1 file changed

+80
-1
lines changed

1 file changed

+80
-1
lines changed

content/payment-management/webhook.md

+80-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ You can configure the webhook endpoint at:
7777

7878
📘 **Note:** If you configure your webhook endpoint at site **and** order level, the order level endpoint is used by default.
7979

80-
### Example
80+
### Example request
8181

8282
``` javascript
8383
curl -X POST \
@@ -93,7 +93,86 @@ curl -X POST \
9393
"notification_method": "POST"
9494
}
9595
}'
96+
9697
```
98+
<details id="example-get-response">
99+
<summary><b>Example response</b></summary>
100+
101+
```json
102+
{
103+
"success": true,
104+
"data": {"amount":1000,
105+
"amount_refunded":0,
106+
"costs":[
107+
{"amount":0.44,
108+
"description":"0.44 For iDEAL Transactions",
109+
"transaction_id":"8009375",
110+
"type":"SYSTEM"}
111+
],
112+
"created":"2022-09-07T11:19:59",
113+
"currency":"EUR",
114+
"custom_info":
115+
{
116+
"custom_1":null,
117+
"custom_2":null,
118+
"custom_3":null
119+
},
120+
"customer": {
121+
"address1":"Neherkade",
122+
"address2":null,
123+
"city":"Gravenhage",
124+
"country":"NL",
125+
"country_name":"Netherlands",
126+
"email":"[email protected]",
127+
"first_name":"Testperson-nl",
128+
"house_number":"XI",
129+
"last_name":"Approved",
130+
"locale":"nl_NL",
131+
"phone1":"0612345678",
132+
"phone2":null,
133+
"state":null,
134+
"zip_code":"2521VA"
135+
},
136+
"description":"Product description",
137+
"fastcheckout":"NO",
138+
"financial_status":"initialized",
139+
"items":null,
140+
"modified":"2022-09-07T11:19:59",
141+
"order_id":"my-order-id-1",
142+
"payment_details":{
143+
"account_holder_name":null,
144+
"account_iban":"https://testpayv2.multisafepay.com/simulator/ideal?trxid=3924195754138182&ideal=prob&issuerid=0031&merchantReturnURL=https%3A%2F%2Ftestpayv2%2Emultisafepay%2Ecom%2Fconnect%2Fredirect%3Flang%3Dnl%5FNL%26mspid%3D8996625",
145+
"account_id":null,
146+
"card_authentication_result":null,
147+
"external_transaction_id":"3924195754138182",
148+
"issuer_id":"0031",
149+
"recurring_flow":null,
150+
"recurring_id":null,
151+
"recurring_model":null,
152+
"type":"IDEAL"
153+
},
154+
"payment_methods":[
155+
{"amount":1000,
156+
"currency":"EUR",
157+
"description":"Product description",
158+
"external_transaction_id":"3924195754138182",
159+
"payment_description":"iDEAL",
160+
"status":"initialized",
161+
"type":"IDEAL"}
162+
],
163+
"reason":null,
164+
"reason_code":null,
165+
"related_transactions":null,
166+
"status":"initialized",
167+
"transaction_id":8996625,
168+
"var1":null,
169+
"var2":null,
170+
"var3":null
171+
}
172+
}
173+
```
174+
</details>
175+
<br>
97176

98177
**Success!** You have configured your webhook endpoint Now you need to configure your web server to handle notifications correctly.
99178

0 commit comments

Comments
 (0)