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 The object unique identifier. |
address An address for this customer object. |
aggregations An object with |
contacts A list with many Contact objects related to this customer. |
country Two-letter ISO code for the country of this customer. In |
currency Three-letter ISO code for the currency of this customer. |
email A billing email address for this customer. |
metadata 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 A name for this customer object. |
phone A phone number for this customer object. |
sources A list with many Source objects related to this customer. |
state Six-letter max Piriod code for the state of this customer. In |
tax_id A valid tax id for this customer. |
tax_settings A set of key-value pairs that represent the legal tax agency specifications for this customer. |
website A valid website url for this customer. |
created Date and time of the creation of this customer. |
updated Date and time of the last update of this customer. |
Create a customer
POST
https://api.piriod.com/customers/
Creates a new Customer object.
Request Body
Name | Type | Description |
---|---|---|
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}}/
Retrieves a Customer object.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the Customer object. |
Update a customer
PATCH
https://api.piriod.com/customers/{{id}}/
Update a Customer object.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the Customer object. |
Request Body
Name | Type | Description |
---|---|---|
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/
Retrieves a list of Customer objects.
Query Parameters
Name | Type | Description |
---|---|---|
country__name | string | A country name to filter list results. |
Available filter fields:
country
email
name
sources
tax_id
created
Last updated