Skip to main content
POST
/
api
/
v1
/
csp
/
organization
Create Organization
curl --request POST \
  --url https://sandbox.api.paylias.xyz/gateway/api/v1/csp/organization \
  --header 'Content-Type: application/json' \
  --data '{
  "admin_email": "admin@getsafepay.com",
  "admin_first_name": "Ziyad",
  "admin_last_name": "Parekh",
  "admin_password": "$uper$3cur3",
  "country": "US",
  "name": "Safepay, Inc"
}'
{
  "data": {
    "admin_email": "admin@getsafepay.com",
    "admin_first_name": "Ziyad",
    "admin_last_name": "Parekh",
    "country": "PK",
    "enabled": true,
    "name": "SafePay",
    "token": "org_d09gv1s20or2svojjmt0"
  },
  "ok": true
}

Body

application/json

Request to create a new organization

admin_email
string
required

Email of the organization admin

Example:

"admin@getsafepay.com"

admin_first_name
string
required

First name of the organization admin

Example:

"Ziyad"

admin_last_name
string
required

Last name of the organization admin

Example:

"Parekh"

admin_password
string
required

Password for the organization admin

Example:

"mypassword"

country
string
required

Country code of the organization

Example:

"PK"

name
string
required

Name of the organization

Example:

"SafePay"

Response

Organization information retrieved successfully

Standard response structure for successful operations

ok
boolean

Indicates if the operation was successful

Example:

true

data
object

Contains the response data Organization information

I