Request Payload

(Helio Freitas) #1

Does anyone help me? I need to make a POST to an API (Request Payload) in order to get some informations. But I cannot by POST and JSON Content-type because server tell that is wrong. If I try to that by Custom Request the server do not accept. See the example below:

  {
      "staff_key":"XXXXXXXX",      
      "service_key":"XXXXXXX",    
      "selected_date":"DD/MM/YYYY",
      "off_hours":true,
      "double_booking" : true,
      "slot_limit" : 30
  }

I have tried with all JSON options but nothing is working:

JSON Options
Wrap the JSON object in an array
Enable JSON nesting (use double underscore notation)

(Daniel Beckett) #2

@Helio_Freitas

Have you tried with the content type set to Raw Body? This sometimes works.

Other than that, is there a particular service that you’re sending to? Do they have documentation or information on what content they can receive and what format is expected?

(Helio Freitas) #3

Raw Body not working too. Here is the API doc:

https://setmore.docs.apiary.io/#

(Helio Freitas) #4

Forget about guys! I got it.

1 Like