Creating an organization

The method allows you to create an organization for the user

Creating an organization

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body

The body of the user creation request

userIdstringRequired

User's email

Example: ed83d19f-30ef-4b3f-bca9-edd2c7714b16
namestringOptional

Organization's name

Example: My organization
Responses
200Success
application/json
post
POST /partner/api/create-user-organization HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "userId": "ed83d19f-30ef-4b3f-bca9-edd2c7714b16",
  "name": "My organization"
}
200Success
{
  "success": true,
  "response": "a61799b2-cd0c-47fd-a7f0-216b2be184c7"
}

Last updated