The id parameter is only needed in the path for the endpoint, and not in the post body, but gets sent along anyways, therefore the above code throws a BAD_FIELD_ERROR from Paystack.
Introspecting, while parsing data used to invoke the functions, path parameters are not unset from the rest of the data.
Sending the
id
field with other post data throws an error from Paystack. Case in point:The
id
parameter is only needed in the path for the endpoint, and not in the post body, but gets sent along anyways, therefore the above code throws aBAD_FIELD_ERROR
from Paystack.Introspecting, while parsing data used to invoke the functions, path parameters are not unset from the rest of the data.