Contact Centre

General

Contact Centre General API Calls

Report

This API returns a report on activity over a time period.

Date filtering is applied independently for transactions and workflow people.

People Approved are all people that were created, within the given timeframe, that have been approved; when these people were approved does not matter for this block of data. If people were not created by the given API token the results won’t appear in the report.

Transactions Successful are all transactions (accepted/paid), within the given timeframe, for people that have been created using the given API token; when these people were created does not matter for this block of data.

Path
/report

Request (GET)

All of the following query parameters must be provided.

Query ParameterData typeDescription
start_datedateOnly records created after or equal to this date will be considered
end_datedateOnly records before or equal to this date will be considered

Response (JSON)

Note: status code 400 will be returned if the date is not in an acceptable format; multiple formats are accepted but ‘YYYY-MM-DD’ is the recommended date format.

Data is returned as a JSON object in the following format:

{
  "info": {
    "people": {
      "approved": 1234,
      "rejected": 0
    },
    "companies":{
      "approved": 1234,
      ...
    },
    "updates": {
      "approved": 1234,
      ...
    },
    "company_updates": {
      "approved": 1234,
      ...
    },
    "increases": {
      "approved": 1234,
      ...
    },
    "transactions": {
      "approved": 1234,
      ...
    },
    "products": {
      "approved": 1234,
      ...
    },
    "subscriptions": {
      "approved": 1234,
      ...
    },
    "pending": 1
  },
  "people_approved": [{
    "id_number": "2001014800086",
    ...
  }],
  "companies_approved": [{
    "company_name": "Test Inc.",
    ...
  }],
  "people_declined": [{
    "id_number": "2001024800084",
    ...
  }],
  "companies_declined": [{
    "company_name": "Test Inc.",
    ...
  }],
  "people_updates_approved": [{
    ...
  }],
  "company_updates_approved": [{
    ...
  }],
  "people_updates_declined": [{
    ...
  }],
  "company_updates_declined": [{
    ...
  }],
  "increases_approved": [{
    "product_name": "ProductX",
    ...
  }],
  "increases_declined": [{
  "product_name": "ProductY",
    ...
  }],
  "products_add_approved": [{
    ...
  }],
  "products_add_declined": [{
    ...
  }],
  "subscriptions_add_approved": [{
    ...
  }],
  "subscriptions_add_declined": [{
    ...
  }],
  "pending": [{...}],
  "workflows": [{
    ...
  }]
}

Info section

Sub-section

Field name

Data type

Description

people

approved

Number

Number of members loaded that were approved

people

rejected

Number

Number of members loaded that were rejected

companies

approved

Number

Number of companies loaded that were approved

companies

rejected

Number

Number of companies loaded that were rejected

updates

approved

Number

Number of member updates that were approved

updates

rejected

Number

Number of member updates that were rejected

company_updates

approved

Number

Number of company updates that were approved

company_updates

rejected

Number

Number of company updates that were rejected

increases

approved

Number

Number of increases loaded that were approved

increases

rejected

Number

Number of increases loaded that were rejected

pending

N.A.

Number

How many workflow items have not yet been approved/declined.

People approved section

Field name

Data type

Description

record_people_id

string

Unique ID associated with the record

id_number

string

ID number, this can also be other countries

name

string

First name

middle_names

string

Middle name(s)

surname

string

Last name

title

string

Title

initials

string

Person initials

email

string

Email

contact_cell

string

Contact number (10 digits)

contact_home

string

Home number (10 digits)

contact_work

string

Work number (10 digits)

contact_fax

string

Fax number (10 digits)

language

string

Language

marital_status

string

Marital status

gender

string

Person gender

account_branch_code

string

Bank branch code

account_name

string

Bank account holder name

account_number

string

Bank account number

account_type

string

Bank account type

account_bank

string

Bank name

product_name

string

Name of the product person is subscribed to

product_amount

Number

Amount person is paying for the product in Cents e.g. 150 for R1.50

product_unit_name

string

How frequently the product is billed

product_subscription_start_date

date

When the subscription to the product is to start

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

number

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_blacklisted

boolean

Is the record flagged as blacklisted

municipality

string

Municipality associated with the region

