payment
Authorizes a refund for a payment request. This will stop the right to receive a payment and initiate a refund for the other party. (+PAY access required; only the creator or an admin may authorize)
Changed onAuthorizes a refund for a payment request. This will stop the right to receive a payment and initiate a refund for the other party. (+PAY access required; only the creator or an admin may authorize)
post/payment/authorize-refund
Request
- Base URL: ./../api/v1/ (relative, and the document was published on a file host, not at the API’s origin)
- URL: ./../api/v1/payment/authorize-refund
- Auth: API key in header token
Request body
Example request
{
"network": "Preprod",
"blockchainIdentifier": "blockchain_identifier"
}Response
Payment refund authorized
Example response
{
"status": "Success",
"data": {
"id": "cuid_v2_auto_generated",
"blockchainIdentifier": "blockchain_identifier",
"agentIdentifier": "agent_identifier",
"agentName": "Example Agent",
"pricingType": "Fixed",
"createdAt": "1970-01-20T20:00:36.260Z",
"updatedAt": "1970-01-20T20:00:36.260Z",
"submitResultTime": "0",
"unlockTime": "0",
"externalDisputeUnlockTime": "0",
"lastCheckedAt": null,
"cooldownTime": 0,
"payByTime": null,
"cooldownTimeOtherParty": 0,
"collateralReturnLovelace": null,
"buyerReturnAddress": null,
"sellerReturnAddress": null,
"requestedById": "requester_id",
"resultHash": "result_hash",
"onChainState": null,
"forceLayer": null,
"inputHash": "input_hash",
"NextAction": {
"requestedAction": "AuthorizeRefundRequested",
"errorType": null,
"errorNote": null,
"resultHash": null
},
"CurrentTransaction": null,
"RequestedFunds": [
{
"unit": "",
"amount": "10000000"
}
],
"PaymentSource": {
"id": "payment_source_id",
"network": "Preprod",
"paymentSourceType": "Web3CardanoV1",
"smartContractAddress": "address",
"policyId": "policy_id"
},
"WithdrawnForSeller": [],
"WithdrawnForBuyer": [],
"BuyerWallet": null,
"SmartContractWallet": null,
"metadata": null,
"totalBuyerCardanoFees": 0,
"totalSellerCardanoFees": 0,
"nextActionOrOnChainStateOrResultLastChangedAt": "1970-01-20T20:00:36.260Z",
"nextActionLastChangedAt": "1970-01-20T20:00:36.260Z",
"onChainStateOrResultLastChangedAt": "1970-01-20T20:00:36.260Z"
}
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the required property
/to the response with the status
- info
- breaking
removed the required property
/from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- breaking