curl --location 'https://headless.treez.io/v2.0/dispensary/partnersandbox2/ecommerce/login' \
--header 'client_id: 1234EXAMPLECLIENTID567890' \
--header 'client_secret: 1234EXAMPLECLIENTSECRET567890' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"password": "8vas0$oI"
}'
{
"resultCode": "SUCCESS",
"resultReason": null,
"id": 33764,
"firstName": "LEEROY",
"lastName": "JENKINS",
"rewardPoints": "0",
"redemeedPoints": null,
"rewardTier": "SILVER",
"addresses": [
{
"id": 205852,
"street": "852 Bryant St",
"city": "San Francisco",
"state": "CA",
"county": "San Francisco",
"country": "USA",
"type": null,
"zip": "94103",
"placeId": "ChIJcWua9Sp-j4ARMxUXbiXhGII",
"comment": "enter through side gate",
"longitude": null,
"latitude": null,
"apt": "25",
"primary": false
}
],
"pickupAddresses": [
{
"id": 1,
"street": "1611 Telegraph Ave",
"city": "Oakland",
"state": "CA",
"county": null,
"country": "USA",
"type": null,
"zip": "94612",
"placeId": "EioxNjExIFRlbGVncmFwaCBBdmUsIE9ha2xhbmQsIENBIDk0NjEyLCBVU0EiMRIvChQKEglPr9kvsoCPgBF3GEaMx_u4WRDLDCoUChIJ266QOuB9hYARJ5_YXxqZ430",
"comment": "EioxNjExIFRlbGVncmFwaCBBdmUsIE9ha2xhbmQsIENBIDk0NjEyLCBVU0EiMRIvChQKEglPr9kvsoCPgBF3GEaMx_u4WRDLDCoUChIJ266QOuB9hYARJ5_YXxqZ430",
"name": "NY Dispensary",
"longitude": "-122.2706687",
"latitude": "37.8063842",
"apt": null,
"primary": false
}
],
"deliveryDetail": {
"type": "PICKUP",
"addressId": 1
},
"tokens": {
"resultCode": null,
"resultReason": null,
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzY290dC50aGFjaGVyK2Vjb21tMTVAdHJlZXouaW8iLCJjcmVhdGVkIjoxNjkwMjEwODkwMDkyLCJrdXAiOjMzNzY0LCJleHAiOjE2OTAyMTE0OTAsInN1cCI6MTEwMH0.ag5hUsuqYLmWkI7umupnum2B5BeuKnNJ6kAkDKTVB656Eq2-lY2QTq7bxONpLDUnBPShjZN2L5qK9U0lfj4d3Q",
"tokenExpiredIn": "2023-07-24T15:11:30.000Z",
"refreshToken": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzY290dC50aGFjaGVyK2Vjb21tMTVAdHJlZXouaW8iLCJjcmVhdGVkIjoxNjg5NjE3OTY4Mzc2LCJrdXAiOjMzNzY0LCJleHAiOjE2OTA2MTc5NjgsInN1cCI6MTEwMH0.lNsd8tZNMbcETZzKura1DWyXh0ASjVqG5MVVicJDFkUFnpyPxosH877DBbzSvHGwP5mP6tKF035H7XjIIGGDkA",
"refreshTokenExpiredIn": "2023-07-29T08:06:08.000Z"
},
"adult": true,
"customerType": "ADULT",
"rec": false,
"dl": true,
"misc": false
}