Skip to Content
Mutation APICreate, update & destroy customers

Create, update & destroy customers

The Customer object

{ "first_name": "Jhon", "last_name": "Doe", "date_of_birth": "2000-12-01", "email": "jhon.doe@gmail.com", "phone": "31612345678", "tags": { "items": [ { "body": "Amsterdam" } ] } }
argumenttyperequireddescription
idString
first_nameStringfalseDefines the first name of the customer.
last_nameStringfalseDefines the last name of the customer.
date_of_birthStringfalseDefines the date of birth of the customer. Format: Y-m-d.
emailStringfalseDefines email address of the customer.
phoneStringfalseDefines phone number of the customer.
reference_id StringfalseDefines the reference_id of the customer.
tags ObjectfalseDefines tags of the customer.

Create

To create a customer.

POST: https://customers.prepr.io/

Scopes: customers customers_publish

Update

To update an existing customer.

PUT: https://customers.prepr.io/{id}

Scopes: customers customers_publish

Destroy

To delete a customer.

DELETE: https://customers.prepr.io/{id}

Scopes: customers customers_delete

Last updated on