{"_id":"543ee1d615d0560800502749","project":"543005c87d487022005b3fa8","user":"543005a67d487022005b3fa7","parentDoc":null,"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,"editedParams":true,"editedParams2":true,"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"},"__v":1,"updates":["552e99455d4baa0d007836d1"],"next":{"pages":[],"description":""},"createdAt":"2014-10-15T21:06:30.042Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"Success","code":"{\n    \"result\": \"success\",\n    \"phone_number\": 4477881554455,\n    \"customer_id\": 80733\n}","language":"json"},{"language":"json","name":"Failure","code":"{\n    \"result\": \"failure\",\n    \"error\": \"No phone number provided\"\n}"}]},"try":true,"basic_auth":false,"method":"post","auth":"never","params":[{"_id":"543ee1d615d056080050274f","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":"543ee1d615d056080050274e","ref":"","in":"body","required":true,"desc":"This is the mobile number for the customer you are creating an account for. This is also used as the authentication username.","default":"","type":"int","name":"phone_number"},{"_id":"543ee1d615d056080050274d","ref":"","in":"body","required":false,"desc":"Customers first name.","default":"","type":"string","name":"first_name"},{"_id":"543ee1d615d056080050274c","ref":"","in":"body","required":false,"desc":"Customers last name.","default":"","type":"string","name":"last_name"},{"_id":"543ee1d615d056080050274b","ref":"","in":"body","required":false,"desc":"Customers email address for booking confirmations and invoice receipts.","default":"","type":"string","name":"email"},{"_id":"543ee1d615d056080050274a","ref":"","in":"body","required":true,"desc":"This is a 4 to 8 digit number that the customer will use to log-in to their account.","default":"","type":"int","name":"new_pin"}],"url":"/create_customer.json"},"isReference":false,"order":2,"body":"In order to be able to place new bookings, manage existing bookings, and do a variety of tracking activities you need to be using an authenticated customer session. This tool allows you to create a brand new customer account.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"What happens when I create an account?\",\n  \"body\": \"An SMS message is sent to the customers mobile number with a verification code, this is 6 digits long. In order to be able to use the customers account you must run the validate_seccode API.\\n\\nYou can validate a customers login session each time they try to manage their account by using the validate_customer_hash API.\"\n}\n[/block]","excerpt":"This allows you to create a customer account.","slug":"create_customer","type":"endpoint","title":"create_customer"}

postcreate_customer

This allows you to create a customer account.

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 you are creating an account for. This is also used as the authentication username.
first_name:
string
Customers first name.
last_name:
string
Customers last name.
email:
string
Customers email address for booking confirmations and invoice receipts.
new_pin:
required
integer
This is a 4 to 8 digit number that the customer will use to log-in to their account.

Result Format


Documentation

In order to be able to place new bookings, manage existing bookings, and do a variety of tracking activities you need to be using an authenticated customer session. This tool allows you to create a brand new customer account. [block:callout] { "type": "info", "title": "What happens when I create an account?", "body": "An SMS message is sent to the customers mobile number with a verification code, this is 6 digits long. In order to be able to use the customers account you must run the validate_seccode API.\n\nYou can validate a customers login session each time they try to manage their account by using the validate_customer_hash API." } [/block]

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 }}