ONGAESHI Litepaper
  • Overview
  • Vision & Mission
  • Ecosystem
  • Key Stakeholders
  • Key Tools
  • System Overview
    • System Diagram
      • Smart Contract Diagram
      • Infrastructure Diagram
    • Smart Contract
      • Course Token (ERC 721)
      • Course Token Factory
      • Course Token Event
      • Talent Match
      • Deployed Smart Contract
      • Setting Up Environment
    • Public API
      • NFT API
        • View NFT Collection
        • View NFT Metadata
      • Talent
        • Request to Borrow NFT
      • Sponsor
        • Accept Talent Request
        • Reject Talent Request
      • Loan Details
  • Other
    • Audit
    • How To Contribute
Powered by GitBook
On this page
  1. System Overview
  2. Public API
  3. Sponsor

Accept Talent Request

API that sponsor will use to approve the lending request by the talent

PreviousSponsorNextReject Talent Request

Last updated 11 months ago

API Input: OnLoanID

API Return: On Loan Status Detail

API for sponsors to approve the NFT lend request made by the talent. This will update the NFT status in the blockchain.

{
  "id": "cgn42mbnuqpepeblrq50",
  "tokenId": 1,
  "repairCost": 1,
  "nftCollectionAddress": "0xDe3E800D5Eba73c529707EB565d89fbD55Bc77D7",
  "status": "New",
  "talentId": "8ddeac1f-b0f0-4100-8089-358f29b6c388",
  "coachId": "f8c69e48-3dfc-4ab5-b0fb-70216cdeb698",
  "sponsorId": "eaa04823-4978-4934-8dca-8c836d06b10c"
}
https://api-ongaeshi.xwin.com.my/docs/nft-mgmt#/nft-rental/generalAssignOnLoanapi-ongaeshi.xwin.com.my