SHARE
TWEET

Untitled

a guest Feb 27th, 2020 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. curl --location --request POST 'https://app.ecocarsharing.com/entity/api/xm-entities' \
  2. --header 'Content-Type: application/json' \
  3. --header 'Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVUb2tlblRpbWUiOjE1ODI4MDYxNzQ3MTEsInVzZXJfbmFtZSI6ImF6YXJlbmtvMTk5MkBnbWFpbC5jb20iLCJzY29wZSI6WyJvcGVuaWQiXSwicm9sZV9rZXkiOiJST0xFX1VTRVIiLCJ1c2VyX2tleSI6Ijg2NzY4YTQ0LTVlOWYtNDdmNi1hZjYyLTYwYTRlNDBhYzJiZCIsImV4cCI6MTU4Mjg0OTM3NCwiYWRkaXRpb25hbERldGFpbHMiOnsiYWVSZWZyZXNoVG9rZW4iOiJleUpoYkdjaU9pSklVekkxTmlJc0luUjVjQ0k2SWtwWFZDSjkuZXlKMWMyVnlYMmxrSWpveU5qRTNPU3dpZEc5clpXNWZkSGx3WlNJNkluSmxabkpsYzJnaUxDSnBZWFFpT2pFMU9ESTRNRFl4TnpRc0ltVjRjQ0k2TVRVNE5EQXhOVGMzTkgwLnYxOXF2NjBsbEdRRTcwaXp4SnhwdzhfamhTUkRHWHZiY0JIT0VqRTNHdzgiLCJhZUFjY2Vzc1Rva2VuIjoiZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SjFjMlZ5WDJsa0lqb3lOakUzT1N3aWRHOXJaVzVmZEhsd1pTSTZJbUZqWTJWemN5SXNJbWxoZENJNk1UVTRNamd3TmpFM05Dd2laWGh3SWpveE5UZ3lPRGt5TlRjMGZRLlN1dE9wNmRSVHphcHpHYkNoUlhpb2pQOEdUcWJ6UnFKUkVZRzcxWHFRbncifSwibG9naW5zIjpbeyJ0eXBlS2V5IjoiTE9HSU4uRU1BSUwiLCJzdGF0ZUtleSI6bnVsbCwibG9naW4iOiJhemFyZW5rbzE5OTJAZ21haWwuY29tIn0seyJ0eXBlS2V5IjoiTE9HSU4uUEhPTkUiLCJzdGF0ZUtleSI6bnVsbCwibG9naW4iOiIzODA2Njg4MDY5OTMifV0sImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJqdGkiOiJhMWVlOTY0ZC05OTg4LTQxOWUtYWE3YS1mNDJkNDc0ZjRkMmUiLCJ0ZW5hbnQiOiJBRSIsImNsaWVudF9pZCI6IndlYl9hcHAifQ.hh8Cww5dfv5b7Y2aGvJ6A1dlGMEqYLv8LHbIKCeHGAExYlEjZ_WqAiIgvIWvNCqw0mNA88FRnITM_HunOkJYaeqH3tX6THXaaMQqZl9eXVmdQEU2z5Fbno1felZPszM6SNDBhRFEga8KuwyGNjQeVHwqUQyVvxYNFGml9ERL4NSqPx_ep-_2WwcEkt-tFvOdxuB3T3ropdEvlBeYJLfLgMMHgMA7rXlMwIlfuJVIgIaAIe8yHJG62RNd8C0yTCsl3PbU_YCB3YmUCDcsrq1BRoGUaq401j68WKND6YcE8dxqZ7kr7C6ZZUYHH0SJpfFKY1VmRueEL1-q7FNlvkn8fA' \
  4. --data-raw '{
  5.   "typeKey": "ORDER.SERVICE",
  6.   "targets": [
  7.       {
  8.           "typeKey": "LINK.ORDER.OFFERING",
  9.           "target": {
  10.             "typeKey": "OFFERING.SERVICE.CAR-SHARING.DEFAULT-CARSHARE",
  11.             "key":     "OFFERING.SERVICE.CAR-SHARING.DEFAULT-CARSHARE-123"
  12.           }
  13.       },
  14.       {
  15.           "typeKey": "LINK.ORDER.PRODUCT",
  16.           "target": {
  17.               "typeKey": "PRODUCT.SERVICE.CAR-SHARING.DEFAULT-CARSHARE",
  18.               "data": {
  19.                   "birthday": "631200904528",
  20.                   "city":     "kharkov",
  21.                   "address":  "rudika"
  22.               }
  23.           }
  24.       },
  25.       {
  26.           "typeKey": "LINK.ORDER.CHANNEL",
  27.           "target": {
  28.               "typeKey": "CHANNEL",
  29.               "key":     "CHANNEL-118"
  30.           }
  31.       }
  32.   ]
  33. }'
  34.  
  35.  
  36.  
  37.  
  38. REPONSE:
  39. {
  40.     "error": "error.validation",
  41.     "error_description": "Input parameters error",
  42.     "requestId": "6MfJWqTA:azarenko1992@gmail.com:AE",
  43.     "fieldErrors": [
  44.         {
  45.             "objectName": "xmEntity",
  46.             "field": "key",
  47.             "message": "NotNull",
  48.             "description": "must not be null"
  49.         },
  50.         {
  51.             "objectName": "xmEntity",
  52.             "field": "name",
  53.             "message": "NotNull",
  54.             "description": "must not be null"
  55.         }
  56.     ]
  57. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top