Discussions
API 400 error
I'm trying to integrate servicem8 using oauth so my clients can use it, currently my scope is read_customer_contacts, read_customers and manage_customers and i have a developer account and i'm trying to manage another trial account
everything in the oauth part is working correctly, (authorizing the add on, generating refresh token and access token) but i'm unable to retrieve or post any data.. the error is: 400 error, The request could not be satisfied.
this is the request i'm sending (exported from postman)
curl --location --request POST 'https://api.servicem8.com/api_1.0/company.json'
--header 'Accept: application/json'
--header 'Authorization: Bearer {access_token}'
--header 'Content-Type: application/json'
--data-raw '{"name": "test company"}'