...
...
...
...
...
...
Rules and Instructions:
JD Power Buyer should use these two endpoints created by PureSpectrum:
(API) Endpoints 1: YELLOW FLOW - Con-Can validate the Respondent with Pure-spectrumPureSpectrum:
This end point endpoint is used to Validate the PSID if it belongs to a supplier that agree agreed to work with a Modular survey - In case the PSID is valid, the end point endpoint returns a new Transaction ID JD Power (modular transaction)
Buyer needs to capture from the Buyer/Live URL these 3 parameters:
Survey ID: Survey identification →
survey_id
Supplier ID: Supplier identification →
supplier_id
Transaction ID: Transaction identification →
transaction_id
(core transaction)NOTE: Make sure the 3 variable variables are enabled in Buyer settings
ENDPOINT SPECIFICATION HERE
Status colour Red title LINK to ADD
SPECS:
(API) Endpoints 2: GREEN BLUE FLOW - When the respondent finalize finalizes the screener or the modular study, use this endpoint to register the respondent as Complete
ENDPOINT SPECIFICATION HERE
Status colour Red title LINK to ADD
Buyer should redirect the Respondent to the PS redirect link
/surveydone
only at the end of the survey in on these 2 occasions:Respondent is not qualified → Buyer terminated (18)
Respondent completed the study → Complete (21)
In both cases JD Power , Buyer has to redirect to and pass the 1st Transaction ID(core transaction) received.
NOTE: In case Buyer use a Transaction ID generated for a modular survey, the system will continue to accept the value and redirect the respondent to correspondent supplier.
Buyer - Survey Creation in Marketplace:
Create a only one single survey and in on the Launch page on Marketplace activate the feature
Modular Launch
In Download the report from the survey dashboard (UI) in order to check the transaction id that belongs to a fetch the transaction IDs created through the ENDPOINT 1 (YELLOW FLOW). Use the column "MODULAR Survey“, you can and filter by this field name:
Status colour Red title FIELDNAME to ADD
the value TRUE
Modular Transaction
isModularTransaction
Schema:
...
Buyer
...
Note:
Operator The operator should activate a configuration flag under Configuration Settings - Modular Survey
Status colour Red title EXAMPLE to ADD
Buyer should activate the supplier ID in ID, survey ID, and transaction ID on the Buyer settings page.
Buyer Settings:
Supplier Configuration:
...
Suppliers to enable:
Suppliers that agreed to work with Modular Survey:
Prime
Supplier 1CPX
Supplier 2
Supplier 3
Info |
---|
Note: David Breihan is working to onboard more supplier. The list is might not up to date. |
API ENDPOINT SPECIFICATION:
All our APIs are protected and they can be used only through an API token linked to your account. Please read this document before using the following endpoints.
...
(API) Endpoints 1: Validate the Transaction and create a new Transaction
Use this API to validate the Respondent and in case of a valid transaction, .
JDPA can Buyer must send us the survey_id, supplier_id, and suppliertransaction_id (core transaction) in the API then we can use an existing API .
($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)
Code Block |
---|
POST {{BASE_URL}}$apihost/$basepath/buyers/v2/surveys/SURVEY_ID/transactions?supplier_id=SUPPLIER_ID&transaction_id=TRANSACTION_ID |
Body (Optional if data is sent via URL):
Code Block | ||
---|---|---|
| ||
{
"supplier_id": 2,
"transaction_id": "40AekOxWhKu8hffwcm7LC7"
} |
Response (Transaction is valid for next study):
Code Block | ||
---|---|---|
| ||
{
"transaction_id": "01vA34sCj8wffKBmelT6xT"
} |
Response (Transaction is NOT valid for next study):
Code Block | ||
---|---|---|
| ||
{
"ps_error_code": 1014,
"ps_error_message": "Invalid 'transaction_id'."
} |
Response (Supplier did NOT agree to Modular Survey):
Code Block | ||
---|---|---|
| ||
{
"ps_error_code": 1014,
"ps_error_message": "The 'transaction_id' doesn’t belong to a supplier that agrees to Modular Survey."
} |
(API) Endpoints 2: Register the Transaction as Complete
Use this API to validate the Respondent and in case of valid transaction, complete a transaction (modular transaction).
Code Block |
---|
POST {{BASE_URL}}$apihost/$basepath/buyers/v2/surveys/SURVEY_ID/transactions/TRANSACTION_ID/status?st=21 |
Body:
Code Block | ||
---|---|---|
| ||
[] |
Response 200 OK:
Code Block | ||
---|---|---|
| ||
[] |
NOTE:
In case the survey uses the CPI override or fixed, the CPI associated with the new transaction is the same as the original transaction.
In case the survey uses the dynamic price or dynamic CPI, the CPI associated with the new transaction is the one calculated within the last block.
Buyer should always use the original transaction (core TX) to request a new transaction for a respondent eligible for modular study.
Buyers should always use the API endpoint 2 to register the TX as Complete or any other status.
Buyer should always redirect the respondent using the
/surveyDone
page and the initial transaction (core transaction)
Not developed:
Assign a different CPI to any new transaction. Buyer might have a different CPI if the respondent complete a modular or long form study.
Supplier is not advised if the respondent completed a modular study. They should provide an Endpoint that allow PureSpectrum to send the details.