region

string

Province/State associated with the person record

country

string

Country associated with the person record

notes

string

Notes with regards to the person

balance_open

number

Journal opening balance

reference_number

string

Reference provided when the API call was made

tax_reference

string

Tax reference number associated with the record

day_salary

number

Day of debit order run (0 - 31)

date_birth

date

Date of birth

created_at

date

When the record was created

date_balance_open

date

Date associated with opening balance

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

companies

string

Name of the company this person is associated with

job_lookups

string

What kind of job does this person do

Companies approved section

Field name

Data type

Description

record_companies_id

string

Unique ID associated with the record

account_type

string

Bank account type

account_bank

string

Bank name

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

municipality

string

Municipality associated with the region

region

string

Province/State associated with the company record

country

string

Country associated with the company record

company_type

string

Type of company e.g. Non-profit (NPC)

company_name

string

Name of the company

email

string

Email associated with the company

product_name

string

Name of the product subscribed to

product_amount

string

Amount associated with the product

product_unit_name

string

Unit name associated with the product

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

string

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_whatsapp

boolean

Can send WhatsApp marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_active

boolean

If the company record is active

is_blacklisted

boolean

Is the record flagged as blacklisted

default_billing_day

number

Default billing day for the company

trading_as

string

Company registered trading name

registration_number

string

Company registration number

contact

string

Contact number for the company

mobile

string

Mobile number for the company

fax

string

Fax number for the company

website

string

Company website address

is_taxable

boolean

If the company is taxable or not

default_accounts_tax_id

string

Default account tax ID

tax_reference

string

Tax reference number associated with the record

notes

string

Notes with regards to the company

description

string

Description associated with the company

social_facebook

string

Facebook URL

social_linkedin

string

Linkedin URL

social_instagram

string

Instagram URL

social_twitter

string

Twitter URL

social_pinterest

string

Pinterest URL

social_blog

string

Blog URL

social_whatsapp

string

Whatsapp number

social_telegram

string

Telegram number

web_referrer

string

Web referrer for this record

utm_campaign

string

UTM campaign parameter

utm_source

string

UTM source parameter

utm_medium

string

UTM medium parameter

utm_content

string

UTM content parameter

utm_term

string

UTM term parameter

billing_day

number

Billing day for the subscription

account_branch_code

string

Bank branch code

account_name

string

Bank account name

account_number

string

Bank account number

balance_open

number

Journal opening balance

contact_name

string

Contact person name

contact_surname

string

Contact person surname

contact_ttitle

string

Contact person title

reference_number

string

Reference provided when the API call was made

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

date_balance_open

date

Date associated with opening balance

product_subscription_start_date

date

When the subscription to the product is to start

date_closed

date

Date company closed down

date_expire

date

Date this company record becomes invalid

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

People declined section

Field name

Data type

Description

declined_reason

string

Reason why this record was declined

record_people_id

string

Unique ID associated with the record

id_number

string

ID number, this can also be other countries

name

string

First name

middle_names

string

Middle name(s)

surname

string

Last name

title

string

Title

initials

string

Person initials

email

string

Email

contact_cell

string

Contact number (10 digits)

contact_home

string

Home number (10 digits)

contact_work

string

Work number (10 digits)

contact_fax

string

Fax number (10 digits)

language

string

Language

marital_status

string

Marital status

gender

string

Person gender

account_branch_code

string

Bank branch code

account_name

string

Bank account holder name

account_number

string

Bank account number

account_type

string

Bank account type

account_bank

string

Bank name

product_name

string

Name of the product person is subscribed to

product_amount

Number

Amount person is paying for the product in Cents e.g. 150 for R1.50

product_unit_name

string

How frequently the product is billed

product_subscription_start_date

date

When the subscription to the product is to start

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

number

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_blacklisted

boolean

Is the record flagged as blacklisted

municipality

string

Municipality associated with the region

region

string

Province/State associated with the person record

country

string

Country associated with the person record

notes

string

Notes with regards to the person

balance_open

number

Journal opening balance

reference_number

string

Reference provided when the API call was made

tax_reference

string

Tax reference number associated with the record

day_salary

number

Day of debit order run (0 - 31)

date_birth

