POST
/
shoppers
cURL
curl --request POST \
  --url https://api.daraa.io/shoppers \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "address": {
    "name": "<string>",
    "street1": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  },
  "preferences": {}
}'
{
  "identifiers": [
    {}
  ],
  "generatedMaps": [
    {}
  ],
  "raw": "<any>"
}

Body

application/json
email
string<email>
required
firstName
string
required
lastName
string
required
phone
string
address
object
preferences
object

Response

200 - application/json

Ok

Result object returned by InsertQueryBuilder execution.

identifiers
object[]
required

Contains inserted entity id. Has entity-like structure (not just column database name and values).

generatedMaps
object[]
required

Generated values returned by a database. Has entity-like structure (not just column database name and values).

raw
any
required

Raw SQL result returned by executed query.