Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create product on Bitrix24 with inbound webhook API
# Resolve errors: Name is not specified
connection = Faraday.new(url: @@base_url)
connection.post do |req|
req.url 'crm.product.add'
req.headers['Content-Type'] = 'application/json'
req.body = { fields: { NAME: product_name, PRICE: estate.gia_khoi_diem, DESCRIPTION: product_description } }.to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.