date

Date of birth

created_at

date

When the record was created

date_balance_open

date

Date associated with opening balance

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

companies

string

Name of the company this person is associated with

job_lookups

string

What kind of job does this person do

Companies declined section

Field name

Data type

Description

declined_reason

string

Reason why this record was declined

record_companies_id

string

Unique ID associated with the record

account_type

string

Bank account type

account_bank

string

Bank name

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

municipality

string

Municipality associated with the region

region

string

Province/State associated with the company record

country

string

Country associated with the company record

company_type

string

Type of company e.g. Non-profit (NPC)

company_name

string

Name of the company

email

string

Email associated with the company

product_name

string

Name of the product subscribed to

product_amount

string

Amount associated with the product

product_unit_name

string

Unit name associated with the product

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

string

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_whatsapp

boolean

Can send WhatsApp marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_active

boolean

If the company record is active

is_blacklisted

boolean

Is the record flagged as blacklisted

default_billing_day

number

Default billing day for the company

trading_as

string

Company registered trading name

registration_number

string

Company registration number

contact

string

Contact number for the company

mobile

string

Mobile number for the company

fax

string

Fax number for the company

website

string

Company website address

is_taxable

boolean

If the company is taxable or not

default_accounts_tax_id

string

Default account tax ID

tax_reference

string

Tax reference number associated with the record

notes

string

Notes with regards to the company

description

string

Description associated with the company

social_facebook

string

Facebook URL

social_linkedin

string

Linkedin URL

social_instagram

string

Instagram URL

social_twitter

string

Twitter URL

social_pinterest

string

Pinterest URL

social_blog

string

Blog URL

social_whatsapp

string

Whatsapp number

social_telegram

string

Telegram number

web_referrer

string

Web referrer for this record

utm_campaign

string

UTM campaign parameter

utm_source

string

UTM source parameter

utm_medium

string

UTM medium parameter

utm_content

string

UTM content parameter

utm_term

string

UTM term parameter

billing_day

number

Billing day for the subscription

account_branch_code

string

Bank branch code

account_name

string

Bank account name

account_number

string

Bank account number

balance_open

number

Journal opening balance

contact_name

string

Contact person name

contact_surname

string

Contact person surname

contact_ttitle

string

Contact person title

reference_number

string

Reference provided when the API call was made

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

date_balance_open

date

Date associated with opening balance

product_subscription_start_date

date

When the subscription to the product is to start

date_closed

date

Date company closed down

date_expire

date

Date this company record becomes invalid

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

People updates approved section

Field name

Data type

Description

record_people_id

string

Unique ID associated with the record

id_number

string

ID number, this can also be other countries

name

string

First name

middle_names

string

Middle name(s)

surname

string

Last name

title

string

Title

initials

string

Person initials

email

string

Email

contact_cell

string

Contact number (10 digits)

contact_home

string

Home number (10 digits)

contact_work

string

Work number (10 digits)

contact_fax

string

Fax number (10 digits)

language

string

Language

marital_status

string

Marital status

gender

string

Person gender

account_branch_code

string

Bank branch code

account_name

string

Bank account holder name

account_number

string

Bank account number

account_type

string

Bank account type

account_bank

string

Bank name

product_name

string

Name of the product person is subscribed to

product_amount

Number

Amount person is paying for the product in Cents e.g. 150 for R1.50

product_unit_name

string

How frequently the product is billed

product_subscription_start_date

date

When the subscription to the product is to start

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

number

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_blacklisted

boolean

Is the record flagged as blacklisted

municipality

string

Municipality associated with the region

region

string

Province/State associated with the person record

country

string

Country associated with the person record

notes

string

Notes with regards to the person

balance_open

number

Journal opening balance

reference_number

string

Reference provided when the API call was made

tax_reference

string

Tax reference number associated with the record

day_salary

number

Day of debit order run (0 - 31)

date_birth

date

Date of birth

created_at

date

When the record was created

date_balance_open

date

Date associated with opening balance

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

companies

string

Name of the company this person is associated with

job_lookups

string

What kind of job does this person do

Company updates approved section

Field name

Data type

Description

record_companies_id

string

Unique ID associated with the record

