Customer
Create customer
Changed onpost/customers
Request
- Base URLhttps://api.helcim.com/v2
- URLhttps://api.helcim.com/v2/customers
- AuthAPI key in header api-token
Request body
Example request
{
"customerCode": "CST1000",
"contactName": "John Smith",
"businessName": "Best Company",
"cellPhone": "908-295-4902",
"billingAddress": {
"name": "John Smith / Helcim",
"street1": "21 Jump Street",
"street2": "Suite 400",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"email": "john@example.com"
},
"shippingAddress": {
"name": "John Smith / Helcim",
"street1": "21 Jump Street",
"street2": "Suite 400",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"email": "john@example.com"
}
}Response
Successful
Example response
{
"id": 2488717,
"customerCode": "CST1200",
"businessName": "Best company",
"contactName": "John Smith",
"cellPhone": "908-295-4902",
"billingAddress": {
"name": "John Smith / Helcim",
"street1": "21 Jump Street",
"street2": "Suite 400",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"email": "john@example.com"
},
"shippingAddress": {
"name": "John Smith / Helcim",
"street1": "21 Jump Street",
"street2": "Suite 400",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"email": "john@example.com"
},
"cards": [
{
"cardHolderName": "John Smith",
"cardToken": "a1b2c3d4e5f6"
}
]
}Changes
- info
the request property
became optional
- info