Create user

The method allows you to create a user. If a user with such an email is already registered, the method will return the corresponding error.

Request:

Parameter

Required

Type

Description

email

Yes

String

User's email

Response:

Parameter

Type

Description

id

String

User ID

email

String

User's email

password

String

Generated password (shown only when created)

lastLoginAt

String or null

Date of the user's last login via the web interface

Create user

POSThttps://app.apollopayment.io/partner/api/create-user
Header parameters
Body
email*string

User's email

Example: "my-client@example.com"
Response
Body
success*boolean

Request success indicator

response*PartnerUser (object)

The body of the user's response

Request
const response = await fetch('https://app.apollopayment.io/partner/api/create-user', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "email": "my-client@example.com"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "id": "48530611-fd9a-426b-af18-d0a412ffbf05",
    "email": "my-client@example.com",
    "password": "sCPJUXnBrJ",
    "utm": null,
    "createdAt": "2024-09-24T12:09:08.778Z",
    "updatedAt": "2024-09-24T12:09:08.779Z",
    "confirmedAt": "2024-09-24T13:09:08.779Z",
    "lastLoginAt": null
  }
}

Last updated