Cancel Payment

Cancel a pending payment

POSTCancel Payment
Endpoint URL
https://testnet.trustsig.xyz/v1/payment/cancel

Authentication Status

API Key is required for all requests Webhook Secret

Headers

x-api-key
Required

Your shop API key

x-signature
Required

HMAC-SHA256 of timestamp|method|fullUrl|body signed with your secret key, sent as 64 hex characters

How to create the signature
x-timestamp
Required

Current Unix time in milliseconds — must be the same value used to create x-signature

Parameters (Request Body)

id
string Required

Payment ID (UUID) returned when the payment was created. order_id is not accepted. Only a payment still waiting to be paid can be cancelled; a paid, expired or already cancelled payment returns an error.