Today, I worked on a project for my friend Chris Cain. I used to work for him at Extensitech. He has a client named Contractors Reporting Services. I am working on providing them with HTTP requests to get a credit report from Experian.
I was able to get connected to the Experian Sandbox environment for the Credit Profile API. It took a little bit of determination but it was rewarding when I got it working. It looks like this:
curl -X POST \ https://sandbox-us-api.experian.com/oauth2/v1/token \ -H 'client_id: string' \
-H 'client_secret: string' \
-H 'content-type: application/json' \
-d '{"username":"string","password":"string"}'
From there, I believe I got a working credit report request working. I just need the subscriber code from the client. This is how that is looking so far:
curl -X POST\
https://sandbox-us-api.experian.com/consumerservices/credit-profile/v2/credit-report -h 'authorization: Bearer token'\
-h 'clientReferenceId: SBMYSQL'\
-h 'content-type: application/json'\
-h 'accept: application/json'\
-d '{
{
"consumerPii": {
"primaryApplicant": {
"name": {
"lastName": "CANN",
"firstName": "JOHN",
"middleName": "N"
},
"dob": {
"dob": "1955"
},
"ssn": {
"ssn": "111111111"
},
"currentAddress": {
"line1": "510 MONDRE ST",
"city": "MICHIGAN CITY",
"state": "IN",
"zipCode": "46360"
}
}
},
"requestor": {
"subscriberCode": "2222222"
}
}
}'