POST
/
customers
curl --request POST \
  --url https://api.live.paisr.tech/{version}/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "default_currency": "<string>",
  "billing_details": {
    "line_1": "Example Street 10",
    "line_2": "Example Street 11",
    "city": "Paramaribo",
    "state": "Kwatta",
    "zip_code": "<string>",
    "country": "SR"
  },
  "shipping_details": {
    "line_1": "Example Street 10",
    "line_2": "Example Street 11",
    "city": "Paramaribo",
    "state": "Kwatta",
    "zip_code": "<string>",
    "country": "SR"
  },
  "metadata": {}
}'
{
  "success": true,
  "data": {
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
The details required to create a customer.
email
string
required

The email address of the customer.

name
string

The name of the customer.

phone
string

The phone number of the customer. (eg +597-8123456)

default_currency
string

Default currency to apply on all new invoices of the customer.

billing_details
object

The billing details of the customer

shipping_details
object

The shipping details of the customer

metadata
object

Up to 5 custom key-value pair

Response

200
application/json
Successfully created customer.
success
boolean
default:true

Indicates if the request was successful.

data
object