Customers
The Customer object represent your customer and the API allows you to create, update and retrieve your customers. You can retrieve a list of all your customers as well retrieve an individual customer.
Customer object
Attributes
id string
The object unique identifier.
address string
An address for this customer object.
aggregations object
An object with balance
, sales
, sales_current_period
fields. Each field represent a summary for financial state of this customer.
contacts list
A list with many Contact objects related to this customer.
country string
Two-letter ISO code for the country of this customer. In list
and retrieve
API return calls a Country object.
currency string
Three-letter ISO code for the currency of this customer.
email string
A billing email address for this customer.
metadata object
A set of free key-value pairs that you will can attach to this customer. This can be useful for storing additional information about the object in a structured format.
name string
A name for this customer object.
phone string
A phone number for this customer object.
sources list
A list with many Source objects related to this customer.
state string
Six-letter max Piriod code for the state of this customer. In list
and retrieve
API return calls a State object.
tax_id string
A valid tax id for this customer.
tax_settings string
A set of key-value pairs that represent the legal tax agency specifications for this customer.
website string
A valid website url for this customer.
created datetime
Date and time of the creation of this customer.
updated datetime
Date and time of the last update of this customer.
Create a customer
POST
https://api.piriod.com/customers/
Create a new user
POST
/users
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
name
string
Name of the user
age
number
Age of the user
Response
Create a customer
POST
https://api.piriod.com/customers/
Creates a new Customer object.
Request Body
address
string
An address for this customer object.
country
string
Two-letter ISO code for the country of this customer.
string
A billing email address for this customer.
Retrieve a customer
GET
https://api.piriod.com/customers/{{id}}/
Request Body
address
string
eFpyS4UNIquV
country
string
3NA5fPCNEi3h
string
tVaSEAvuOhkU
Retrieve a customer
GET
https://api.piriod.com/customers/:id/
Retrieves a Customer object.
Path Parameters
id
string
ID of the Customer object.
Update a customer
PATCH
https://api.piriod.com/customers/{{id}}/
Path Parameters
id
string
GmtABsx3Kjlv
Update a customer
PATCH
https://api.piriod.com/customers/{{id}}/
Update a Customer object.
Path Parameters
id
string
ID of the Customer object.
Request Body
string
A billing email address for this customer.
name
string
A name for this customer object.
website
string
A valid website url for this customer.
List customers
GET
https://api.piriod.com/customers/
Path Parameters
id
string
AoXuLD9ngXGx
Request Body
string
6MVLOgZfULZY
name
string
fOIzuyzC3c9r
website
string
cLiV1zNpKrCe
List customers
GET
https://api.piriod.com/customers/
Retrieves a list of Customer objects.
Query Parameters
country__name
string
A country name to filter list results.
Query Parameters
country__name
string
lHcg4XH31dAa
Available filter fields:
country
email
name
sources
tax_id
created
Last updated