Hi, I need some help with a rest api request when ...
# suitetalkapi
a
Hi, I need some help with a rest api request when creating a Vendor Bill using the vendorBill endpoint. Is there a way for Netsuite to automatically set the posting period as an open period when the date is in a closed period. Netsuite does this in the UI when the Bill date is in the past but rest api needs the Bill date to be in an open period, otherwise it errors. Error below wouldn't be seen in the UI since it's Posting period is automatically updated:
Copy code
{'detail': 'Error while accessing a resource. The transaction date is not within an open accounting period. One or more fields on this transaction can trigger inventory costing calculations in a closed period. Click Go Back, then do one of the following:<li>Change the transaction date to a date within an open accounting period.</li><li>Cancel edits that affect the General Ledger if this is an existing transaction.</li>.', 'o:errorCode': 'USER_ERROR'}