Developer Portal
Consumers

Create consumer

This endpoint creates a record for a Consumer in Impel's system. Fields should be populated by partner systems.

POST
/v2/consumers

Header Parameters

partner-id*string

This parameter uniquely identifies an Impel partner and will be used for API authentication and authorization.

x-api-key*string

An API Key issued by Impel that will be used for API authentication and authorization.

client-key*string

The unique IDP Identifier assigned to the client by Impel during onboarding.

Request Body

application/json

Please click on "Schema" next to "Example Value" below to view the detailed description of JSON properties in the request body.

TypeScript Definitions

Use the request body type in TypeScript.

An object containing all information about a consumer

Response Body

application/json

application/json

curl -X POST "https://example.com/v2/consumers" \  -H "partner-id: string" \  -H "x-api-key: string" \  -H "client-key: string" \  -H "Content-Type: application/json" \  -d '{    "crm_consumer_id": "123abc-1234ab-123abc",    "first_name": "John",    "last_name": "Doe",    "middle_name": "Michael",    "email": "john.doe@example.com",    "phone": "+11231231134",    "city": "New York",    "country": "USA",    "address": "123 Main St, Apt 4B",    "postal_code": "10001",    "general_optin_flag": true,    "email_optin_flag": true,    "sms_optin_flag": true,    "mail_optin_flag": true,    "phone_optin_flag": true  }'
{  "consumer_id": 0}