The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

SDK Example: ValidateOffer (Fall '20)

Use the example SDK code in this topic to validate an offer.

Possible error conditions:

"ValidateOfferInput::getAPIPath() must have catalogCode."

"ValidateOfferInput::getAPIPath() must have offerCode."

"ValidateOfferInput::getPostBody() must have productConfiguration."