PaygateDeveloper documentation
400bad_jsonplatform

The request body is not valid JSON

Returned by the implementation; no specification rule declares it yet.

The body could not be parsed. detail carries the parser's own message, including the offset.

Why the API refuses

could not read the body

What to do

Check Content-Type: application/json and that you are sending the serialised body rather than a form encoding. Trailing commas, single-quoted keys and an unescaped newline inside a string are the three that produce this most often.