{"_id":"543ee5c015d0560800502758","category":{"_id":"543ee0c055bb1008000955b6","__v":21,"pages":["543ee1d615d0560800502749","543ee5c015d0560800502758","543ee87715d0560800502763","543ee9e315d056080050276c","543f003c55bb100800095624","543f030555bb10080009563f","543f0b3e15d05608005027ee","543f0d0755bb10080009566d","543f0e8415d056080050281b","543f0f8f55bb10080009567e","543f109055bb100800095689","543f11d315d056080050282b","543f15c615d0560800502845","544aec7fa761f90800c41d32","545a7fae1d018b1400227eff","545e9dc97e32310e00f400ca","5603c5dde416560d00fa63ad","564ed2eb9209cf0d001d6917","56cb2acb245b841300806ea4","56e05f414685db1700d9480b","56e063e4f97d422900d639bf"],"project":"543005c87d487022005b3fa8","version":"543005c87d487022005b3fab","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-15T21:01:52.185Z","from_sync":false,"order":1,"slug":"iwebcab-api-tools","title":"Gazoop Internal API"},"is_link":false,"__v":5,"editedParams2":true,"user":"543005a67d487022005b3fa7","version":{"_id":"543005c87d487022005b3fab","__v":6,"project":"543005c87d487022005b3fa8","createdAt":"2014-10-04T14:35:52.362Z","releaseDate":"2014-10-04T14:35:52.362Z","categories":["543005c87d487022005b3fac","54345156edce04080040964e","543ee0c055bb1008000955b6","54c82a78ab706219009e0656","57390d0e1f4b740e00b06cb2","5741d5ab28f5fb0e0063ed36"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"543005c87d487022005b3fa8","parentDoc":null,"editedParams":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-15T21:23:12.208Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"Success","code":"{\n    \"result\": \"valid\",\n    \"customer_id\": \"80733\",\n  \t\"first_name\": \"James\",\n \t\t\"last_name\": \"Morris\",\n \t\t\"email\": \"support:::at:::iwebcab.com\",\n    \"phone_number\": \"447778844545\",\n  \t\"payment_method_account\": true,\n    \"payment_method_creditcard\": false,\n  \t\"url_customer_picture\": \"https://url-to-photo.com/img.pmg\"\n}","language":"json"},{"name":"Requires Security Code","code":"{\n    \"result\": \"valid-cin\",\n    \"customer_id\": \"80733\",\n    \"phone_number\": \"447778844545\",\n  \t\"url_customer_picture\": \"https://url-to-photo.com/img.pmg\"\n}","language":"json"},{"name":"Failure","language":"json","code":"{\n    \"result\": \"invalid\"\n}"}]},"settings":"","try":true,"method":"post","basic_auth":false,"examples":{"codes":[]},"auth":"never","params":[{"_id":"543ee5c015d056080050275b","ref":"","in":"body","required":true,"desc":"This is a 25 alphanumeric hash code provided to you by the fleet.","default":"","type":"string","name":"api_key"},{"_id":"543ee5c015d056080050275a","ref":"","in":"body","required":true,"desc":"This is the mobile number for the customer account.","default":"","type":"int","name":"phone_number"},{"_id":"543ee5c015d0560800502759","ref":"","in":"body","required":true,"desc":"You can also send the customers PIN number for verification, if this fails, the API command will fail.","default":"","type":"int","name":"customer_pin"}],"url":"/validate_customer_pin.json"},"isReference":false,"order":3,"body":"Please be aware of the three different responses you might get above. If the result of valid-cin is given, you must request the verification code from the customer and use the [validate_sec_code](http://iwebcab.readme.io/v1.0/docs/validate_seccode) API to activate the customers account. \n\nWithout a customers account being verified bookings can not be placed.","excerpt":"This tool allows you to verify a login attempt by a customer by phone number and PIN to get the Customer ID.","slug":"validate_customer_hash","type":"endpoint","title":"validate_customer_pin"}

postvalidate_customer_pin

This tool allows you to verify a login attempt by a customer by phone number and PIN to get the Customer ID.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

api_key:
required
string
This is a 25 alphanumeric hash code provided to you by the fleet.
phone_number:
required
integer
This is the mobile number for the customer account.
customer_pin:
required
integer
You can also send the customers PIN number for verification, if this fails, the API command will fail.

Result Format


Documentation

Please be aware of the three different responses you might get above. If the result of valid-cin is given, you must request the verification code from the customer and use the [validate_sec_code](http://iwebcab.readme.io/v1.0/docs/validate_seccode) API to activate the customers account. Without a customers account being verified bookings can not be placed.

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}