Skip to content

Instantly share code, notes, and snippets.

@stepun
Last active November 21, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stepun/55e81ab99e71519e41af64408faada3c to your computer and use it in GitHub Desktop.
Save stepun/55e81ab99e71519e41af64408faada3c to your computer and use it in GitHub Desktop.

API Params

Параметры номенклатуры

DELETE param

Перед удалением проверяется параметр на наличие его в номенклатуре и остатках.

Resource URL

https://storencash.com/api/v1_param.json

Resource Information

  • Response formats JSON
  • Requires authentication? Yes

Parameters

Name Require Type Description
id yes bigint(10) default = null. Идентификатор удаляемого параметра.

Example Request

DELETE /api/v1_param.json/1 HTTP/1.1
Host: storencash.com
token: e1ec049b388fbc7f2f9dca44dcbfde06
Cache-Control: no-cache

Example Result

{
    "status": "success",
        "data": {
           "message": "ID:1 deleted"
        }
}

Error codes

Code Description
'19001' Параметр не найден
'19002' Параметр присутсвует в номенклатуре
'19003' Параметр присутсвует в остатках
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment