Reconciliation via API (Accept)
PRODUCTION API ENDPOINTS Recap:
Single survey:
POST: https://api.spectrumsurveys.com/buyers/v2/adjustments/surveys/{surveyId}
Multiple Survey:
POST: https://api.spectrumsurveys.com/buyers/v2/adjustments
($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)
STAGING API, Payload and Info:
1 - Reconciliation Single Survey:
Buyer API Endpoint:
POST : https://staging.spectrumsurveys.com/buyers/v2/adjustments/surveys/{surveyId}
API: POST
Access-token: Buyer account
Request Payload:
[
{
"transaction_id": "7lNK5AGrSL3bk5tV4gw0Tr"
},
{
"transaction_id": "7dTdSUUWkR9DBs7rUi5jdT"
},
{
"transaction_id": "5EmEbeX9mEblEpwP6yHG1K"
},
{
"transaction_id": "6HkYQWFMcIcDOTxfnIi6op"
}
]
Response:
Response Code:
CODE: 202 ACCEPTED
Response Code (deprecated):
CODE: 200 OK
Response Body:
2 - Reconciliation multiple surveys (Bulk Reconciliation)
Buyer API Endpoint:
Request Payload:
Response:
Response Code:
CODE: 202 ACCEPTED
Response Code (deprecated):
Response Body:
NOTE 1:
The system always records any Reconciliation process made via API or UI and this information can be find on the Survey dashboard → Reconciliation Tab
These are the label show:
Reject : Reconciliation via UI - TX changes to
buyer_rejects
Reject (API): Reconciliation via API - TX changes to
buyer_rejects
Complete: Reconciliation via UI - TX changes to
complete
Complete (API): Reconciliation via UI - TX changes to
buyer_rejects
Accept: Reconciliation via UI - Any TX in the file will changes to
complete
if they are eligible, and the TX current completes not in the file, will changebuyer_rejects
Accept (API): Reconciliation via API - Any TX in the file will changes to
complete
if they are eligible, and the TX current completes not in the file, will changebuyer_rejects
NOTE 2:
if you need to test the Reconciliation API and you want to create some test transactions, please ask your account manager or contact the PureSpectrum product team and they will give you access to a document that will allow you to create a transaction via API.
NOTE 3:
10 pm PT is the absolute latest you can submit a reconciliation for it to be included in the next month’s invoice.