taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

get-contracts-CONTRACT_PUB.rst (738B)


      1 .. http:get:: /contracts/$CONTRACT_PUB
      2 
      3   Obtain P2P contract associated with the given contract public key.
      4 
      5   **Response:**
      6 
      7   :http:statuscode:`200 Ok`:
      8     The contract is being returned using a `ExchangeContractResponse`.
      9   :http:statuscode:`404 Not found`:
     10     The contract is unknown.
     11     This response comes with a standard `ErrorDetail` response.
     12 
     13   **Details:**
     14 
     15    .. ts:def:: ExchangeContractResponse
     16 
     17     interface ExchangeContractResponse {
     18 
     19       // Public key of the purse into which payments must be
     20       // made for this contract.
     21       purse_pub: PursePublicKey;
     22 
     23       // Signature over the contract
     24       econtract_sig: PurseContractSignature;
     25 
     26       // Encrypted contract.
     27       econtract: EncryptedContract;
     28     }