Push data
Create a new business linked
post
Authorizations
X-API-KeystringRequired
API key needed to access the endpoints
Body
apikeystringOptional
appidstringOptional
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/business
POST /api/push/business HTTP/1.1
Host: test.connect.stub.africa
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 221
{
"apikey": "text",
"appid": "text",
"data": {
"businessname": "text",
"firstname": "text",
"lastname": "text",
"industry": "text",
"phone": "text",
"vatregistered": true,
"region": "text",
"email": "text"
},
"webhook": "text",
"signature": "text"
}No content
Update business information
post
Authorizations
X-API-KeystringRequired
API key needed to access the endpoints
Body
apikeystringOptional
appidstringOptional
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/business/update
POST /api/push/business/update HTTP/1.1
Host: test.connect.stub.africa
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 234
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"businessname": "text",
"firstname": "text",
"lastname": "text",
"industry": "text",
"phone": "text",
"vatregistered": true,
"region": "text",
"email": "text"
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously record income
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/income
POST /api/push/income HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 233
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"id": "text",
"date": "text",
"name": "text",
"category": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1,
"productid": "text",
"feeid": "text"
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously record an expense
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/expense
POST /api/push/expense HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"id": "text",
"date": "text",
"name": "text",
"category": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously record a sale
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/sale
POST /api/push/sale HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 523
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"id": "text",
"payment": {
"id": "text",
"date": "text",
"name": "text",
"category": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1
},
"items": [
{
"id": "text",
"name": "text",
"description": "text",
"price": 1,
"quantity": 1,
"cost": 1,
"costcurrency": "ZAR"
}
],
"customer": {
"id": "text",
"name": "text",
"email": "text",
"address": "text",
"address2": "text",
"suburb": "text",
"city": "text",
"postalcode": "text",
"country": "text",
"vatnumber": "text",
"registrationnumber": "text"
}
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously record multiple income and expenses
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/many
POST /api/push/many HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 370
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"income": [
{
"id": "text",
"date": "text",
"name": "text",
"category": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1,
"productid": "text",
"feeid": "text"
}
],
"expenses": [
{
"id": "text",
"date": "text",
"name": "text",
"category": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1
}
]
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously push settlement data
post
Authorizations
X-API-KeystringRequired
API key needed to access the endpoints
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/settlement
POST /api/push/settlement HTTP/1.1
Host: test.connect.stub.africa
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 419
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": [
{
"income": [
{
"id": "text",
"date": "text",
"name": "text",
"accountid": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1,
"productid": "text"
}
],
"expenses": [
{
"id": "text",
"date": "text",
"name": "text",
"accountid": "text",
"notes": "text",
"currency": "ZAR",
"amount": 1,
"vat": 1
}
],
"settlement": {
"id": "text",
"amount": 1,
"fee": 1,
"date": "text"
}
}
],
"webhook": "text",
"signature": "text"
}No content
Asynchronously push settlement data using a file
post
Authorizations
X-API-KeystringRequired
API key needed to access the endpoints
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/settlement-file
POST /api/push/settlement-file HTTP/1.1
Host: test.connect.stub.africa
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"url": "text",
"date": "text"
},
"webhook": "text",
"signature": "text"
}No content
Web hook responses on settlements
Asynchronously continue a subscription
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/subscription
POST /api/push/subscription HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"id": "text",
"date": "text",
"amount": 1
},
"webhook": "text",
"signature": "text"
}No content
Asynchronously cancel a subscription
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
webhookstringOptional
signaturestringOptional
Responses
200Success
No content
400Error
401Error
post/api/push/cancellation
POST /api/push/cancellation HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"apikey": "text",
"appid": "text",
"uid": "text",
"data": {
"date": "text"
},
"webhook": "text",
"signature": "text"
}No content
Reset all transactional test data
post
Body
apikeystringRequired
appidstringRequired
uidstringRequired
Responses
200Success
No content
400Error
401Error
post/api/push/reset
POST /api/push/reset HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"apikey": "text",
"appid": "text",
"uid": "text"
}No content
Last updated