account_type

string

Bank account type

account_bank

string

Bank name

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

municipality

string

Municipality associated with the region

region

string

Province/State associated with the company record

country

string

Country associated with the company record

company_type

string

Type of company e.g. Non-profit (NPC)

company_name

string

Name of the company

email

string

Email associated with the company

product_name

string

Name of the product subscribed to

product_amount

string

Amount associated with the product

product_unit_name

string

Unit name associated with the product

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

string

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_whatsapp

boolean

Can send WhatsApp marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_active

boolean

If the company record is active

is_blacklisted

boolean

Is the record flagged as blacklisted

default_billing_day

number

Default billing day for the company

trading_as

string

Company registered trading name

registration_number

string

Company registration number

contact

string

Contact number for the company

mobile

string

Mobile number for the company

fax

string

Fax number for the company

website

string

Company website address

is_taxable

boolean

If the company is taxable or not

default_accounts_tax_id

string

Default account tax ID

tax_reference

string

Tax reference number associated with the record

notes

string

Notes with regards to the company

description

string

Description associated with the company

social_facebook

string

Facebook URL

social_linkedin

string

Linkedin URL

social_instagram

string

Instagram URL

social_twitter

string

Twitter URL

social_pinterest

string

Pinterest URL

social_blog

string

Blog URL

social_whatsapp

string

Whatsapp number

social_telegram

string

Telegram number

web_referrer

string

Web referrer for this record

utm_campaign

string

UTM campaign parameter

utm_source

string

UTM source parameter

utm_medium

string

UTM medium parameter

utm_content

string

UTM content parameter

utm_term

string

UTM term parameter

billing_day

number

Billing day for the subscription

account_branch_code

string

Bank branch code

account_name

string

Bank account name

account_number

string

Bank account number

balance_open

number

Journal opening balance

contact_name

string

Contact person name

contact_surname

string

Contact person surname

contact_ttitle

string

Contact person title

reference_number

string

Reference provided when the API call was made

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

date_balance_open

date

Date associated with opening balance

product_subscription_start_date

date

When the subscription to the product is to start

date_closed

date

Date company closed down

date_expire

date

Date this company record becomes invalid

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

People updates declined section

Field name

Data type

Description

declined_reason

string

Reason why this record was declined

record_people_id

string

Unique ID associated with the record

id_number

string

ID number, this can also be other countries

name

string

First name

middle_names

string

Middle name(s)

surname

string

Last name

title

string

Title

initials

string

Person initials

email

string

Email

contact_cell

string

Contact number (10 digits)

contact_home

string

Home number (10 digits)

contact_work

string

Work number (10 digits)

contact_fax

string

Fax number (10 digits)

language

string

Language

marital_status

string

Marital status

gender

string

Person gender

account_branch_code

string

Bank branch code

account_name

string

Bank account holder name

account_number

string

Bank account number

account_type

string

Bank account type

account_bank

string

Bank name

product_name

string

Name of the product person is subscribed to

product_amount

Number

Amount person is paying for the product in Cents e.g. 150 for R1.50

product_unit_name

string

How frequently the product is billed

product_subscription_start_date

date

When the subscription to the product is to start

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

number

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_blacklisted

boolean

Is the record flagged as blacklisted

municipality

string

Municipality associated with the region

region

string

Province/State associated with the person record

country

string

Country associated with the person record

notes

string

Notes with regards to the person

balance_open

number

Journal opening balance

reference_number

string

Reference provided when the API call was made

tax_reference

string

Tax reference number associated with the record

day_salary

number

Day of debit order run (0 - 31)

date_birth

date

Date of birth

created_at

date

When the record was created

date_balance_open

date

Date associated with opening balance

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

companies

string

Name of the company this person is associated with

job_lookups

string

What kind of job does this person do

Company updates declined section

Field name

Data type

Description

declined_reason

string

Reason why this record was declined

record_companies_id

string

Unique ID associated with the record

account_type

string

Bank account type

account_bank

string

Bank name

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

municipality

string

Municipality associated with the region

region

string

Province/State associated with the company record

country

string

Country associated with the company record

company_type

string

Type of company e.g. Non-profit (NPC)

company_name

string

