{"_id":"592351a888e3d00f00e60a9a","user":"56e371538b32a10e00f79750","category":{"_id":"56e3719b591f620e00bf5099","pages":["56e3719c591f620e00bf509b","56e74226555c030e00a52a90","56e7447c7d693632001d5cb4","56e752bd56d59a0e00d5660e","56e755b98aa2c00e00494cd9","56e7584d911296190096dd80","56e759339b25270e001d11a0","56e7593e1b41040e009d10cf","56e7594e911296190096dd88","56e7595e8aa2c00e00494ce3","56e75d7f5669091700c5b2b4","56e77e22911296190096de13","56e77f259b25270e001d1232","56e7b2c737afb90e00e0eb9d","56ec4daf611730190000f23f","56ec4fde26db830e00afa083","56ec8f7204e8940e00966567","56f184cc9791b22d0077b9d9","56f18a2c3af4942b00bb3c47"],"project":"56e3719a591f620e00bf5095","__v":19,"version":"56e3719a591f620e00bf5098","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-12T01:32:11.359Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"parentDoc":null,"__v":2,"version":{"_id":"56e3719a591f620e00bf5098","hasReference":true,"hasDoc":true,"__v":6,"project":"56e3719a591f620e00bf5095","createdAt":"2016-03-12T01:32:10.751Z","releaseDate":"2016-03-12T01:32:10.751Z","categories":["56e3719b591f620e00bf5099","56e7b24ad365390e007baeab","59c952f57f6bea002e57da0a","59c954f07f6bea002e57da14","59cb3f6b487a0e00261deb5c","59cd714c360c8600242c4984"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"project":"56e3719a591f620e00bf5095","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-22T21:01:28.270Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"uid\": \"4f6a3a32-6d57-450d-8b46-44abb3b01994\",\n  \"type\": \"CLEANER\",\n  \"firstName\": \"Cedric\",\n  \"lastName\": \"Raudin\",\n  \"companyName\": \"Responseev\",\n  \"email\": \"cedric.r:::at:::gmail.com\",\n  \"address\": \"Haight Street\",\n  \"city\": \"San Francisco\",\n  \"zipCode\": \"H1B TP2\",\n  \"state\": \"CA\",\n  \"countryCode\": \"US\",\n  \"cost\": \"10\",\n  \"currency\": \"USD\",\n  \"phoneNumber\": \"+4098764587\",\n}","name":""},{"status":400,"language":"text","code":"Orbirental API - Bad request.","name":""},{"status":409,"language":"text","code":"Orbirental API - Agency not found."}]},"settings":"","examples":{"codes":[]},"method":"post","auth":"required","params":[{"_id":"56e788a19b25270e001d1269","ref":"","in":"body","required":true,"desc":"The unique id of the parent agency","default":"","type":"string","name":"agencyUid"},{"_id":"56e788a19b25270e001d1260","ref":"","in":"body","required":true,"desc":"first name of the service provider","default":"","type":"string","name":"firstName"},{"_id":"56e788a19b25270e001d1265","ref":"","in":"body","required":true,"desc":"Last name of the service provider","default":"","type":"string","name":"lastName"},{"_id":"56e792971e071c22001a0488","ref":"","in":"body","required":true,"desc":"Can be CLEANER, GREETER, HANDYMAN, LANDSCAPE, CONTRACTOR, OTHER","default":"","type":"string","name":"type"},{"_id":"56e788a19b25270e001d125f","ref":"","in":"body","required":false,"desc":"Company name of the service provider","default":"","type":"string","name":"companyName"},{"_id":"56e788a19b25270e001d1267","ref":"","in":"body","required":false,"desc":"Email of the service provider","default":"","type":"string","name":"email"},{"_id":"56e788a19b25270e001d1262","ref":"","in":"body","required":false,"desc":"Address of the service provider","default":"","type":"string","name":"address"},{"_id":"56e788a19b25270e001d125e","ref":"","in":"body","required":false,"desc":"City of the service provider","default":"","type":"string","name":"city"},{"_id":"592351a888e3d00f00e60a9e","ref":"","in":"body","required":false,"desc":"Zip code of the service provider","default":"","type":"string","name":"zipCode"},{"_id":"592351a888e3d00f00e60a9d","ref":"","in":"body","required":false,"desc":"State of the service provider","default":"","type":"string","name":"state"},{"_id":"592351a888e3d00f00e60a9c","ref":"","in":"body","required":false,"desc":"Phone number of the service provider","default":"","type":"string","name":"phoneNumber"},{"_id":"56e788a19b25270e001d1263","ref":"","in":"body","required":false,"desc":"Use an ISO_3166-1_alpha-2 format","default":"","type":"string","name":"countryCode"},{"_id":"592351a888e3d00f00e60a9b","ref":"","in":"body","required":false,"desc":"Use an ISO 4217 format","default":"","type":"string","name":"currency"}],"url":"/serviceproviders"},"isReference":false,"order":44,"body":"","excerpt":"Create a new service provider","slug":"serviceproviders-1","type":"endpoint","title":"/serviceproviders"}

post/serviceproviders

Create a new service provider

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

agencyUid:
required
string
The unique id of the parent agency
firstName:
required
string
first name of the service provider
lastName:
required
string
Last name of the service provider
type:
required
string
Can be CLEANER, GREETER, HANDYMAN, LANDSCAPE, CONTRACTOR, OTHER
companyName:
string
Company name of the service provider
email:
string
Email of the service provider
address:
string
Address of the service provider
city:
string
City of the service provider
zipCode:
string
Zip code of the service provider
state:
string
State of the service provider
phoneNumber:
string
Phone number of the service provider
countryCode:
string
Use an ISO_3166-1_alpha-2 format
currency:
string
Use an ISO 4217 format

Result Format


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