Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Required Headers

Key
Value
Example
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLk5+sFzioJw/3M5r9A==
Content-Typeapplication/json
X-Assessment<the assessment>vbm
X-UserId<the user id>The DMTD-supplied identifier that identifies the owner of the purchase (see Getting started and /1/user - POST)
X-UserCode<the user code>A REST-client-supplied identifier that identifies the owner of the purchase (see Getting started and /1/user - POST)

Fields

FieldTypeOptionalDescription
systemDomainStringRequiredThe DMTD-Supported domain of the purchase ('vbmapp', 'efl')
typeStringRequiredThe type of product being purchased in the SystemDomain ('assessment', 'training')

trainingProduct

StringOptionalType type of training product being purchased ('conducting').  Required when type == 'training'

Example

Example

curl -X POST \
  -H 'Authorization: Bearer L2Hth4lRwgHRBWtX8Hkl5w==' \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "X-UserId: 7" \
  -d '{ "systemDomain": "vbmapp", "type": "assessment" }' \
  http://data-sandbox.datamtd.com/1/purchase

Response


  • No labels