Create or update customer
POST
/v1/customers
Creates or updates a customer identified by the combination
first_name + last_name + email + phone + ip.
WARNING
To create a customer, you must have collected the IP using the Appmax JS script.
TIP
If you send only the required fields, the customer is registered as an "abandoned cart" and can be updated later through the same route.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Request Body
application/json
JSON "first_name": "Junior", "last_name": "Almeida", "phone": "51983655100", "document_number": "25226493029", "address": { "postcode": "91520270", "street": "Rua Francisco Carneiro da Rocha", "number": "582", "complement": "Casa", "district": "Moinhos de Ventos", "city": "Porto Alegre", "state": "RS" }, "ip": "127.0.0.1", "products": [ { "sku": "9000010", "name": "Livro de receitas", "quantity": 1, "unit_value": 12300, "type": "digital" } ], "tracking": { "utm_source": "google", "utm_campaign": "teste" }
{
}
Responses
Customer created successfully. Save the customer_id to create the order.
application/json
JSON "data": { "customer": { "id": 1 } }
{
}
POST
/v1/customers