I am creating sales orders via the REST API and it...
# suitetalkapi
a
I am creating sales orders via the REST API and it is creating them successfully except when the customer has an expired credit card in the customer setup. If they have no payment type setup, the sales orders are created successfully. When they have the expired credit card, I get the following error: Request","status":400,"o:errorDetails":[{"detail":"Error while accessing a resource. Please enter a payment method.","o:errorCode":"USER_ERROR"}]}. Is there something I can add to the JSON to resolve this? These are for fully discounted invoices with nothing due.
b
sounds weird, payment method isnt normally a mandatory field
if you are using a standard sales order form, then you may want to try setting the terms instead
a
I am setting the terms, just odd that it only gets that error when the customer's credit card is expired
b
may be related to a script in the account