Пытаюсь отправить деньги на русскую VISA:
$option = [
'id' => 1000*strtotime('now'),
'fields' => ['account' => '42767************'],
'sum' => ['amount' => 100, 'currency' => '643'],
'paymentMethod' => ['type' => 'Account', 'accountId' => '643'],
];
$token_qiwi = "**************";
$zapros = curl_init();
$arr[CURLOPT_URL] = 'https://edge.qiwi.com/sinap/api/v2/terms/1963/payments';
$arr[CURLOPT_RETURNTRANSFER] = TRUE;
$arr[CURLOPT_TIMEOUT] = 10;
$arr[CURLOPT_HTTPHEADER] = array("Accept: application/json", "Content-type: application/json", "Authorization: Bearer ".$token_qiwi);
$arr[CURLOPT_POST] = TRUE;
$arr[CURLOPT_POSTFIELDS] = json_encode($option);
curl_setopt_array($zapros, $arr);
echo curl_exec($zapros);
curl_close($zapros);
Пишет:
{"message":"Json validation error List((obj.id,List(JsonValidationError(List(error.expected.jsstring),WrappedArray()))))"}
Что делаю не так?
У токена все разрешения.