# DressX API (Mermaid) ## API with Calculator ```mermaid sequenceDiagram participant DX as DressX participant BE as BloXmove Backend participant CA as Calculator participant SC as NRService DX ->> BE: sends POST-request Note right of DX: typeOfCalculator, url, txHash, recipient BE ->> CA: executes entry point function CA ->> BE: return: payload BE ->> BE: sign payload BE ->> SC: issueNFTcket(payload) Note right of BE: Region, energyType, amount SC ->> BE: sucess BE ->> DX: return: tx hash of NFTicket minted ``` ## API without Calculator ```mermaid sequenceDiagram participant DX as DressX participant BE as BloXmove Backend participant SC as NRService DX ->> BE: sends POST-request Note right of DX: typeOfCalculator, url, amount, region, energyType, recipient BE ->> BE: sign payload BE ->> SC: calls issueNFTicket SC ->> BE: return: tx hash of NFTicket minted BE ->> DX: return: tx hash of NFTicket minted ```