How Can We Help?
Creating an opportunity
call = sf_api_call('/services/data/v59.0/sobjects/Opportunity/', method="post", data={
'CloseDate': '2018-03-01',
'Name': 'My big deal',
'StageName': 'Sales Accepted Lead',
'Type': 'Initial Subscription',
'AccountId': '0019E000009WTBVQA4',
})
opportunity_id = call.get('id')