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.

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.

EndpointWhat the response confirmsWhen to use it
POST /v3/transactions/asyncSoluCX 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/syncSoluCX 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.

Before you start

Credentials

Every request needs two credentials:

  • Account key, in the x-solucx-api-key header.
  • User token, in the x-solucx-user-token header.

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].

Host and headers

Base URL: https://public-api.gke-prd.solucx.com.br

HeaderRequiredValue
x-solucx-api-keyYesYour account key
x-solucx-user-tokenYes, or use the token parameterUser token
Content-TypeYesapplication/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.

cURL
JavaScript
Python
curl -X POST 'https://public-api.gke-prd.solucx.com.br/v3/transactions/sync' \
  -H 'x-solucx-api-key: YOUR_API_KEY' \
  -H 'x-solucx-user-token: YOUR_USER_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "transaction": {
      "externalId": "ORDER-2026-000123",
      "journeySlug": "post-purchase",
      "surveySlug": "nps-post-purchase"
    },
    "customer": {
      "externalId": "CUST-98765",
      "name": "Ana Souza",
      "email": "[email protected]",
      "phone": "+5511988887777"
    }
  }'

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.

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.

{
  "transaction": {
    "externalId": "ORDER-2026-000123",
    "journeyId": "3f9a2c1e-7b4d-4e8a-9c2f-1a5b6d7e8f90",
    "surveyId": "8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
    "experienceDate": "2026-10-27 14:30:00",
    "price": 259.9,
    "additional": {
      "sales_channel": "physical_store",
      "payment_method": "card"
    }
  },
  "customer": {
    "externalId": "CUST-98765",
    "name": "Ana Souza",
    "document": "12345678909",
    "email": "[email protected]",
    "phone": "+5511988887777",
    "additionalPhone": "(11) 3333-4444",
    "gender": "f",
    "isRecurrent": true
  },
  "store": {
    "externalId": "STORE-SP-001",
    "tradeName": "Downtown Store",
    "companyName": "Example Retail Ltd"
  },
  "employee": {
    "externalId": "SALES-042",
    "name": "Carlos Lima"
  }
}

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

transactionrequiredobject
Transaction data.
transaction.externalIdstring
Your identifier for the transaction, such as the order, ticket or service number. Recommended. SoluCX uses this value to reject repeated transactions. If you do not send it, SoluCX generates a new UUID on every request. Empty text ("") is not accepted.
transaction.journeyIdstring (UUID)
Journey ID. Send journeyId or journeySlug. If you send both, SoluCX uses journeyId.
transaction.journeySlugstring
Journey slug, exactly as it was registered. Send journeyId or journeySlug.
transaction.surveyIdstring (UUID)
Survey ID. Send surveyId or surveySlug. If you send both, SoluCX uses surveyId.
transaction.surveySlugstring
Survey slug, exactly as it was registered. Send surveyId or surveySlug.
transaction.experienceDatestring (ISO 8601)
Date when the experience happened. Send it in Brasília time, without a time zone, or send only the date. Default: the moment SoluCX records the transaction. See Dates.
transaction.pricenumber
Transaction amount. Send it as a number, without quotes, with a dot as the decimal separator (e.g. 259.9). Default: 0.
transaction.additionalobject
Extra transaction information, as key and value pairs (e.g. {"sales_channel": "physical_store"}). It must be an object. A list ([...]) is rejected.

customer

customerrequiredobject
Customer data. Send at least one of these fields: id, externalId or name. See how SoluCX uses each one in Customers.
customer.idinteger
SoluCX internal ID for the customer. Integer greater than or equal to 1.
customer.externalIdstring
Your identifier for the customer, such as the code in your customer records system. Recommended.
customer.namestring
Customer name.
customer.documentstring
Customer document, such as the CPF (Brazilian taxpayer ID). SoluCX does not validate the format. The document is also used to find a customer who is already registered.
customer.emailstring
Customer email. It must be a valid email address. Leading and trailing spaces are removed.
customer.phonestring
Main phone number. See the rules in Phone numbers.
customer.additionalPhonestring
Additional phone number. It follows the same rules as phone. Empty text ("") is not accepted. If you do not have this data, do not send the field.
customer.genderstring
Accepted values: m, f and -. Use - when the gender was not provided. Uppercase letters are accepted and converted (F becomes f).
customer.isRecurrentboolean
Indicates that you know the customer has had previous experiences with your company. Send true or false. A value that SoluCX does not recognize as true becomes false.

