get-private-pots-POT_ID.rst (1127B)
1 .. http:get:: [/instances/$INSTANCE]/private/pots/$POT_ID 2 3 This is used to obtain detailed information about specific pot. 4 5 **Required permission:** ``pots-read`` 6 7 **Response:** 8 9 :http:statuscode:`200 OK`: 10 The backend has successfully returned the detailed information about a specific pot. Returns a `PotDetailResponse`. 11 :http:statuscode:`400 Bad Request`: 12 The pot ID parameter is malformed. 13 Returned with ``TALER_EC_GENERIC_PARAMETER_MALFORMED``. 14 :http:statuscode:`404 Not found`: 15 The pot or instance is unknown to the backend. 16 Returned with ``TALER_EC_MERCHANT_GENERIC_MONEY_POT_UNKNOWN``. 17 :http:statuscode:`500 Internal Server Error`: 18 The server experienced an internal failure. 19 Returned with ``TALER_EC_GENERIC_DB_FETCH_FAILED``. 20 21 **Details:** 22 23 .. ts:def:: PotDetailResponse 24 25 interface PotDetailResponse { 26 27 // Description of the pot. Possibly included 28 // in the pot message. 29 description: string; 30 31 // Name of the pot. Must be unique per instance. 32 pot_name: string; 33 34 // Current total amount in the pot. 35 pot_totals: Amount[]; 36 37 }