You will need the object’s Id:
- Call the API using StripeSDKMain External Object
- Load Response or Handle Errors
//Make the API call
&StripeSDKMain.DeletePlan(&Api_Key,&PlanId,&Response,&Errors,&ErrorCode)
//Handle Errors
if &ErrorCode = 0
&StripePlanDeleteResponse.FromJson(&Response)
Msg(&StripePlanDeleteResponse.ToJson())
else
&StripeError.FromJson(&Errors)
Msg(&StripeError.ToJson())
EndIf