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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string | ||
User-Agent | string |
RESPONSES
status: OK
{"organization_id":"a11e6f29-6850-4d8d-b88d-0ae69cec1111","info":{"name":"Sample Sub-Org Name","billing_type":"BILLING_TYPE_CENTRALIZED","merchant_type":"MERCHANT_TYPE_RESTAURANT","point_of_contact":{"email":"name@email.com","phone_details":{"phone_number":"15555555555","country_code":"1","subscriber_number":"5555555555"}},"address":{"street1":"2000 Tustin Ave","street2":"","city":"Irvine","state":"CA","zipcode":"92602","country_iso2":"US"}},"hierarchy_info":{"parent_organization_id":"a11e6f29-6850-4d8d-b88d-0ae69cec1111"}}