Verify a purchase notification
POST
/notification/verify
const url = 'https://api.getdpd.com/v2/notification/verify';const options = { method: 'POST', headers: { Authorization: 'Basic <credentials>', 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({verify_sign: 'example'})};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.getdpd.com/v2/notification/verify \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data verify_sign=exampleChecks that a purchase notification POSTed to your site by DPD’s URL
integration really came from DPD. POST back every parameter you
received, unchanged, including verify_sign.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
verify_sign
required
The signature DPD sent with the notification.
string
key
additional properties
string
Example generated
verify_sign=exampleResponses
Section titled “Responses”Whether the notification is genuine.
Media typetext/plain
string
The username or API password is wrong.