POST
/
customers
Create new customer
curl --request POST \
  --url https://api.paygentic.io/v0/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "consumerId": "<string>",
  "consumer": {
    "name": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "address": {
      "line1": "<string>",
      "line2": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "zipCode": "<string>"
    }
  },
  "merchantId": "<string>"
}'
{
  "customerId": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
merchantId
string
required

The unique identifier for the merchant organization.

consumerId
string

The unique identifier for the consumer. Required if consumer is not provided.

consumer
object

Fields to create a new consumer. Will use an existing consumer if one exists with the same email address. Required if consumerId is not provided.

Response

Customer already exists

customerId
string
required