store

storeobject
Store where the experience happened, such as a shop, bank branch, clinic or office. Optional. If you send store, send id or externalId. Without store, SoluCX uses the account's default store. See Stores.
store.idinteger
SoluCX internal ID for the store. Integer greater than or equal to 0.
store.externalIdstring
Your code for the store.
store.tradeNamestring
Store trade name.
store.companyNamestring
Store legal name.

employee

employeeobject
Employee who served the customer, such as a salesperson, manager or doctor. Optional. If you send employee, send id or externalId. Without employee, SoluCX uses the account's default employee. See Employees.
employee.idinteger
SoluCX internal ID for the employee. Integer greater than or equal to 0.
employee.externalIdstring
Your code for the employee, such as the staff number.
employee.namestring
Employee name.

rating

ratingobject
A rating you have already collected. Optional. When you send rating, the transaction is recorded as rated and SoluCX does not send a survey. See Survey dispatch.
rating.scorerequiredinteger
Required when you send 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.channelrequiredstring
Required when you send rating. Channel the customer used to answer. Use a value from the Channels list, in lowercase.
rating.rateDatestring (ISO 8601)
Date and time of the answer, with time zone (see Dates). Any past date is accepted. It cannot be more than 1 day after the time of the request. Default: the moment SoluCX records the transaction.
rating.commentstring
Customer comment. Empty text ("") is not accepted.
rating.driversarray<object>
Scores per driver. Each item has driverId and score.
rating.drivers[].driverIdrequiredinteger
Required in each item. Driver ID, greater than or equal to 1. The driver must be active and linked to the transaction's survey.
rating.drivers[].scorerequiredinteger
Required in each item. Driver score, greater than or equal to 0, within the scale of the driver's indicator.

Survey dispatch options

ignoreDispatchboolean
Send true to create the transaction without sending a survey to the customer. Default: false.
forceAttemptboolean
Send 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:

  1. SoluCX removes every character that is not a digit or +.
  2. If the number does not start with +, SoluCX adds +55 (Brazil) at the start.
  3. The result must be a valid phone number. If it is not, the API responds 400.
You sendSoluCX uses
+5511988887777+5511988887777
(11) 98888-7777+5511988887777
11988887777+5511988887777
+44 20 7946 0958+442079460958
98888-7777Error 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.

IndicatorValid scores
NPS, eNPS0 to 10
CSAT100 to 10
CSAT, eSAT1 to 5
NSS1 to 5
CES, CES2, EES1 to 7
Like/Dislike0 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 storeWhat SoluCX does
Nothing (no store)Uses the account's default store.
id of a registered storeUses that store.
id that does not existUses the account's default store.
externalId of a registered storeUses that store.
externalId that does not existCreates a store with that externalId. Without tradeName or companyName, it uses the externalId as the name.
id and externalIdUses 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 employeeWhat SoluCX does
Nothing (no employee)Uses the account's default employee.
id of a registered employeeUses that employee.
id that does not existUses the account's default employee.
externalId of a registered employeeUses that employee.
externalId that does not existCreates an employee with that externalId. Without name, it uses the externalId as the name.
id and externalIdUses 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 customerWhat SoluCX does
idLooks 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 idLooks up by externalId. If not found, looks up by document. If still not found, creates a new customer.
document and name, without id or externalIdLooks up by document. If not found, creates a new customer.
Only name and contact detailsCreates a new customer on every request.

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:

SituationIs the survey sent?
The request has no ratingYes. SoluCX requests the dispatch through the channels configured for the survey in your account.
The request has ratingNo. The transaction is recorded as rated (isRated: true).
ignoreDispatch: trueNo.

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:

