Description

Creates a new Organization.

Arguments

Argument Description Required
organization[details_attributes[name]] Name of the new Organization. true
organization[users_attributes[0][email]] Email of the user to be created along with this Organization true
organization[users_attributes[0][password]] Password of the user to be created along with this Organization true
organization[organization_plan_attributes[plan_id]] ID of the Plan to associate with the new Organization. true

Example Request

curl https://app.atpay.com/api/v5/organizations \
  -u key:secret \
  -d organization[details_attributes[name]]="My Test Organization" \
  -d organization[users_attributes[0][email]]=user@email.com \
  -d organization[users_attributes[0][password]]="supersecurepassword" \ 
  -d organization[organization_plan_attributes[plan_id]]=1008

Example Response

{
  "giving_portal_url" : "https://my-test-organization.atpy.it",
  "merchant_id" : "m_XXXXXXXXXXXXXXXXXXXXXX"
}