Operations related to authentication tokens
- Unsuspend a Customer
DealPOS API (3.1.0)
Request
Suspend a Customer by their ID, Code, Email, & Phone. You can choose ONE of those options because those options have this hierarchy tier:
- ID
- Code
- Phone
If ID is not found, we will search for the Code, and so on base on those hierarchy
You must have "EDIT" role in "Contacts" Module OR "EDIT" role in "Global" Module
- Production Serverhttps://subdomain.dealpos.net/api/v3/Customer/Suspend
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Customer/Suspend \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "c27bfb13-4936-43e5-bd7d-410dc8d041c2",
"Code": "HWCISAP",
"Email": "hendryw@gmail.com",
"Phone": "0216892235"
}'{
"Message": "The contact has been successfully suspended."
}Request
Unsuspend a Customer by their ID, Code, Email, & Phone. You can choose ONE of those options because those options have this hierarchy tier:
- ID
- Code
- Phone
If ID is not found, we will search for the Code, and so on base on those hierarchy
You must have "EDIT" role in "Contacts" Module OR "EDIT" role in "Global" Module
- Production Serverhttps://subdomain.dealpos.net/api/v3/Customer/Unsuspend
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Customer/Unsuspend \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "c27bfb13-4936-43e5-bd7d-410dc8d041c2",
"Code": "HWCISAP",
"Email": "hendryw@gmail.com",
"Phone": "0216892235"
}'{
"Message": "The contact has been successfully unsuspended."
}Request
This API is only working if you use Customer Code Generator (auto increment customer code Learn more Here).
With this API, you can get the Next Customer code that the generator could assign. For example, the last customer code existed is MM-003, the API will return "MM-004" as the response.
- Production Serverhttps://subdomain.dealpos.net/api/v3/Customer/NewCode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Customer/NewCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "Message": "The contact has been successfully suspended." }