Skip to main content
POST
/
customers
cURL
curl --request POST \
  --url https://api.yourjobsearchgenius.ai/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "isPaidOutside": true,
  "packageId": "<string>",
  "uniqueCustomerId": "<string>"
}
'
{
  "_id": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "autoLogin": {
    "autoLoginUrl": "<string>",
    "autoLoginCode": "<string>"
  },
  "subscriptionId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Customer to add to the system.

firstName
string
required

The first name of the customer.

lastName
string
required

The last name of the customer.

email
string
required

Email address of the customer.

isPaidOutside
boolean
required

Indicates whether the customer will pay outside our system. If true, use the payment API to refresh payment information at the start of each subscription cycle. If false, redirect the user using the checkout link, and payment will be processed through our system.

packageId
string
required

Package id in our system

uniqueCustomerId
string

The unique identifier for the user in your system. You can use the GET /customers API to filter users based on this identifier.

Response

Resource created successfully.

_id
string

The id of the customer.

firstName
string

The first name of the customer.

lastName
string

The last name of the customer.

email
string

Email address of the customer.

autoLogin
object

Auto login details for the customer.

subscriptionId
string

Subscription ID in our system