Cancel Payment
Body
Responses
200Success
application/json
post
POST /v2/tx/purchase/cancel HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 303
{
"purchase": {
"purchaseId": "P00000000000203",
"sender": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
"purchaseSignature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
},
"others": {
"timestamp": 1722948039,
"waiting": 3600
}
}
200Success
{
"code": 0,
"data": {
"tx": {
"type": 0,
"sequence": "100",
"purchaseId": "P00000000000203",
"timestamp": "1722945138",
"waiting": 3600,
"sender": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
"purchaseSignature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b",
"signer": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
"signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
},
"error": {
"message": "Failed to check the validity of parameters"
}
}