We are trying to use this api call to create a PDSR record sxapipdrebatemnt
This call works perfectly and creates the record if I don't put in a "custrebty" field. Here is my current payload that works. I know my rebate type exist but when I try and put that in no record shows up with no error. Has anybody ever seen this before or have any ideas?
{
"request": {
"companyNumber": xx,
"operatorInit": "xx",
"tInputrebdata": {
"t-inputrebdata": [
{
"actiontype": "add",
"seqno": 1,
"doctype": "",
"levelcd": 1,
"rebatecd": "S",
"vendno": 126515,
"edipartner": "",
"vendduns": "",
"sendersvendid": "",
"custedipartner": "",
"custduns": "",
"shipto": "",
"custrebty": "",
"product": "RSC4/7",
"vendprod": "",
"barcodeprod": "",
"upcsection1": 0,
"upcsection2": 0,
"upcsection3": 0,
"upcsection4": 0,
"upcsection5": 0,
"upcsection6": 0,
"upcnumber": 0,
"naedprodcd": "",
"startdt": "2028-04-07",
"enddt": "2029-05-05",
"whse": "",
"whseduns": "",
"region": "",
"dropshipty": "W",
"contractno": "bugoni3a",
"contractlineno": 0,
"refer": "API TEST L111",
"priceeffectdt": "",
"priceeffectdtto": "",
"pricesheet": "",
"pricesheetto": "",
"margincostty": "",
"rebatecostty": "R",
"rebatepct": 0,
"rebcalcty": "N",
"rebdowntoty": "F",
"rebateamt": 55.08,
"contractcostfl": false,
"capselltypefl": false,
"sharefl": false,
"capsellamount": 0,
"sharepct": 0,
"manualfl": false,
"currencyty": "",
"caprebfl": false,
"vendprodgrp": "",
"prodpricety": "",
"prodcat": "",
"prodline": "",
"prodrebtype": "",
"rebsubty": "",
"rebrecno": 0,
"usecontractlineno": false,
"errorfl": false,
"errortype": "",
"setid": ""
}
]
},
"tInfieldvalue": {
"t-infieldvalue": []
}
}
}