Skip to main content
POST
/
customers
Create a customer
curl --request POST \
  --url https://sandbox-api.paynext.com/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "address": {
    "city": "San Francisco",
    "country": "AD",
    "line1": "123 Market Street",
    "line2": "Suite 400",
    "postal_code": "94105",
    "state": "CA"
  },
  "created_at": "2025-05-28T14:00:00Z",
  "email": "alice.johnson@example.com",
  "external_id": "ext_001",
  "full_name": "Alice Johnson",
  "id": "cus_b8d0fe7e-3a7f-4b5f-a68b-d31358b49c3f",
  "metadata": {
    "key": "value"
  },
  "payment_methods": [
    {
      "details": {
        "bin": "411111",
        "bin_data": {
          "brand": "visa",
          "country": "AD",
          "currency_code": "<string>",
          "description": "Chase Sapphire Preferred",
          "funding": "debit",
          "issuer": "Chase Bank",
          "type": "consumer"
        },
        "exp_month": 12,
        "exp_year": 2028,
        "is_network_tokenized": true,
        "last4": "1111",
        "number": "4111111111111111"
      },
      "type": "CARD",
      "billing_address": {
        "city": "San Francisco",
        "country": "AD",
        "line1": "123 Market Street",
        "line2": "Suite 400",
        "postal_code": "94105",
        "state": "CA"
      }
    }
  ],
  "phone": "+1-555-123-4567",
  "subscriptions": [
    {
      "created_at": "2025-05-26T10:00:00Z",
      "current_period_end": "<string>",
      "current_period_start": "<string>",
      "id": "sub_123e4567-e89b-12d3-a456-426614174000",
      "metadata": {
        "key": "value"
      },
      "next_billing_date": "2025-06-26T12:00:00Z",
      "past_due": {
        "attempt_count": 2,
        "max_attempts_count": 7
      },
      "plan": {
        "id": "price_1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        "interval": "days",
        "interval_count": 1,
        "name": "Pro Plan",
        "price": {
          "amount": 1999,
          "currency": "AED"
        },
        "tax": {
          "collect_tax": "<unknown>"
        },
        "trial_interval": "days",
        "trial_interval_count": 14,
        "trial_price": {
          "amount": 1999,
          "currency": "AED"
        },
        "type": "recurring"
      },
      "status": "trial",
      "updated_at": "2025-05-27T10:00:00Z"
    }
  ],
  "updated_at": "2025-05-28T14:05:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.paynext.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication header of the form api key, where api key is your organization api key.

Headers

X-API-Version
enum<string>

Specifies the version of the API to use

Available options:
1.0.0

Body

application/json

Create customer

cit_network_transaction_id
string

CIT network transaction ID from the original processor (used as reference for future MIT charges)

customer
object
payment_method
object
plan
object
processor
object
subscription
object

Response

OK

address
object

Address associated with customer

created_at
string

The date and time the customer was created in UTC format

Example:

"2025-05-28T14:00:00Z"

email
string

Email of the customer

Example:

"alice.johnson@example.com"

external_id
string

External ID of the customer

Example:

"ext_001"

full_name
string

Full name of the customer

Example:

"Alice Johnson"

id
string

Unique identifier

Example:

"cus_b8d0fe7e-3a7f-4b5f-a68b-d31358b49c3f"

metadata
object

Additional metadata as a JSON object

Example:
{ "key": "value" }
payment_methods
(Card API Schema · object | PayPal API Schema · object | Venmo API Schema · object | CashApp API Schema · object | Apple Pay API Schema · object | Google Pay API Schema · object)[]
phone
string

Customer's phone number

Example:

"+1-555-123-4567"

subscriptions
object[]
updated_at
string

The date and time the customer was last updated in UTC format

Example:

"2025-05-28T14:05:00Z"