Hi folks,
I’m needing to connect to an API using this curl:
curl --location --request POST ‘https://df.uol.com.br/v2/cards/?email=INFORM_YOUR_EMAIL&token=INFORM_YOUR_TOKEN’
–header ‘Accept: application/x-www-form-urlencoded’
–header ‘Accept: application/json’
–header ‘Content-Type: application/x-www-form-urlencoded’
–data-urlencode ‘sessionId=850728df66704b169ce0034265ace3e3’
–data-urlencode ‘amount=100.00’
–data-urlencode ‘cardNumber=4111111111111111’
–data-urlencode ‘cardBrand=visa’
–data-urlencode ‘cardCvv=123’
–data-urlencode ‘cardExpirationMonth=08’
–data-urlencode ‘cardExpirationYear=2020’
But I don’t know to insert data-urlencode on API Connector’s body.
Any suggestions for my case?
2 Likes
Solved.
It’s a call for PagSeguro API from Brazil. If anyone needs help with that, please get in touch with me.
1 Like
Hi @wagbrig
I am setting up the same Urlencoded Call with API Connector
also with your given instruction!
But I am not able to get response, it’s giving me one parameter missing error every time!
Would you Please help me with that!
I will be really glad to you!
Please & thanks for your consideration
Wagbrig, I’m so grateful to you. I been days without getting any solution Tokenizing a card (this time for Mango Pay)
Mi issue was receiving an 09101 error code while post an api call that only accepts urlencode. Doesn’t matter puting any header, wasn’t working until found your post and just put:
datatype: text
Header: key: content-type | Value: application/x-www-form-urlencoded
Body type: RAW
Body
accessKeyRef=XXXm87dmM2LiwFgxPLBJ&data=Qi9oou23Q8d9B3xUpjdMue6cJikfyoc4M3zylo7_vpcV6GwsSjUGGyPV7xrpmBFd2ddFLVXdicolcUIkv_kKEA&cardNumber=5120105181818183&cardExpirationDate=1228&cardCvx=412
Wherever you are, thank you.