Name of the company

email

string

Email associated with the company

product_name

string

Name of the product subscribed to

product_amount

string

Amount associated with the product

product_unit_name

string

Unit name associated with the product

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

string

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_whatsapp

boolean

Can send WhatsApp marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_active

boolean

If the company record is active

is_blacklisted

boolean

Is the record flagged as blacklisted

default_billing_day

number

Default billing day for the company

trading_as

string

Company registered trading name

registration_number

string

Company registration number

contact

string

Contact number for the company

mobile

string

Mobile number for the company

fax

string

Fax number for the company

website

string

Company website address

is_taxable

boolean

If the company is taxable or not

default_accounts_tax_id

string

Default account tax ID

tax_reference

string

Tax reference number associated with the record

notes

string

Notes with regards to the company

description

string

Description associated with the company

social_facebook

string

Facebook URL

social_linkedin

string

Linkedin URL

social_instagram

string

Instagram URL

social_twitter

string

Twitter URL

social_pinterest

string

Pinterest URL

social_blog

string

Blog URL

social_whatsapp

string

Whatsapp number

social_telegram

string

Telegram number

web_referrer

string

Web referrer for this record

utm_campaign

string

UTM campaign parameter

utm_source

string

UTM source parameter

utm_medium

string

UTM medium parameter

utm_content

string

UTM content parameter

utm_term

string

UTM term parameter

billing_day

number

Billing day for the subscription

account_branch_code

string

Bank branch code

account_name

string

Bank account name

account_number

string

Bank account number

balance_open

number

Journal opening balance

contact_name

string

Contact person name

contact_surname

string

Contact person surname

contact_ttitle

string

Contact person title

reference_number

string

Reference provided when the API call was made

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

date_balance_open

date

Date associated with opening balance

product_subscription_start_date

date

When the subscription to the product is to start

date_closed

date

Date company closed down

date_expire

date

Date this company record becomes invalid

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

Increases approved section

Field name

Data type

Description

product_name

string

Name of the product the increase is relevant to

id_number

string

ID number, this can also be other countries

branch

string

Name of the branch the increase is relevant to

project

string

Name of project the increase is relevant to

increase_amount

Number

Amount in Cents relevant to the increase

Increases declined section

Field name

Data type

Description

product_name

string

Name of the product the increase is relevant to

id_number

string

ID number, this can also be other countries

branch

string

Name of the branch the increase is relevant to

project

string

Name of project the increase is relevant to

increase_amount

Number

Amount in Cents relevant to the increase

declined_reason

string

Reason why this increase was declined

Products approved section

Field name

Data type

Description

id_number

string

Associated person ID number, this can also be for other countries

company_name

string

Associated company name

product_name

string

Name of the product

product_amount

number

Amount charged for the product in cents

branch

string

Name of the branch the product is relevant to

project

string

Name of the project the product is relevant to

agent

string

Name of the agent the product is relevant to

product_id

uuid

ID of the product

people_id

uuid

ID of the person charged

companies_id

uuid

ID of the company charged

subscription_id

uuid

ID of the subscription the product is added to

reference_number

string

Reference provided when the API call was made

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

Products declined section

Field name

Data type

Description

id_number

string

Associated person ID number, this can also be for other countries

company_name

string

Associated company name

product_name

string

Name of the product

product_amount

number

Amount charged for the product in cents

branch

string

Name of the branch the product is relevant to

project

string

Name of the project the product is relevant to

agent

string

Name of the agent the product is relevant to

product_id

uuid

ID of the product

people_id

uuid

ID of the person charged

companies_id

uuid

ID of the company charged

subscription_id

uuid

ID of the subscription the product is added to

reference_number

string

Reference provided when the API call was made

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

Subscriptions approved section

Field name

Data type

Description

id_number

string

Associated person ID number, this can also be for other countries

company_name

string

Associated company name

product_name

string

Name of the product

product_amount

number

Amount charged for the product in cents

branch

string

Name of the branch the product is relevant to

project

string

Name of the project the product is relevant to

agent

string

Name of the agent the product is relevant to

product_id

uuid

ID of the product

people_id

uuid

ID of the person charged

companies_id

uuid

ID of the company charged

