taler-docs

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

delete-private-products-PRODUCT_ID.rst (940B)


      1 .. http:delete:: [/instances/$INSTANCE]/private/products/$PRODUCT_ID
      2 
      3   Delete information about a product.  Fails if the product is locked by
      4   anyone.
      5 
      6   **Required permission:** ``products-write``
      7 
      8   **Response:**
      9 
     10   :http:statuscode:`204 No content`:
     11     The backend has successfully deleted the product.
     12   :http:statuscode:`401 Unauthorized`:
     13     The request is unauthorized.
     14     Returned with ``TALER_EC_MERCHANT_GENERIC_UNAUTHORIZED``.
     15   :http:statuscode:`404 Not found`:
     16     The backend does not know the instance or the product.
     17     Returned with ``TALER_EC_MERCHANT_GENERIC_PRODUCT_UNKNOWN``.
     18   :http:statuscode:`409 Conflict`:
     19     The backend refuses to delete the product because it is locked.
     20     Returned with ``TALER_EC_MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK``.
     21   :http:statuscode:`500 Internal Server Error`:
     22     The server experienced an internal failure.
     23     Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``.