{"_id":"5a96ec9489442e002041117d","category":{"_id":"5a96ec9189442e0020411152","version":"5a96ec9189442e002041114d","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-12T15:22:00.041Z","from_sync":false,"order":4,"slug":"coupon","title":"Catalog"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"5a96ec9189442e002041114d","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2018-02-28T17:53:21.809Z","releaseDate":"2018-02-28T17:53:21.809Z","categories":["5a96ec9189442e002041114e","5a96ec9189442e002041114f","5a96ec9189442e0020411150","5a96ec9189442e0020411151","5a96ec9189442e0020411152","5a96ec9189442e0020411153","5a96ec9189442e0020411154","5a96ec9189442e0020411155","5a96ec9189442e0020411156","5a96ec9189442e0020411157","5a96ec9189442e0020411158"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.24.2 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-12T15:20:51.305Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"put","results":{"codes":[{"language":"text","code":""}]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":22,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/catalog/custom-parameters/:custom-parameter-id</span>\n\n<hr>\n\n##Documentation\nThe Update Custom Parameter enables you to modify existing custom parameters in your BlueSnap account.\n\n###Request Content\n`custom-parameter` &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, contains the following properties (see [custom-parameter](doc:custom-parameter)):\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`custom-param-title` *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`active` *boolean* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`mandatory` *boolean* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`custom-param-settings` *container* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, contains the following properties (see [custom-param-settings](doc:custom-param-settings)):\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`custom-param-type` *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`short-text-type` *container* &nbsp;&nbsp;&nbsp;optional (see [short-text-type](doc:short-text-type))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`visual-settings` *container* &nbsp;&nbsp;&nbsp;optional (see [visual-settings](doc:visual-settings))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`fixed-selection-type`  *container* &nbsp;&nbsp;&nbsp;optional (see [fixed-selection-type](doc:fixed-selection-type))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`merchant-value-type`  *container* &nbsp;&nbsp;&nbsp;optional (see [merchant-value-type](doc:merchant-value-type))\n\n###Response Details\nIf successful, the response HTTP status code is 204 No Content.\nThere is no content in the response body.\nFor details about possible errors, see: [General Errors](doc:general-errors) and [Catalog Errors](doc:catalog-errors).\n\n<hr>\n\n##Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/custom-parameters/16561 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<custom-parameter xmlns=\\\"http://ws.plimus.com\\\">\\n  <custom-param-title>Where did you hear about us?</custom-param-title>\\n  <active>true</active>\\n  <mandatory>true</mandatory>\\n  <custom-param-settings>\\n    <custom-param-type>SHORT-TEXT</custom-param-type>\\n    <short-text-type>\\n      <maximum-length>2000</maximum-length>\\n      <minimum-length>7</minimum-length>\\n      <regex-validation>[a-zA-Z]</regex-validation>\\n    </short-text-type>\\n    <visual-settings>\\n      <title-alignment>LEFT</title-alignment>\\n    </visual-settings>\\n  </custom-param-settings>\\n</custom-parameter>'\",\n      \"language\": \"curl\",\n      \"name\": \"Update Custom Parameter Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 204 No Content\",\n      \"language\": \"xml\",\n      \"name\": \"Update Custom Parameter Response\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"update-custom-parameter","type":"put","title":"Update Custom Parameter"}

putUpdate Custom Parameter


Definition

https://sandbox.bluesnap.com/services/2/catalog/custom-parameters/:custom-parameter-id


Documentation

The Update Custom Parameter enables you to modify existing custom parameters in your BlueSnap account.

Request Content

custom-parameter    required, contains the following properties (see custom-parameter):
      custom-param-title string    required
      active boolean    optional
      mandatory boolean    optional
      custom-param-settings container    required, contains the following properties (see custom-param-settings):
          custom-param-type string    required
          short-text-type container    optional (see short-text-type)
          visual-settings container    optional (see visual-settings)
          fixed-selection-type container    optional (see fixed-selection-type)
          merchant-value-type container    optional (see merchant-value-type)

Response Details

If successful, the response HTTP status code is 204 No Content.
There is no content in the response body.
For details about possible errors, see: General Errors and Catalog Errors.


Examples

Request Example

curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/custom-parameters/16561 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<custom-parameter xmlns="http://ws.plimus.com">
  <custom-param-title>Where did you hear about us?</custom-param-title>
  <active>true</active>
  <mandatory>true</mandatory>
  <custom-param-settings>
    <custom-param-type>SHORT-TEXT</custom-param-type>
    <short-text-type>
      <maximum-length>2000</maximum-length>
      <minimum-length>7</minimum-length>
      <regex-validation>[a-zA-Z]</regex-validation>
    </short-text-type>
    <visual-settings>
      <title-alignment>LEFT</title-alignment>
    </visual-settings>
  </custom-param-settings>
</custom-parameter>'

Response Example

HTTP/ 1.1 204 No Content