Post customer

Add a customer to the checkout process.

POST https://api.eventgoose.com/v1/checkouts/{session}/customer

Authentication

Authenticate yourself using your organisation api token

Parameters

event_id
string
required

The event identifier currently used in the checkout process.

first_name
string
required

The first name of the customer.

last_name
string
required

The last name of the customer.

email
string
required

The email address of the customer.

email_confirmation
string
required

A confirmation of the email address of the customer.

accept_eg
boolean
required

For every checkout the general terms and conditions need to be accepted

phone
string
optional

The phone number of the customer.

fields[general][{field_slug}]
string
optional

Custom fields at order level.

fields[{ticket_id}][][{field_slug}]
string
optional

Custom fields at ticket level.

Response

200 application/json

A customer object is returned.

    HTTP/1.1 200 OK
Content-Type: application/json

{
    "first_name": "John",
    "last_name": "Doe",
    "email": "johndoe@eventgoose.com",
    "phone": "0612345678"
}