tuli
06/27/2025, 12:56 PMCeligo AI
06/27/2025, 12:56 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that the field you should be using is
paymentMethod
and not paymentOption
. However, there are some conditions to consider:
1. If you have the Payment Instrument feature enabled in your NetSuite account, you should use paymentOption
instead of paymentMethod
.
2. The error message you're receiving suggests that you might not have the necessary permissions to set the paymentMethod
field. This could be due to the field being read-only, an associated feature being disabled, or the field being available only when a record is created or updated, but not in both cases.
3. If you're able to set the payment method in the UI without any issues, then you should be able to do the same via the API. If you're seeing a paymentMethod
field in the UI but receiving an error when trying to set it via the API, there might be some inconsistencies in your account.
4. If you're receiving a "Decline" error, it might be related to credit card information. This usually means that some credit card information is invalid. It's recommended to check with the payment processor to see what's wrong.
Here's a sample of how you might set the paymentMethod
field when creating a salesOrder via REST:
json
"paymentMethod": {
"id": 7
}
And here's how you might set the paymentOption
field:
json
"paymentOption": {
"id": "1"
}
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/27/2025, 12:56 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.867450297
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860101283
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844693899
Celigo AI
06/27/2025, 12:56 PM