subscription_id

uuid

ID of the subscription the product is added to

reference_number

string

Reference provided when the API call was made

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item

product_subscription_start_date

date

Starting date of the created subscription

product_subscription_end_date

date

End date of the created subscription

payment_methods_id

uuid

Payment method used by the subscription

account_branch_code

string

Branch code used to make payments

account_name

string

Bank account holder name

account_number

string

Bank account number used to make payments

account_type_lookups_id

uuid

Type of bank account

account_bank_lookups_id

uuid

Bank the account number belongs to

Subscriptions declined section

Field name

Data type

Description

id_number

string

Associated person ID number, this can also be for other countries

company_name

string

Associated company name

product_name

string

Name of the product

product_amount

number

Amount charged for the product in cents

branch

string

Name of the branch the product is relevant to

project

string

Name of the project the product is relevant to

agent

string

Name of the agent the product is relevant to

product_id

uuid

ID of the product

people_id

uuid

ID of the person charged

companies_id

uuid

ID of the company charged

subscription_id

uuid

ID of the subscription the product is added to

reference_number

string

Reference provided when the API call was made

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

product_subscription_start_date

date

Starting date of the created subscription

product_subscription_end_date

date

End date of the created subscription

payment_methods_id

uuid

Payment method used by the subscription

account_branch_code

string

Branch code used to make payments

account_name

string

Bank account holder name

account_number

string

Bank account number used to make payments

account_type_lookups_id

uuid

Type of bank account

account_bank_lookups_id

uuid

Bank the account number belongs to

Some records may be null depending on the type of workflow item.

Workflows/Pending sections

Field name

Data type

Description

created_at

timestamp

When workflow item was created

action_timestamp

Timestamp

When record was approved/declined

declined_reason

String

Reason why workflow was declined

is_submitting_for_another_agent

Boolean

If this record was submitted on behalf of another agent

is_approved

Boolean

True if this record was approved

is_create

Boolean

If this is a creation workflow

is_update

Boolean

If this is an update workflow

is_increase

Boolean

If this workflow is for an increase

increase_amount

Number

Amount requested to increase in cents

is_product_add

Boolean

If this workflow is for adding a product

product_add_name

String

Name of product added

product_add_person_name

String

Name of the person product was added for

product_add_person_surname

String

Surname of the person product was added for

subscription_id

String

ID of the subscription product was added to

reference_number

string

Reference provided when the API call was made

record_people_id

string

Unique ID associated with the record

id_number

string

ID number, this can also be other countries

name

string

First name

middle_names

string

Middle name(s)

surname

string

Last name

title

string

Title

initials

string

Person initials

email

string

Email

contact_cell

string

Contact number (10 digits)

contact_home

string

Home number (10 digits)

contact_work

string

Work number (10 digits)

contact_fax

string

Fax number (10 digits)

language

string

Language

marital_status

string

Marital status

gender

string

Person gender

account_branch_code

string

Bank branch code

account_name

string

Bank account holder name

account_number

string

Bank account number

account_type

string

Bank account type

account_bank

string

Bank name

product_name

string

Name of the product person is subscribed to

product_amount

Number

Amount person is paying for the product in Cents e.g. 150 for R1.50

product_unit_name

string

How frequently the product is billed

product_subscription_start_date

date

When the subscription to the product is to start

branch

string

Branch account was recruited at

agent

string

Agent who recruited account

project

string

Project account was recruited under

physical_line_1

string

Physical address line 1

physical_line_2

string

Physical address line 2

physical_line_3

string

Physical address line 3

physical_line_4

string

Physical address line 4

physical_code

number

Physical postal code

postal_line_1

string

Postal address line 1

postal_line_2

string

Postal address line 2

postal_line_3

string

Postal address line 3

postal_line_4

string

Postal address line 4

postal_code

string

Postal code

is_marketing_sms

boolean

Can send sms marketing

is_marketing_email

boolean

Can send email marketing

is_marketing_phone

boolean

Can send phone marketing

is_blacklisted

boolean

Is the record flagged as blacklisted

municipality

string

Municipality associated with the region

region

string

Province/State associated with the person record

country

string

Country associated with the person record

notes

string

