cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question about Incentive Management K8s APIs

Ron_Hagan
Product and Topic Expert
Product and Topic Expert
0 Likes
699

In the SalesTransaction API, when I'm POSTing a new Transaction, I don't see any reference to Reason or reasonId or reasonCode or anything remotely like that.

How do I add the Reason Code into the body of the POST request?

Thanks in advance!

Ron

Accepted Solutions (1)

Accepted Solutions (1)

Amrit_Hothi
Advisor
Advisor
0 Likes

Hi Ron,

In the post body you should add the following attribute:

    "reason": {
      "reasonId": "AUTOAutRsnCd1c08834106"
    }
and the response you get back for SalesTransaction, you should see:

"reason": { "reasonId": "AUTOAutRsnCd1c08834106", "dataTypeSeq": "17732923534996695", "notAllowUpdate": false, "createdBy": "Automation", "modifiedBy": null, "tenantId": "AUT1", "removeDate": "2200-01-01T00:00:00.000+00:00", "createDate": "2024-07-10T16:48:54.175+00:00", "reasonSeq": "17732923534996695" },

 

Ron_Hagan
Product and Topic Expert
Product and Topic Expert
0 Likes
Thank you, Amrit! For some reason, in the API documentation, "reason" isn't listed in the Example Values. I'll try that!
Amrit_Hothi
Advisor
Advisor
0 Likes
Hi Ron, we'll add this in our next update to api docs.

Answers (0)