Operations related to accounts.
Semify Enterprise REST APIs (2.0.0)
This is the documentation for the Semify Endpoints based on the OpenAPI 3.0 specification. You can find out more about Swagger at http://swagger.io.
https://developers.semify.com/_mock/openapi/
https://uat.services.semify.com/
https://services.semify.com/
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts
- Sandbox
https://uat.services.semify.com/api/v1/accounts
- Production Server
https://services.semify.com/api/v1/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.semify.com/_mock/openapi/api/v1/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_name": 12345,
"phone": "3361231234",
"email": "business@business.com",
"first_name": "First",
"last_name": "Last",
"address_1": "2307 West Cone Blvd.",
"address_2": "Suite 200",
"city": "Greensboro",
"state": "NC",
"postal": "27410",
"website_url": "https://www.semify.com",
"external_account_identifier": {
"field_name": "Great Plains ID",
"field_value": "TestAccount5555"
}
}'{ "data": { "account_id": 123456, "campaign_id": 987654 }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account successfully created" ] }
Account object update. The only required field is account_id. All excluded fields will not be changed from what is already stored. Passing empty strings will cause empty strings to be written into the database.
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts
- Sandbox
https://uat.services.semify.com/api/v1/accounts
- Production Server
https://services.semify.com/api/v1/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developers.semify.com/_mock/openapi/api/v1/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": 12345,
"account_name": "Semify",
"phone": "3361231234",
"email": "business@business.com",
"first_name": "First",
"last_name": "Last",
"address_1": "2307 West Cone Blvd.",
"address_2": "Suite 200",
"city": "Greensboro",
"state": "NC",
"postal": "27410",
"external_account_identifier": {
"field_name": "Great Plains ID",
"field_value": "TestAccount5555"
}
}'{ "data": {}, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account successfully updated" ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts
- Sandbox
https://uat.services.semify.com/api/v1/accounts
- Production Server
https://services.semify.com/api/v1/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developers.semify.com/_mock/openapi/api/v1/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Accounts successfully retrieved.
{ "data": [ { … } ], "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account Retreival Success" ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts/{account_id}
- Sandbox
https://uat.services.semify.com/api/v1/accounts/{account_id}
- Production Server
https://services.semify.com/api/v1/accounts/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.semify.com/_mock/openapi/api/v1/accounts/{account_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "data": { "account_name": "Business Name", "phone": "3361231234", "email": "business@business.com", "first_name": "First", "last_name": "Last", "address_1": "2307 West Cone Blvd.", "address_2": "Suite 200", "city": "Greensboro", "state": "NC", "zip": "27410", "website_url": "https://thebuisnessdomainname.com" }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 0 }, "messages": [ "Account created successfully." ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v2/accounts
- Sandbox
https://uat.services.semify.com/api/v2/accounts
- Production Server
https://services.semify.com/api/v2/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.semify.com/_mock/openapi/api/v2/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_name": "Semify",
"phone": "3361231234",
"email": "business@business.com",
"first_name": "First",
"last_name": "Last",
"address_1": "2307 West Cone Blvd.",
"address_2": "Suite 200",
"city": "Greensboro",
"state": "NC",
"postal": "27410",
"country_code": "US",
"website_url": "https://www.semify.com",
"external_account_identifier": "TestAccount5555",
"external_account_manager": {
"name": "Fnu Lnu",
"email": "fnulnu@yourdomain.com"
},
"external_campaign_manager": {
"name": "Fnu Lnu",
"email": "fnulnu@yourdomain.com"
},
"attributes": [
{
"field_name": "Approval Type",
"field_value": "Full"
},
{
"field_name": "Another Field",
"field_value": "Partial"
}
]
}'{ "data": { "account_id": "123456", "campaign_id": "987654" }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account successfully created" ] }
Account object update. The only required field is account_id. All excluded fields will not be changed from what is already stored. Passing empty strings will cause empty strings to be written into the database.
- Mock server
https://developers.semify.com/_mock/openapi/api/v2/accounts
- Sandbox
https://uat.services.semify.com/api/v2/accounts
- Production Server
https://services.semify.com/api/v2/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developers.semify.com/_mock/openapi/api/v2/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": 12345,
"account_name": "Semify",
"phone": "3361231234",
"email": "business@business.com",
"first_name": "First",
"last_name": "Last",
"address_1": "2307 West Cone Blvd.",
"address_2": "Suite 200",
"city": "Greensboro",
"state": "NC",
"postal": "27410",
"external_account_identifier": "TestAccount5555",
"external_account_manager": {
"name": "Fnu Lnu",
"email": "fnulnu@yourdomain.com"
},
"external_campaign_manager": {
"name": "Fnu Lnu",
"email": "fnulnu@yourdomain.com"
},
"attributes": [
{
"field_name": "Approval Type",
"field_value": "Full"
},
{
"field_name": "Another Field",
"field_value": "Partial"
}
]
}'{ "data": {}, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account successfully updated." ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v2/accounts
- Sandbox
https://uat.services.semify.com/api/v2/accounts
- Production Server
https://services.semify.com/api/v2/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developers.semify.com/_mock/openapi/api/v2/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "data": [ { … } ], "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account created successfully." ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v2/accounts/{account_id}
- Sandbox
https://uat.services.semify.com/api/v2/accounts/{account_id}
- Production Server
https://services.semify.com/api/v2/accounts/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.semify.com/_mock/openapi/api/v2/accounts/{account_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "data": { "attributes": [ … ], "status": "active", "account_id": 1234567, "campaign_id": 7654321, "phone": "1-888-266-6432", "postal": "14607", "state": "NY", "last_name": "Williams", "email": "info@semify.com", "first_name": "Joe", "account_name": "Semify", "external_account_manager": { … }, "external_campaign_manager": { … }, "city": "Rochester", "country": "USA", "address_1": "123 Elm Street", "address_2": "Suite B", "website_url": "https://www.semify.com" }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Account created successfully." ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts/iam/credentials
- Sandbox
https://uat.services.semify.com/api/v1/accounts/iam/credentials
- Production Server
https://services.semify.com/api/v1/accounts/iam/credentials
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.semify.com/_mock/openapi/api/v1/accounts/iam/credentials \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"reseller_account_id": 12345,
"account_id": 23456,
"campaign_id": 54321,
"credentials_types_id": 2,
"password": "passwordvalue",
"username": "usernamevalue",
"note": "https://www.semify.com"
}'{ "data": { "iam_credentials_id": 1 }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Successful account campaign iam credentials creation" ] }
- Mock server
https://developers.semify.com/_mock/openapi/api/v1/accounts/status
- Sandbox
https://uat.services.semify.com/api/v1/accounts/status
- Production Server
https://services.semify.com/api/v1/accounts/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developers.semify.com/_mock/openapi/api/v1/accounts/status \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": 12345,
"status": "reactivate/deactivate"
}'{ "data": { "account_id": 12345, "campaign_id": 54321, "status": "activated", "task_id": 8989888 }, "error": false, "pagination": { "totalPages": 1, "maxRows": 0, "offset": 0, "page": 1, "totalRecords": 1 }, "messages": [ "Missing parameter" ] }