Totalwash
The totalwash cash register integration endpoints allow you to manage your integration.
List integrations
This endpoint allows you to get a list of all enabled Totalwash integrations for an organization.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.get
- Type
- string
- Description
The scope required to access this endpoint.
Query parameters
- Name
organization_id
- Type
- string|Required
- Description
The organization id to get the integrations for.
Request
curl -X GET https://api.walletapp.co/totalwash
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
-d '{
"organization_id": "<organization_id>"
}'
Response
{
"success": true,
"data": [
{
"name": "<name>",
"uuid": "<uuid>",
"public": "<public>",
"secret": "<secret>",
"url": "<endpoint>",
"integration_key": "<current_active_auth_key>",
"expires_at": "<timestamp>"
},
...
]
}
Enable an integration
Enable a specific totalwash integration
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Body parameters
- Name
organization_id
- Type
- string|Required
- Description
The organization id to get the integrations for.
- Name
public
- Type
- string|Required
- Description
The public key of the integration.
- Name
secret
- Type
- string|Required
- Description
The secret key of the integration.
- Name
endpoint
- Type
- string|Required
- Description
The endpoint of the integration.
- Name
title
- Type
- string|Required
- Description
The title of the integration.
Request
curl -X POST https://api.walletapp.co/totalwash
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
-d '{
"organization_id": "<organization_id>",
"public": "<public>",
"secret": "<secret>",
"endpoint": "<endpoint>",
"title": "<title>"
}'
Response
{
"success": true,
"message": "Integration added as new totalwash integration"
}
Inspect an integration
Fetch a specific integration.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
Request
curl -X GET https://api.walletapp.co/totalwash/:uuid
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"success": true,
"data": {
"name": "<name>",
"uuid": "<uuid>",
"public": "<public>",
"secret": "<secret>",
"url": "<endpoint>",
"integration_key": "<current_active_auth_key>",
"expires_at": "<timestamp>"
}
}
Remove an integration
Fetch a specific integration.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
Request
curl -X get https://api.walletapp.co/totalwash/:uuid
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"success": true,
"message": "Integration deleted"
}
Voucher codes
Fetch the list of active voucher codes.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
Request
curl -X GET https://api.walletapp.co/totalwash/:uuid/vouchercodes
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"success": true,
"data": [
{
"code": "<code>",
"title": "<title>",
"organization": {
"identifier": "<organization_id>",
"name": "<organization_name>"
}
}
]
}
Add voucher code
Add a voucher code to the integration
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
Body parameters
- Name
title
- Type
- string|Required
- Description
The title of the voucher code
- Name
code
- Type
- string|Required
- Description
The totalwash voucher code
Request
curl -X POST https://api.walletapp.co/totalwash/:uuid/vouchercodes
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
-d '{
"title": "<title>",
"code": "<code>"
}'
Response
{
"success": true,
"data": {
"code": "<code>",
"title": "<title>",
"organization": {
"identifier": "<organization_id>",
"name": "<organization_name>"
}
}
}
Inspect an voucher code
Get a specific voucher code.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
- Name
code
- Type
- string|Required
- Description
The code that you want to inspect
Request
curl -X GET https://api.walletapp.co/totalwash/:uuid/vouchercodes/:code
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"success": true,
"data": {
"code": "<code>",
"title": "<title>",
"organization": {
"identifier": "<organization_id>",
"name": "<organization_name>"
}
}
}
Remove a voucher code
Remove a specific voucher code.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
- Name
code
- Type
- string|Required
- Description
The code that you want to inspect
Request
curl -X get https://api.walletapp.co/totalwash/:uuid/vouchercodes/:code
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"success": true,
"message": "Voucher code deleted"
}
Totalwash members
Fetch the relation data between totalwash and walletapp members.
Keep in mind that the data that will be returned can vary based on the version of the integration on the totalwash side of things.
Required headers
- Name
Authorization
- Type
- string
- Description
The token itself as a bearer token.
Abilities
- Name
totalwash.store
- Type
- string
- Description
The scope required to access this endpoint.
Route parameters
- Name
uuid
- Type
- string|Required
- Description
The uuid of the integration.
Request
curl -X GET https://api.walletapp.co/totalwash/:uuid/members
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer <your_token>"
Response
{
"message": "Request successful",
"data": [
{
"card_number": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"street": "<string>",
"house_number": "<string>",
"postal_code": "<string>",
"city": "<string>",
"birth_date": "<string>",
"licenseplate": "<string>",
"last_visited": "<timestamp>",
"last_visited_location": "<location_title>",
"marketing": "<boolean>",
"subscription": "<boolean>",
"totalwash_customer_id": "<integer>",
"totalwash_personal_customer_id": "<integer>",
"walletapp_id": "<walletapp_uuid>"
},
]
}