Hi, I am trying to invoke an action using the API through an URL from Xendit, this is the test payload:
{
"data": {
"id": "ewc_95d47d3a-db03-4b4b-9b6c-71077157cbc8",
"basket": null,
"status": "SUCCEEDED",
"actions": {
"mobile_web_checkout_url": "",
"desktop_web_checkout_url": "",
"mobile_deeplink_checkout_url": "https://wsa.uat.wallet.airpay.co.id/universal-link/wallet/pay?deep_and_deferred=1&token=dFhkbmR1bTBIamhWwFfJaB-n_6eGjr1eAHnlwWEJDsEpIU_-8m0QS5Tb1nFp_ZEtGrgHWKV8LuV6rwVL2COCVw"
},
"created": "2020-10-21T13:57:43.355897Z",
"updated": "2020-10-21T13:57:43.730483Z",
"currency": "IDR",
"metadata": {
"branch_code": "senayan_372"
},
"voided_at": null,
"capture_now": true,
"customer_id": null,
"callback_url": "https://webhook.site/5eebb675-6102-453a-a81c-de95fb08bc77",
"channel_code": "ID_SHOPEEPAY",
"failure_code": null,
"reference_id": "test-payload",
"charge_amount": 20000,
"capture_amount": 20000,
"checkout_method": "ONE_TIME_PAYMENT",
"payment_method_id": null,
"channel_properties": {
"success_redirect_url": "https://google.com"
},
"is_redirect_required": true
},
"event": "ewallet.capture",
"created": "2020-10-21T13:59:14.536400713Z",
"business_id": "59e0daf7049b567510c63f67"
}
I have already make API
https://api.appsheet.com/api/v2/apps/ebc30b68-4b4e-49ae-842e-28e376392481/tables/Order%20Form/Action...
but the response is
{ "statusCode": 404, "message": "Resource not found" }
Please kindly help me
That URL is incomplete.
Dear Steve,
I have make correction according to your information:
https://api.appsheet.com/api/v2/apps/ebc30b68-4b4e-49ae-842e-28e376392481/tables/status/Action?appli...
{
โActionโ: โeditโ,
โPropertiesโ: {
โLocaleโ: โen-USโ,
โLocationโ: โ47.623098, -122.330184โ,
โTimezoneโ: โPacific Standard Timeโ,
โUserSettingsโ: {
โOption 1โ: โvalue1โ,
โOption 2โ: โvalue2โ
}
{
โeditโ: {
{
{
โidโ: โ{{119668154__id}}โ,
โeventโ: โ{{119668154__event}}โ,
โphoneโ: โ{{119668154__phone}}โ,
โamountโ: {{119668154__amount}}1,
โstatusโ: โ{{119668154__status}}โ,
โcreatedโ: โ{{119668154__created}}โ,
โbusiness_idโ: โ{{119668154__business_id}}โ,
โexternal_idโ: โ{{119668154__external_id}}โ,
โewallet_typeโ: โ{{119668154__ewallet_type}}โ
}
But still not working, please kindly help me
Each โ{{โ should be <<
and each }}
should be >>
.
Dear Steve,
https://api.appsheet.com/api/v2/apps/ebc30b68-4b4e-49ae-842e-28e376392481/tables/status/Action?appli...
the body:
{
โActionโ: โEditโ,
โPropertiesโ: {
โLocaleโ: โen-USโ,
โLocationโ: โ47.623098, -122.330184โ,
โTimezoneโ: โPacific Standard Timeโ,
โRunAsUserEmailโ: โYourEmail@google.comโ
},
โRowsโ: [
{
โIDโ: โ<<[ID]>>โ,
โEventโ: โ<<[Event]>>โ,
โPhoneโ: โ<<[Phone]>>โ,
โAmountโ: โ<<[Amount]>>โ,
โStatusโ: โ<<[Status]>>โ,
โCreatedโ: โ<<[Created]>>โ,
โBusiness_Idโ: โ<<[Business_Id]>>โ,
โExternal_Idโ: โ<<[External_Id]>>โ,
โewallet_typeโ: โ<<[ewallet_type]>>โ
}
]
}
but the error is still the same:
{ โstatusCodeโ: 404, โmessageโ: โResource not foundโ }
Youโve reached the end of my familiarity with the API. For more help, I have to direct you to support@appsheet.com.
Dear steve,
I am so sorry, because i have only a little knowledge about API,
The API is for callback url from Xendit, but it seem it will be very hard for me to make it,
So iโm using other ways, invoke Xendit with Zapier to directly invoke my worksheet, then I invoke the data recieve by email for notify.
So now the payment gateway and the call back all handle well.
Anyway thank you so much for your help, i really appreciate it.
User | Count |
---|---|
40 | |
34 | |
29 | |
23 | |
17 |