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 Version History

Version 1 Next »

This endpoint is not available on staging or production. The documentation is hidden from external users.

An external system may update a transaction in PureSpectrum for a number of reasons such as:

  • Making sure all completes are properly captured

  • Verifying authenticity of a complete

  • Recording a complete on an Augment survey

This API should not be used with the “Register Completes”

Request


POST $apihost/$basepath/surveys/:survey_id/transactions

($apihost is the environment against which you are testing, and $basepath is the base path with the api version. All Buy API calls will require access_token parameter in the header) 

Considerations

  • Required Parameters must be present in the query string. In order to make a successful request, one of two sets of parameters must be present:

    • Scenario 1 - Buyer calls API with parameters for:

      • supplierId

      • supplierRespondentId

      • supplierRespondentSessionId

    • Scenario 2 - Buyer calls API with old transaction ID:

      • oldTransactionId

API Parameters:

Request Parameter

Type

Description 

Example

supplierId

integer

This is the PureSpectrum supplier ID. An incorrect supplier ID, or the supplier ID of a supplier not currently allocated to the survey should result in an http 400 error.

37

supplierRespondentId

string

This is the persistent member ID of the respondent

abc123

supplierSessionId

string

This is the unique session identified provided by the supplier

1513326965960

Sample Request: 

POST api.spectrumsurveys.com/buyers/v2/surveys/:surveyId/transactions?supplier_id=2&member_id=3&session_id=4


Response



Response Code

201

Response Body

Response Code

400

Response Body

{ 
	"ps_error_code": 1001,
	"ps_error_message":"Invalid supplier ID"
},

{ 
	"ps_error_code": 1002,
	"ps_error_message":"Insufficient parameters - please check your request"
}

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.