Skip to main content
POST
/
connections
Create Connection
curl --request POST \
  --url https://api.example.com/connections \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "<string>",
  "retailer_id": "<string>",
  "email": "alice@example.com",
  "mobile": "+1234567890"
}
'
{
  "connection_id": "<string>",
  "customer_id": "<string>",
  "retailer_id": "<string>",
  "email": "alice@example.com",
  "mobile": "+1234567890"
}

Documentation Index

Fetch the complete documentation index at: https://docs.subtotal.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null
x-api-key
string | null

Body

application/json
customer_id
string
required

A unique identifier used to map connections to customer records in external systems.

Maximum string length: 64
Example:

"8a46e581-48ba-498a-9ad0-2ee72582e1af"

retailer_id
string
required

The unique identifier for the retailer in the connection

Maximum string length: 26
Examples:

"walmart"

"target"

"amazon"

email
string | null

The customer's email address

Maximum string length: 64
Example:

"alice@example.com"

mobile
string | null

The customer's mobile phone number

Maximum string length: 16
Example:

"+1234567890"

Response

Successful Response

connection_id
string
required

A unique identifier for the connection

Example:

"01J51S0JYV6N7K1030CV1ZKSCA"

customer_id
string
required

A unique identifier used to map connections to customer records in external systems.

Example:

"8a46e581-48ba-498a-9ad0-2ee72582e1af"

retailer_id
string
required

The unique identifier for the retailer in the connection

Example:

"01J7SC0NN73R6F5VVSP3ZKPDA3"

status
enum<string>
required

The status of the connection

Available options:
active,
initialized,
unauthenticated,
disconnected
Example:

"active"

email
string | null
required

The customer's email address

Example:

"alice@example.com"

mobile
string | null
required

The customer's mobile phone number

Example:

"+1234567890"