I am trying to do a simple webhook to Stripe API. Here is the first call to Stripe to "create"
product and prices for services we perform. The second call creates payment link based upon all previous steps. I'm having issues with first step. I cant get a valid call.
Im guessing the problems are within the payload of the call.
Authentication has been altered for security.
{
"$type": "Nirvana.Data.TaskResultWebhook, V2API",
"Headers": {
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
"Authorization": "Basic c2tfbGl2ZV81MU1UVU9wSTJUcGlQU2d3UExXVjdmekJwbFg1b0k3OGQxMnBDalNnWWk5bTdXb2FmSUJIUHZOVWJEeW1jM213OXlDRU5pV1hRa1l5RjlDeFJVZ1hpcEsyRzAwYkw0U3gxZmk6",
"Content-Type": "application/form-urlencoded",
"Accept": "application/json"
},
"Payload": "{description= \"JORDAN\",name= \"TEST\",default_price_data%5Bcurrency%5D= \"usd\",}",
"Url": "https://api.stripe.com/v1/products",
"Verb": "Post",
"ContentType": "FORM_URL_ENCODED",
"MimeType": "application/x-www-form-urlencoded",
"TimeoutSeconds": 180,
"MaxRetryCount": 3,
"AsyncExec": false,
"AppErrors": {
"$type": "Jeenee.DataTypes.AppErrors, Jeenee.DataTypes",
"RecordInfo": false,
"RecordWarning": true,
"AnnotateErrors": false,
"Errors": []
},
"TaskType": "Webhook",
"TaskName": "create Stripe product and price"
}
I recommend getting a tool such as Postman, which allows you to construct and send JSON payloads to REST services. The advantage is that you can SEE what messages the Stripe service is returning. Then tweak the payload to get it right and simply paste the result into the AppSheet webhook.
User | Count |
---|---|
16 | |
10 | |
8 | |
5 | |
5 |