Redicom Help Center

customer

customer.first_name

Version 1.0

Returns the value of the first_name field of the customer.

<input type="text" name="first_name" require="1" value="{{response.customer.billing_address.first_name}}" >

Input

{{ response.customer.first_name }}

Output

José

customer.last_name

Version 1.0

Returns the value of the last_name field of the customer.

<input type="text" name="last_name" require="1" value="{{response.customer.billing_address.last_name}}" >

Input

{{ response.customer.last_name }}

Output

Matos

customer.name

Version 1.0

Returns the value of the name field of the customer.

<input type="text" name="name" require="1" value="{{response.customer.billing_address.name}}" >

Input

{{ response.customer.name }}

Output

José Miguel Guimarães Matos

customer.email

Version 1.0

Returns the value of the email field of the customer.

<input type="text" name="name" require="1" value="{{response.customer.billing_address.name}}" >

Input

{{ response.customer.email }}

Output

jose.matos@redicom.pt

customer.phone

Version 1.0

Returns the value of the phone field of the customer.

<input type="text" name="phone" require="1" value="{{response.customer.billing_address.phone}}" >

Input

{{ response.customer.phone }}

Output

913151917

customer.has_account

Version 1.0

Returns 1 if the email associated with an order is also tied to a Customer Account. Returns 0 if it is not.

Input

{{ response.customer.has_account }}

Output

1

customer.accepts_marketing

Version 1.0

Returns 1 if the customer accepts marketing, returns 0 if the customer does not.

Input

{{ response.customer.accepts_marketing }}

Output

1

customer.default_address

Version 1.0

Returns all of the line default_address in the customer.

customer.addresses_count

Version 1.0

Returns the number of addresses associated with a customer.

Input

{{ response.customer.addresses_count }}

Output

2

customer.addresses

Version 1.0

Returns an array of all of the addresses associated with a customer. See customer_address for a full list of available attributes.

customer.billing_address

Version 1.0

Returns the billing billing_address of a customer.

customer.orders_count

Version 1.0

Returns the total number of orders a customer has placed since ever.

Input

{{ response.customer.orders_count }}

Output

4

customer.recent_orders_count

Version 1.0

Returns the total number of orders a customer has placed in the last year.

Input

{{ response.customer.recent_orders_count }}

Output

2

customer.recent_order

Version 1.0

Returns all of the line recent_order in the customer.

customer.total_spent

Version 1.0

Returns the total amount spent on all orders.

Input

{{ response.customer.total_spent }}

Output

350.40

customer.country

Version 1.0

Returns all of the line country in the customer.

customer.birthdate

Version 1.0

Returns the value of the birthdate field of the customer.

<input type="text" name="birthdate" require="1" value="{{response.customer.billing_address.birthdate}}" >

Input

{{ response.customer.birthdate }}

Output

1988-10-10

customer.gender

Version 1.0

Returns the value of the gender field of the customer.

Input

{{ response.customer.gender }}