Forum Discussion

Autolync's avatar
5 years ago

SaleEvent_CreditOnHold Error when creating an Invoice

When using the AccountRight application itself (and having the flag set), attempting to create an Invoice against a Customer that has Stop Credit will provide a warning but will still allow creation of said Invoice.

 

When attempting to create an Invoice via the API in the same scenario, we instead get a SaleEvent_CreditOnHold Error and the creation is aborted.

 

Is there a flag or something we can post via the API to force creation, or ignore the setting or something?

 

We have in our UI (prior to sending the Invoice to MYOB) a message to confirm the Invoice should still be created to match what MYOB does too.

 

Thanks

1 Reply

Replies have been turned off for this discussion
  • Hannah_B's avatar
    Hannah_B
    MYOB Moderator

    Hi Autolync 

     

    Thanks for reaching out. We are unable to POST an invoice via the API if a credit hold has been placed on the card file. Even with the preference selected to warn and continue we would not be able POST this invoice. The only way to POST the invoice via the API would be to remove this credit hold on the card file.