Skip to content

Create a Customer

POST
/customers

Parameters

Header Parameters

x-api-key
string

E.g. 123

Example
123

Request Body

object
email
required
string
customer@example.com
phone
string
01792 720740
mobile
string
07329023903
notes
string
This is some extra info about the customer. 255 Character Limit
billing_address_attributes
object
first_name
string
John
last_name
string
Doe
company
string
FooBar Ltd
address1
string
221 High Street Lane
address2
string
2nd Address
city
string
Swansea
country
string
GB
zip
string
SA1 1NW
Example
{
"customer": {
"email": "Phil+API@veeqo.com",
"phone": "01792 720740",
"mobile": "07329023903",
"notes": "This person buys things",
"billing_address_attributes": {
"first_name": "Phil",
"last_name": "Reynolds",
"company": "Veeqo Ltd",
"address1": "Tech Hub",
"address2": "221 High Street",
"city": "Swansea",
"country": "GB",
"zip": "SA1 1NW"
}
}
}

Responses

201

Created

object
id
number
email
string
phone
string
mobile
string
notes
string
created_by_id
number
billing_address
object
id
number
first_name
string
last_name
string
company
string
address1
string
address2
string
city
string
country
string
state
nullable
zip
string
phone
nullable
email
nullable
shipping_addresses
Array<object>
object
id
number
first_name
string
last_name
string
company
string
address1
string
address2
string
city
string
country
string
state
string
zip
string
phone
string
last_used_shipping_address
object
id
number
first_name
string
last_name
string
company
string
address1
string
address2
string
city
string
country
string
state
string
zip
string
phone
string
Example
{
"id": 123,
"email": "Phil+API@veeqo.com",
"phone": "01792 720740",
"mobile": "07329023903",
"notes": "This person buys things",
"created_by_id": 12005,
"billing_address": {
"id": 12345678,
"first_name": "Phil",
"last_name": "Reynolds",
"company": "Veeqo Ltd",
"address1": "Tech Hub",
"address2": "221 High Street",
"city": "Swansea",
"country": "GB",
"state": null,
"zip": "SA1 1NW",
"phone": null,
"email": null
},
"shipping_addresses": [
{
"id": 12345678,
"first_name": "Phil",
"last_name": "Reynolds",
"company": "Veeqo Ltd",
"address1": "Tech Hub",
"address2": "221 High Street",
"city": "Swansea",
"country": "GB",
"state": "",
"zip": "SA1 1NW",
"phone": ""
}
],
"last_used_shipping_address": {
"id": 12345678,
"first_name": "Phil",
"last_name": "Reynolds",
"company": "Veeqo Ltd",
"address1": "Tech Hub",
"address2": "221 High Street",
"city": "Swansea",
"country": "GB",
"state": "",
"zip": "SA1 1NW",
"phone": ""
}
}