Transaction V3
Use the Transaction V3 API to record in SoluCX an experience your customer had with your company. It can be a purchase in a store, a visit to a bank branch, or an appointment at a clinic.
For each transaction, SoluCX can send a survey to the customer. If you have already collected the customer's rating, send the rating with the transaction. In that case, SoluCX records the transaction as rated.
V3 works only for accounts that use the new SoluCX journeys and surveys system. For other accounts, the API responds 403 with the message This instance is not eligible for that API version. Migration required. To find out whether your account can use V3, contact SoluCX.
Which endpoint to use
V3 has two endpoints. Both accept the same body and validate the fields in the same way. They differ in what the response confirms.
| Endpoint | What the response confirms | When to use it |
|---|---|---|
POST /v3/transactions/async | SoluCX received the request and put it in the queue. The transaction is created later. | High-volume sending, when your system does not need the result right away. |
POST /v3/transactions/sync | SoluCX created the transaction. The response contains the created data or the error that prevented the creation. | When you need to confirm the creation or store the transaction ID. Also use it while you test your integration. |
On the async endpoint, the 201 response means the request was received. It does not guarantee that the transaction was created. If processing fails because of a temporary problem, SoluCX retries it automatically. For business-rule errors, SoluCX does not retry, and the error is not returned to you. Examples: survey not linked to the journey, inactive store, invalid driver, customer not found, repeated externalId. When you need confirmation, use the sync endpoint.
Before you start
Credentials
Every request needs two credentials:
- Account key, in the
x-solucx-api-keyheader. - User token, in the
x-solucx-user-tokenheader.
The token's user must belong to the key's account and have permission to access the public API. Without this permission, the API responds 403 with the message user_not_authorized.
To get your credentials and permission to access the public API, contact support at [email protected].
Keep your credentials in a safe place. Do not put them in code that runs in your customer's browser or app, or in public repositories.
Host and headers
Base URL: https://public-api.gke-prd.solucx.com.br
| Header | Required | Value |
|---|---|---|
x-solucx-api-key | Yes | Your account key |
x-solucx-user-token | Yes, or use the token parameter | User token |
Content-Type | Yes | application/json |
Journey, survey and drivers
Each transaction belongs to a journey and a survey. The survey must be linked to the journey. You identify each one by its ID (a code in UUID format, such as 3f9a2c1e-7b4d-4e8a-9c2f-1a5b6d7e8f90) or by its slug (the short text name, such as post-purchase).
Drivers are the items the customer rates with their own score inside the survey. To send a driver's score, you use the driver's numeric ID.
Use the values registered in your SoluCX account. Send each slug exactly as it was registered. You can find these values in the SoluCX platform: journeys in Journey Management > Journeys, surveys in Journey Management > Surveys and drivers in Journey Management > Motivators. The concepts of journey, survey, store and employee are in the glossary.
Quick start
This example creates a purchase transaction and requests that the survey be sent to the customer. Replace the credentials, slugs and customer data with your own.
If everything is correct, you get 201 with the data of the created transaction. See the format in Responses.
To use the asynchronous endpoint, replace /sync with /async in the URL. The body is the same.
The required minimum: transaction with journeyId or journeySlug and with surveyId or surveySlug, and customer with id, externalId or name. All other fields are optional. Even so, always send transaction.externalId. The reason is in Retries and duplicates.
Complete examples
Each example shows a different case. All of them work on both endpoints.
A purchase in a physical store, with store, salesperson and extra data. The transaction has no rating, so SoluCX moves on to sending the survey.
Field reference
Fields marked as required must be present whenever their object is sent. transaction and customer are required in every request. In some objects, the rule is to send one field out of two or three. The field description says when that is the case.
Text fields do not accept empty text (""), except customer.email and customer.phone. If you do not have the data, do not send the field.
transaction
"") is not accepted. journeyId or journeySlug. If you send both, SoluCX uses journeyId. journeyId or journeySlug. surveyId or surveySlug. If you send both, SoluCX uses surveyId. surveyId or surveySlug. 259.9). Default: 0. {"sales_channel": "physical_store"}). It must be an object. A list ([...]) is rejected. customer
id, externalId or name. See how SoluCX uses each one in Customers. phone. Empty text ("") is not accepted. If you do not have this data, do not send the field. m, f and -. Use - when the gender was not provided. Uppercase letters are accepted and converted (F becomes f). true or false. A value that SoluCX does not recognize as true becomes false. store
store, send id or externalId. Without store, SoluCX uses the account's default store. See Stores. employee
employee, send id or externalId. Without employee, SoluCX uses the account's default employee. See Employees. rating
rating, the transaction is recorded as rated and SoluCX does not send a survey. See Survey dispatch. rating. Main score of the rating, greater than or equal to 0. Use the scale of the survey's indicator (see Score scales). A score outside the scale is accepted. SoluCX stores that score without a classification. rating. Channel the customer used to answer. Use a value from the Channels list, in lowercase. "") is not accepted. driverId and score. Survey dispatch options
true to create the transaction without sending a survey to the customer. Default: false. true to request the survey dispatch even if the customer is in quarantine. See what changes in Survey dispatch. Default: false. These two fields go at the root of the body, outside transaction. Send both as JSON booleans (true or false). The text "true" and the number 1 are rejected.
Phone numbers
These rules apply to customer.phone and customer.additionalPhone:
- SoluCX removes every character that is not a digit or
+. - If the number does not start with
+, SoluCX adds+55(Brazil) at the start. - The result must be a valid phone number. If it is not, the API responds
400.
| You send | SoluCX uses |
|---|---|
+5511988887777 | +5511988887777 |
(11) 98888-7777 | +5511988887777 |
11988887777 | +5511988887777 |
+44 20 7946 0958 | +442079460958 |
98888-7777 | Error 400, because the area code is missing |
For numbers outside Brazil, send the + and the country code.
Dates
transaction.experienceDate and rating.rateDate use the ISO 8601 format. Each field needs a different form, so that the date and time appear correctly in SoluCX:
transaction.experienceDate: send it in Brasília time, without a time zone (e.g.2026-10-27 14:30:00), or send only the date (2026-10-27).rating.rateDate: send the date, the time and the time zone (e.g.2026-10-27T14:30:00-03:00, or the same time in UTC,2026-10-27T17:30:00Z).
Dates sent as numbers (timestamps) are rejected.
Score scales
rating.score follows the scale of the survey's indicator. rating.drivers[].score follows the scale of each driver's indicator.
| Indicator | Valid scores |
|---|---|
| NPS, eNPS | 0 to 10 |
| CSAT10 | 0 to 10 |
| CSAT, eSAT | 1 to 5 |
| NSS | 1 to 5 |
| CES, CES2, EES | 1 to 7 |
| Like/Dislike | 0 to 1 |
Channels
Accepted values for rating.channel, always in lowercase:
email, sms, tablet, qrcode, push, ura, facebook, whatsapp, widget, employee, gmb, chatbot, workplace, portals, push_notification, google_play, app_store, application, external_source, social_network, instagram, tiktok, twitter, youtube, linkedin, glassdoor, booking, tripadvisor, reclame_aqui, consumidor_gov, bacen, procon, sac, chat, nfc, call_center, paid_survey, market_research, call, customer_service.
How SoluCX handles each record
Journey and survey
- The journey and the survey must exist in your account.
- The survey must be active.
- The survey must be linked to the journey.
- If you send both ID and slug, SoluCX uses the ID.
- After you activate a survey or link a survey to a journey, wait up to 1 minute before sending transactions with it.
Stores
What you send in store | What SoluCX does |
|---|---|
Nothing (no store) | Uses the account's default store. |
id of a registered store | Uses that store. |
id that does not exist | Uses the account's default store. |
externalId of a registered store | Uses that store. |
externalId that does not exist | Creates a store with that externalId. Without tradeName or companyName, it uses the externalId as the name. |
id and externalId | Uses the id and ignores the externalId. |
When the store already exists, SoluCX updates tradeName and companyName if you send values different from the registered ones. The default store is never changed.
The store must be active. This also applies to the default store. If it is inactive, the transaction is not created.
Employees
What you send in employee | What SoluCX does |
|---|---|
Nothing (no employee) | Uses the account's default employee. |
id of a registered employee | Uses that employee. |
id that does not exist | Uses the account's default employee. |
externalId of a registered employee | Uses that employee. |
externalId that does not exist | Creates an employee with that externalId. Without name, it uses the externalId as the name. |
id and externalId | Uses the id and ignores the externalId. |
When the employee already exists, SoluCX updates name if you send a value different from the registered one. The default employee is never changed.
Customers
SoluCX looks up the customer by the first filled-in field, in this order: id, externalId, document. name is not used in the lookup.
What you send in customer | What SoluCX does |
|---|---|
id | Looks up by id. If not found, looks up by document. If still not found, the transaction is not created (error customer_not_found). |
externalId, without id | Looks up by externalId. If not found, looks up by document. If still not found, creates a new customer. |
document and name, without id or externalId | Looks up by document. If not found, creates a new customer. |
Only name and contact details | Creates a new customer on every request. |
Without id, externalId or document, SoluCX has no way to recognize a customer who is already registered. So each such request creates a new customer, even with the same name, email and phone. To link transactions to the same customer, send customer.externalId or customer.id.
When the customer already exists, SoluCX updates name, email, phone, additionalPhone and gender if you send values different from the registered ones. document is never changed. An empty or missing field does not erase the registered data.
Survey dispatch
After creating the transaction, SoluCX decides whether to request the survey dispatch:
| Situation | Is the survey sent? |
|---|---|
The request has no rating | Yes. SoluCX requests the dispatch through the channels configured for the survey in your account. |
The request has rating | No. The transaction is recorded as rated (isRated: true). |
ignoreDispatch: true | No. |
The transaction is treated as rated when the request itself contains rating. This holds even when rating.score is outside the indicator's scale. In that case, the score is stored without a classification, and the survey is not sent.
Dispatch blocks and forceAttempt
Before sending, SoluCX checks blocking rules. With forceAttempt: true, some of these rules no longer apply to the transaction:
| Rule | With forceAttempt: true |
|---|---|
| Dispatch quarantine: the customer received a survey from the same journey (or the same survey, when the survey has its own quarantine) fewer days ago than configured | Ignored |
| Response quarantine: the customer answered a survey from the same journey (or the same survey, when the survey has its own quarantine) fewer days ago than configured | Ignored |
| The same contact already received this survey, through the same channel, on the same day | Ignored |
| Contact or email domain on your account's block list, set up in the platform under Configurations > Blocks | Ignored |
| The customer asked not to receive surveys (opt-out) | Still applies |
| The customer has no valid contact for the channel (email or phone) | Still applies |
forceAttempt has no effect when the request has rating or ignoreDispatch: true, because in those cases there is no dispatch.
Responses
Async endpoint
The 201 response means SoluCX received the request and put it in the queue. The body repeats the data you sent, with these adjustments:
- phone numbers in the
+country code format; - email without leading and trailing spaces;
genderin lowercase;transaction.externalIdgenerated, if you did not send one.
Example response for a request without externalId, with the phone number (11) 98888-7777:
Other fields may appear in the response.
Sync endpoint
The 201 response means SoluCX created the transaction. The body contains the records SoluCX used or created. Example for the Quick start, without store and without employee:
The fields you will use most:
| Field | Description |
|---|---|
transaction.id | SoluCX internal ID for the transaction. |
transaction.externalId | Your externalId, or the UUID generated by SoluCX. |
transaction.isRated | true when the request contained rating. |
journey.id, journey.slug | Journey used. |
survey.id, survey.slug | Survey used. |
customer.id, customer.externalId | Customer used or created. |
store.id, store.externalId | Store used or created. |
store.isDefault | Appears as true when SoluCX used the default store. |
employee.id, employee.externalId | Employee used or created. |
employee.isDefault | Appears as true when SoluCX used the default employee. |
The actual response has other fields besides these.
Errors
Errors have this format:
In validation errors (400 on both endpoints), message is a list with one message per problem, including the field path:
| Status | message | Endpoint | Cause | What to do |
|---|---|---|---|---|
400 | List of messages (or a text, for malformed JSON) | Both | A field is missing, has the wrong type or has an invalid value. Also for malformed JSON. | Fix the indicated fields and send again. |
401 | Instance not found | Both | The x-solucx-api-key does not match any account. | Check the key. |
403 | user_not_authorized | Both | Missing or invalid token, token from another account, or user without permission to access the public API. | Check the token and the user's permission. |
403 | This instance is not eligible for that API version. Migration required. | Both | The account does not use the new journeys and surveys system. | Contact SoluCX. If SoluCX has just enabled V3 for your account, wait 5 minutes and try again. |
413 | Request body is too large | Both | The body is larger than 1 MB. On the sync endpoint, the limit is about 500 KB. | Reduce the body, for example the content of additional. |
415 | Unsupported Media Type: ... | Both | The Content-Type is not accepted. | Send Content-Type: application/json. |
400 | journey_and_survey_not_linked | Sync | The survey is not linked to the journey. | Check the journey and survey pair. After linking them, wait up to 1 minute. |
400 | survey_not_active | Sync | The survey is inactive. | Activate the survey or use another one. |
400 | store_not_active | Sync | The store is inactive. It can be the default store, when you do not send store. | Activate the store or send another one. |
400 | invalid_class | Sync | A driverId is not linked to the survey or is inactive. | Check the survey's drivers. |
400 | invalid_rating_item_score | Sync | A driver score is outside the scale of its indicator. | Check the Score scales. |
404 | journey_not_found | Sync | The journey does not exist in your account. | Check the journeyId or journeySlug. |
404 | survey_not_found | Sync | The survey does not exist in your account. | Check the surveyId or surveySlug. |
404 | customer_not_found | Sync | The customer.id does not exist and the document did not match any customer. | Check the id, or send externalId instead. |
409 | transaction_already_exist | Sync | A transaction with this transaction.externalId already exists. | Do not send it again. The transaction already exists. |
409 | duplicate_entry | Sync | Another request saved the same store, employee or customer at the same time. | Send the same request again. |
500 | Internal server error | Both | Unexpected error. | Send the same request again, with the same externalId. If the error continues, contact SoluCX. |
On the async endpoint, processing errors (the rows marked Sync) are not returned to you. Except for duplicate_entry, these errors prevent the transaction from being created, and SoluCX does not retry. When the failure is duplicate_entry or another temporary problem, SoluCX processes the request again automatically.
Retries and duplicates
SoluCX identifies a repeated transaction by transaction.externalId. If your account already has a transaction with the same externalId, the new one is not created:
- on the
syncendpoint, the response is409withtransaction_already_exist; - on the
asyncendpoint, the response is201, and the repeated transaction is not created.
If you do not send externalId, SoluCX generates a different UUID on every request. So, if you resend the same transaction, SoluCX creates a second transaction. For this reason, always send your own externalId, with a value that identifies the transaction in your system.
If a request fails because of a network error, a timeout or a 500, send the same request again, with the same externalId.
FAQ
How do I know whether a transaction sent to the async endpoint was created?
The V3 endpoints do not report the result of asynchronous processing. When the failure is temporary, SoluCX processes the request again automatically. A business-rule error prevents the creation without notice. If you need this confirmation, use the sync endpoint.
The survey did not reach the customer. What should I check?
Check whether the request contained rating or ignoreDispatch: true. Check whether the customer has a valid email or phone number and whether they asked not to receive surveys. Also check the quarantine rules of the journey and the survey. If you use the async endpoint, the transaction may not have been created because of a processing error. See the possible causes in Errors.
I already use Transaction V2. What changes in V3?
V3 requires the survey (surveyId or surveySlug) in addition to the journey. journeyId and surveyId are UUIDs. Scores per item go in rating.drivers, with driverId. V3 also has the sync endpoint and the ignoreDispatch option.