Contact Us
This function submits a contact us case to Salesforce Service Console. The organization ID will be determined based on environment, so developers will not need to provide one.
Path
Method
Required Parameters
- first_name
- last_name
- birth_month
- birth_day
- birth_year
- category ('spirits' or 'wine')
- zip_postal
- country (ISO2 or ISO3 country code)
- brand_id (find this id from the brands API call)
Optional Parameters
- source (defaults to 'Brand Website')
- type (defaults to 'Question')
- subject
- 00N1300000B80zB (category, usually a dropdown on the form)
- city
- us_state_abbrv (State abbreviation for US consumers)
- state_prov_terr (State equivalent for non-US consumers)
- address_1
- description (The message from the consumer)
Responses
Please note: Salesforce Service Console returns limited data, so our API is unable to validate a case was successfully created. You must have your Brown-Forman contact check Service Console when you are testing this API.
- 200 LDA = false
{"lda":false}
- 201
{"success"}
- 400 - cURL error or date is invalid
{"error": //error message }
Code Examples
|