Sending the Upsert request for PaymentInformationV3 Odata Entity and receiving below error message-
"d" : [
"key" : null, "status" : "ERROR", "editStatus" : null, "message" : "At least one main payment method is required with the index 0", "index" : 0, "httpCode" : 500, "inlineResults" : null
The error message is probably raised by the business rule validating the MainPaymentMethod of PaymentInformation when you upsert PaymentInformationV3 (header) without a PaymentInformationDetailV3 (detail) record with pay type = main payment method.
So can you please check the Business Rules configured for the 'Payment Information' object?
The upsert will be successful if you upsert the header record and the detail record with one OData call. (Refer KBA #2543260 for example)
At least one main payment method is required, PaymentInformationV3, PaymentInformationDetailV3, Upsert, OData , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem