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.
Last updated
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.
Last updated
POST
https://api.piriod.com/customers/
POST
/users
<Description of the endpoint>
Headers
Body
Response
POST
https://api.piriod.com/customers/
Creates a new Customer object.
GET
https://api.piriod.com/customers/{{id}}/
GET
https://api.piriod.com/customers/:id/
Retrieves a Customer object.
PATCH
https://api.piriod.com/customers/{{id}}/
PATCH
https://api.piriod.com/customers/{{id}}/
Update a Customer object.
GET
https://api.piriod.com/customers/
GET
https://api.piriod.com/customers/
Retrieves a list of Customer objects.
country
name
sources
tax_id
created
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
Content-Type
application/json
Authorization
Bearer <token>
name
string
Name of the user
age
number
Age of the user
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.
address
string
eFpyS4UNIquV
country
string
3NA5fPCNEi3h
string
tVaSEAvuOhkU
id
string
ID of the Customer object.
id
string
GmtABsx3Kjlv
id
string
ID of the Customer object.
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.
id
string
AoXuLD9ngXGx
string
6MVLOgZfULZY
name
string
fOIzuyzC3c9r
website
string
cLiV1zNpKrCe
country__name
string
A country name to filter list results.
country__name
string
lHcg4XH31dAa