Help with post api

my api request is not being accepted

is correct?

What response error you are getting

Please use the JSON component so that the request can be formatted correctly without thinking where the brackets should be.

that the data is invalid

I didn’t find the tutorial on how to post json

As i suggest first try with postman

Did you set the URL first?

yes
https://appws.picpay.com/ecommerce/public/payments

on the postman works correctly

Can you show all of your blocks? In the second image you have the callbackUrl set to http://www.sualoja.com.br/callback and in the first you have it set to https://lipscell.com.br. In the second image the returnUrl is http://www.sualoja.com/cliente/pedido/102030 and in the first it’s the same thing, https://lipscell.com.br.

block2

the second image is the example of the api (docs)

Docs: PicPay - E-Commerce Public API Docs

use Do it to get a result of your JSON string, then validate it using an online service like

Taifun

Did you add content-type : application/json in headers.
And another thing if it works in postman then main problem i guess is header that i mentioned
Above nand second is json should be send in string format

1 Like