Discussions

Ask a Question
Back to All

Facing issue to find transaction records

I successfully created a transaction using the JUSTT AI transactions API. The API responded with a 201 status, confirming the creation of the transaction and providing a transaction ID. However, when I attempt to retrieve or update this transaction using the provided ID, I encounter a 400 Bad Request error with the following message:

{
"status": 400,
"message": "an unknown value was passed to the validate function",
"errorId": "dec2ae48-3ef1-4c1b-94d4-365d392a1bac"
}


Steps Taken:

Created a transaction with the following details:

curl --location --request POST 'https://api.justt.ai/v1/transactions'
--header 'accept: application/json'
--header 'authorization: Bearer <API_TOKEN>'
--header 'content-type: application/json'
--data-raw '{
"transactionAmount": 149.99,
"transactionOrderCreatedDate": "2022-03-15T09:39:24.514Z",
"transactionId": "QRZ54SXB4K6TF232",
"transactionIndustryDeliveryIsUpdateBySms": false
}'

Received a successful response:
{
"status": 201,
"message": "success",
"id": "QRZ54SXB4K6TF232"
}

Attempted to update the transaction using the provided ID with the following request:

curl --location --request PATCH 'https://api.justt.ai/v1/transactions/QRZ54SXB4K6TF232'
--header 'accept: application/json'
--header 'authorization: Bearer <API_TOKEN>'
--header 'content-type: application/json'
--data-raw '{
"transactionAmount": 10,
"transactionIndustryDeliveryIsUpdateBySms": false
}'

Encountered the following error:

{
"status": 400,
"message": "an unknown value was passed to the validate function",
"errorId": "dec2ae48-3ef1-4c1b-94d4-365d392a1bac"
}

I need help understanding why this error occurs when trying to retrieve or update a transaction using a valid transaction ID. Any guidance on resolving this issue would be appreciated.