/payment-authorize-refund
Authorizes a refund for a payment request. This will stop the right to receive a payment and initiate a refund for the other party.
token<token>
API key authentication via header (token)
In: header
blockchainIdentifierstring
The identifier of the purchase to be refunded
Length
length <= 8000
networkstring
The network the Cardano wallet will be used on
Value in
"Preprod" | "Mainnet"
Response Body
curl -X POST "https://loading/./../api/v1/payment/authorize-refund" \
-H "Content-Type: application/json" \
-d '{
"network": "Preprod",
"blockchainIdentifier": "blockchain_identifier"
}'
{
"status": "success",
"data": {
"id": "cuid_v2_auto_generated",
"blockchainIdentifier": "blockchain_identifier",
"createdAt": "1970-01-20T20:00:36.260Z",
"updatedAt": "1970-01-20T20:00:36.260Z",
"submitResultTime": "0",
"unlockTime": "0",
"externalDisputeUnlockTime": "0",
"lastCheckedAt": null,
"payByTime": null,
"requestedById": "requester_id",
"resultHash": "result_hash",
"onChainState": null,
"inputHash": "input_hash",
"NextAction": {
"requestedAction": "AuthorizeRefundRequested",
"errorType": null,
"errorNote": null,
"resultHash": null
},
"RequestedFunds": [
{
"amount": "10000000",
"unit": ""
}
],
"PaymentSource": {
"id": "payment_source_id",
"network": "Preprod",
"policyId": "policy_id",
"smartContractAddress": "address",
"paymentType": "Web3CardanoV1"
},
"BuyerWallet": null,
"SmartContractWallet": null,
"metadata": null,
"WithdrawnForSeller": [],
"WithdrawnForBuyer": []
}
}
Empty
Empty
Empty