Notes with regards to the person

balance_open

number

Journal opening balance

reference_number

string

Reference provided when the API call was made

tax_reference

string

Tax reference number associated with the record

day_salary

number

Day of debit order run (0 - 31)

date_birth

date

Date of birth

created_at

date

When the record was created

date_balance_open

date

Date associated with opening balance

custom_fields

object

Optional custom fields associated with the record

unique_workflow_id

String

Unique ID associated with this workflow submission. Can be used to cancel a pending workflow item.

owner_admins_ids

array

List of admin owners for the record

visible_to

string

Which visibility group the record belongs to

deal_value

number

How much the deal is worth

deal_accounts_currencies

string

Currency associated with the deal value

deal_expected_close_date

date

When the deal is expected to close

companies

string

Name of the company this person is associated with

job_lookups

string

What kind of job does this person do

record_companies_id

string

Unique ID associated with the record

company_type

string

Type of company e.g. Non-profit (NPC)

company_name

string

Name of the company

is_active

boolean

If the company record is active

default_billing_day

number

Default billing day for the company

trading_as

string

Company registered trading name

registration_number

string

Company registration number

contact

string

Contact number for the company

mobile

string

Mobile number for the company

fax

string

Fax number for the company

website

string

Company website address

is_taxable

boolean

If the company is taxable or not

default_accounts_tax_id

string

Default account tax ID

description

string

Description associated with the company

social_facebook

string

Facebook URL

social_linkedin

string

Linkedin URL

social_instagram

string

Instagram URL

social_twitter

string

Twitter URL

social_pinterest

string

Pinterest URL

social_blog

string

Blog URL

social_whatsapp

string

Whatsapp number

social_telegram

string

Telegram number

web_referrer

string

Web referrer for this record

utm_campaign

string

UTM campaign parameter

utm_source

string

UTM source parameter

utm_medium

string

UTM medium parameter

utm_content

string

UTM content parameter

utm_term

string

UTM term parameter

billing_day

number

Billing day for the subscription

contact_name

string

Contact person name

contact_surname

string

Contact person surname

contact_ttitle

string

Contact person title

date_closed

date

Date company closed down

date_expire

date

Date this company record becomes invalid

Transactions

This API returns all transactions for a specific agent over a time period.

Path
/transactions

Request (GET)

All of the following query parameters must be provided.

Query ParameterData typeDescription
start_datedateOnly records created after or equal to this date will be considered
end_datedateOnly records before or equal to this date will be considered

Response (JSON)

Note: status code 400 will be returned if the date is not in an acceptable format; multiple formats are accepted but ‘YYYY-MM-DD’ is the recommended date format.

Data is returned as a JSON object in the following format:

{
  "status": true,
  "total": 5435,
  "records": [{
    "transaction_number": "de9f732d-17b7-4673-bcd4-97f9500c7852",
    "amount": "400.00",
    "status": "Paid",
    "transaction_date": "2023-07-31",
    "id_number": "4654665466",
    "company_name": null,
    "response_reason": "",
    "reference_number": "10767",
    "member_number": "445454",
    "workflow_reference": null
  }]
}

Transactions section

Field name

Data type

Description

transaction_number

string

Unique number

amount

number

Amount collected in Cents

status

string

Paid, Transaction Accepted, Disputed, Unpaid

transaction_date

timestamp

Bank account type

id_number

string

ID number of the person associated with the transaction

company_name

string

Name of the company associated with the transaction

response_reason

string

Reason why transaction failed

reference_number

string

Reference provided when the API call was made

member_number

string

Member number of company or people record

workflow_reference

string

Workflow reference number generated by Switch

Decline

This API call will provide for declining pending workflow items for the agent associated with the API key.

Path
/report/decline/:unique_workflow_id

Request (POST)

Empty body, the unique_workflow_id in the path is the ID provided in the response when submitting a workflow item

Response (JSON)

Data is returned as a JSON object in the following format with multiple sections:

{
  "status": true,
  "error": null
}
ParameterTypeDescription
statusbooleanTrue: decline successfully processed, False: an error occurred
errorstringDescription as to why item could not be declined (if rejected)

Copyright © 2024 SwitchTransact