This POST API allows to create and update Payment Term translation
URL Format: https://<Instance>/SmartInterfaceAPI/api/PaymentTerm/PaymentTermCulture
[
{
"PaymentTermCode": "string",
"PaymentTermTranslation": "string",
"CultureCode": "string"
}
]
Culture codes are listed as follows:
|
CultureCode |
CultureName |
| ar-SA | Arabic |
|
cs-CZ |
Czech |
|
da-DK |
Danish |
|
de-DE |
Deutsch |
|
el-GR |
Greek |
|
en-AU |
English (AU) |
|
en-US |
English |
|
es-ES |
Español |
|
fi-FI |
Finnish |
|
fr-FR |
Français |
|
hr-HR |
Croatian |
|
hu-HU |
Hungarian |
|
id-ID |
Indonesian (Bahasa) |
|
it-IT |
Italiano |
|
ja-JP |
Japanese |
|
ko-KR |
Korean |
|
ms-MY |
Malaysian |
|
nl-NL |
Dutch |
|
nn-NO |
Norsk |
|
pl-PL |
Polish |
|
pt-BR |
Portuguese (Brazilian) |
|
pt-PT |
Portuguese |
|
ro-RO |
Romanian |
|
ru-RU |
Russian |
|
sk-SK |
Slovak |
|
sv-SE |
Swedish |
|
th-TH |
Thai |
|
tr-TR |
Turkish |
|
vi-VN |
Vietnamese |
|
zh-CHT |
Chinese (Traditional) |
|
zh-CN |
Chinese(Simplified) |
Success Scenario – Request
The request below describes that this contains only the mandatory attributes:
[
{
"PaymentTermCode": "RTN5",
"PaymentTermTranslation": "TestTranslation",
"CultureCode": "en-US"
}
]
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": "PaymentTermCode: RTN5 | CultureCode: en-US"
}
]
}
Error Scenario – Request
[
{
"PaymentTermCode": "",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "en-US"
},
{
"PaymentTermCode": "RTN7",
"PaymentTermTranslation": "",
"CultureCode": "en-US"
},
{
"PaymentTermCode": "RTN6",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": ""
},
{
"PaymentTermCode": "RTN6",
"PaymentTermTranslation": "iH4AWNcnfgoCKtaONmvGD9u6ib2LOrVJC3GGvmRHcztTxptpJVQFQluEdnbVgRkNvqjkxuaBmPsJ4GWp9J1YHLY4DHBmnWr67zfPrVEt7PZUix3bwIawKDv2ROuJP3SFA3HRyshB90oiptSIGuUSUlGY2u3FHR8tkqB44pV0ABP4UD4Ng4fRr8shaN6IkRQYcehnAKXih",
"CultureCode": "pt-pT"
},
{
"PaymentTermCode": "abcd",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "pt-pT"
},
{
"PaymentTermCode": "12@34",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "pt-pT"
},
{
"PaymentTermCode": "RTN4",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "ab-CD"
},
{
"PaymentTermCode": "RTN3",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "en-US"
},
{
"PaymentTermCode": "RTN3",
"PaymentTermTranslation": "gel01_upd",
"CultureCode": "en-US"
}
]
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "PaymentTermCode: | CultureCode: en-US",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "Payment Term Code is Mandatory."
}
]
},
{
"key": "PaymentTermCode: RTN7 | CultureCode: en-US",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "Payment Term Translation is Mandatory."
}
]
},
{
"key": "PaymentTermCode: RTN6 | CultureCode:",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "Culture Code is Mandatory."
}
]
},
{
"key": "PaymentTermCode: RTN6 | CultureCode: pt-pT",
"errors": [
{
"errorCode": "LengthException",
"errorDescription": "Payment Term Translation cannot exceed 200 characters."
}
]
},
{
"key": "PaymentTermCode: abcd | CultureCode: pt-pT",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "The Payment Term Code is either inactive or does not exist in the system."
}
]
},
{
"key": "PaymentTermCode: 12@34 | CultureCode: pt-pT",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "The Payment Term Code is either inactive or does not exist in the system."
}
]
},
{
"key": "PaymentTermCode: RTN4 | CultureCode: ab-CD",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "The Culture Code is either blank, invalid, or does not exist in the system."
}
]
},
{
"key": "PaymentTermCode: RTN3 | CultureCode: en-US",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "The combination of Payment Term Code and Culture Code already exists in the same data feed."
},
{
"errorCode": "DataException",
"errorDescription": "The combination of Payment Term Code and Culture Code already exists in the same data feed."
}
]
},
{
"key": "PaymentTermCode: | CultureCode:",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "Payment Term Code is Mandatory."
},
{
"errorCode": "MandatoryException",
"errorDescription": "Culture Code is Mandatory."
},
{
"errorCode": "MandatoryException",
"errorDescription": "Payment Term Translation is Mandatory."
}
]
},
{
"key": "PaymentTermCode: 12@34 | CultureCode: te-ST",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "The Culture Code is either blank, invalid, or does not exist in the system."
},
{
"errorCode": "DataException",
"errorDescription": "The Payment Term Code is either inactive or does not exist in the system."
}
]
}
],
"successDetails": []
}
|
UserGroup |
||||
|
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
|
PaymentTermCode |
Yes |
String |
PaymentTermCode which needs to be provided |
Mandate validation |
|
PaymentTermTranslation |
Yes |
String |
PaymentTermTranslation which needs to be provided |
Mandate validation |
|
CultureCode |
Yes |
String |
CultureCode which needs to be provided |
The value of CultureCode must be from the list provided. For more information, see the Additional Information section. |