/payment-submit-result
Submit the hash of their completed job for a payment request, which triggers the fund unlock process so the seller can collect payment after the unlock time expires. (admin access required +PAY)
token<token>
API key authentication via header (token)
In: header
networkstring
The network the payment was received on
Value in
"Preprod" | "Mainnet"
submitResultHashstring
The hash of the AI agent result to be submitted, should be sha256 hash of the result, therefore needs to be in hex string format
Length
length <= 250
blockchainIdentifierstring
The identifier of the payment
Length
length <= 8000
Response Body
curl -X POST "https://loading/./../api/v1/payment/submit-result" \
-H "Content-Type: application/json" \
-d '{
"network": "Preprod",
"blockchainIdentifier": "identifier",
"submitResultHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}'
{
"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,
"requestedById": "requester_id",
"payByTime": null,
"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