RuleWith 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 configuredIgnored
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 configuredIgnored
The same contact already received this survey, through the same channel, on the same dayIgnored
Contact or email domain on your account's block list, set up in the platform under Configurations > BlocksIgnored
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;
  • gender in lowercase;
  • transaction.externalId generated, if you did not send one.

Example response for a request without externalId, with the phone number (11) 98888-7777:

{
  "transaction": {
    "externalId": "0b6f3c2a-9d41-4e7b-8a35-2c9e1f7d4a60",
    "journeySlug": "post-purchase",
    "surveySlug": "nps-post-purchase"
  },
  "customer": {
    "externalId": "CUST-98765",
    "name": "Ana Souza",
    "phone": "+5511988887777"
  }
}

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:

{
  "transaction": { "id": 1048576, "externalId": "ORDER-2026-000123", "isRated": false },
  "journey": { "id": "3f9a2c1e-7b4d-4e8a-9c2f-1a5b6d7e8f90", "slug": "post-purchase" },
  "survey": { "id": "8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f", "slug": "nps-post-purchase" },
  "customer": { "id": 52031, "externalId": "CUST-98765", "name": "Ana Souza" },
  "store": { "id": 9999, "isDefault": true },
  "employee": { "id": 1, "isDefault": true }
}

The fields you will use most:

FieldDescription
transaction.idSoluCX internal ID for the transaction.
transaction.externalIdYour externalId, or the UUID generated by SoluCX.
transaction.isRatedtrue when the request contained rating.
journey.id, journey.slugJourney used.
survey.id, survey.slugSurvey used.
customer.id, customer.externalIdCustomer used or created.
store.id, store.externalIdStore used or created.
store.isDefaultAppears as true when SoluCX used the default store.
employee.id, employee.externalIdEmployee used or created.
employee.isDefaultAppears as true when SoluCX used the default employee.

The actual response has other fields besides these.

Errors

Errors have this format:

{
  "message": "survey_not_active",
  "error": "Bad Request",
  "statusCode": 400
}

In validation errors (400 on both endpoints), message is a list with one message per problem, including the field path:

{
  "message": [
    "customer.phone must be a valid phone number",
    "transaction.(Either surveyId,surveySlug must be provided)"
  ],
  "error": "Bad Request",
  "statusCode": 400
}
StatusmessageEndpointCauseWhat to do
400List of messages (or a text, for malformed JSON)BothA field is missing, has the wrong type or has an invalid value. Also for malformed JSON.Fix the indicated fields and send again.
401Instance not foundBothThe x-solucx-api-key does not match any account.Check the key.
403user_not_authorizedBothMissing or invalid token, token from another account, or user without permission to access the public API.Check the token and the user's permission.
403This instance is not eligible for that API version. Migration required.BothThe 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.
413Request body is too largeBothThe 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.
415Unsupported Media Type: ...BothThe Content-Type is not accepted.Send Content-Type: application/json.
400journey_and_survey_not_linkedSyncThe survey is not linked to the journey.Check the journey and survey pair. After linking them, wait up to 1 minute.
400survey_not_activeSyncThe survey is inactive.Activate the survey or use another one.
400store_not_activeSyncThe store is inactive. It can be the default store, when you do not send store.Activate the store or send another one.
400invalid_classSyncA driverId is not linked to the survey or is inactive.Check the survey's drivers.
400invalid_rating_item_scoreSyncA driver score is outside the scale of its indicator.Check the Score scales.
404journey_not_foundSyncThe journey does not exist in your account.Check the journeyId or journeySlug.
404survey_not_foundSyncThe survey does not exist in your account.Check the surveyId or surveySlug.
404customer_not_foundSyncThe customer.id does not exist and the document did not match any customer.Check the id, or send externalId instead.
409transaction_already_existSyncA transaction with this transaction.externalId already exists.Do not send it again. The transaction already exists.
409duplicate_entrySyncAnother request saved the same store, employee or customer at the same time.Send the same request again.
500Internal server errorBothUnexpected 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 sync endpoint, the response is 409 with transaction_already_exist;
  • on the async endpoint, the response is 201, 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.