Create Direct Organizations

POST {{baseUrl}}/direct/organizations

Create a new sub-organization under the given parent organization ID. - The created organizations will use the same integration credentials as the Direct Account (clientid and clientsecret) for authentication. - After a new Org is created, it will be uniquely identified by it's organization_id which translates to the customer_id parameter in future API requests. Use this UUID in the API requests to create and manage deliveries at the respective Org-level. Example: CreateQuote: https://api.uber.com/v1/customers/{customerid}/deliveries_ replace the {customer_id} with the UUID created for the Org. - If you need to update the Org information after it is created, please contact your Uber business contact.

Request Body

{"info"=>{"name"=>"<string>", "billing_type"=>"BILLING_TYPE_DECENTRALIZED", "merchant_type"=>"MERCHANT_TYPE_LIQUOR", "point_of_contact"=>{"email"=>"<string>", "phone_details"=>{"phone_number"=>"<string>", "country_code"=>"<string>", "subscriber_number"=>"<string>"}}, "address"=>{"street1"=>"<string>", "street2"=>"<string>", "city"=>"<string>", "state"=>"<string>", "zipcode"=>"<string>", "country_iso2"=>"<string>"}}, "hierarchy_info"=>{"parent_organization_id"=>"<string>"}, "options"=>{"onboarding_invite_type"=>"ONBOARDING_INVITE_TYPE_EMAIL"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
User-Agentstring

RESPONSES

status: OK

{&quot;organization_id&quot;:&quot;a11e6f29-6850-4d8d-b88d-0ae69cec1111&quot;,&quot;info&quot;:{&quot;name&quot;:&quot;Sample Sub-Org Name&quot;,&quot;billing_type&quot;:&quot;BILLING_TYPE_CENTRALIZED&quot;,&quot;merchant_type&quot;:&quot;MERCHANT_TYPE_RESTAURANT&quot;,&quot;point_of_contact&quot;:{&quot;email&quot;:&quot;name@email.com&quot;,&quot;phone_details&quot;:{&quot;phone_number&quot;:&quot;15555555555&quot;,&quot;country_code&quot;:&quot;1&quot;,&quot;subscriber_number&quot;:&quot;5555555555&quot;}},&quot;address&quot;:{&quot;street1&quot;:&quot;2000 Tustin Ave&quot;,&quot;street2&quot;:&quot;&quot;,&quot;city&quot;:&quot;Irvine&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;zipcode&quot;:&quot;92602&quot;,&quot;country_iso2&quot;:&quot;US&quot;}},&quot;hierarchy_info&quot;:{&quot;parent_organization_id&quot;:&quot;a11e6f29-6850-4d8d-b88d-0ae69cec1111&quot;}}