A «POST /v2/customers» request with a bank card hash as a «fundingInstruments» parameter leads to an undocumented «{"ERROR": "Ops... We were not waiting for it"}» response with «500 Internal Server Error» HTTP code

Request:

Headers

POST /v2/customers HTTP/1.1
Host: sandbox.moip.com.br
Connection: close
Accept-encoding: gzip, deflate
User-Agent: Zend_Http_Client
Authorization: Basic <a value here>
Content-Type: application/json
Content-Length: 2033

Body:

{
    "areaCode": "55",
    "birthDate": "1982-07-08",
    "countryCode": "21",
    "email": "admin@mage2.pro",
    "fullname": "Dmitry Fedyuk",
    "fundingInstruments": [
        {
            "creditCard": {
                "hash": "Q2qMJoavpsNCkF7FSA9pqg3lFFd1QTDWj7yA2tYRcwTbaFG9vWzU7lJcNyAkPKQ7BaSXhveZmNzNTbk7AcQ/nUlxqK8lt66HeLQhNyfy0f6wCf088Ys5IutbB/g/WK7hUDU3y3Ytn8q+h3QLg8NlbKCsveoaMncgqOXDj0If33WorzJB+yfSyCyEHb+dqwO+dJ8fX4fIGzMVMipJ902AbE+Cy/kuxA/ThBzgP247dXrwu3fjFdWRTRsCLO37X3dvZOVe+qjc/qUCvK1pEPQtW3jjCgYmCNX2jYdcu6h/EqXiCJvMnOJ3dXr1G/2Z0fdN2TcnJhhkRj61Me4LcMet3Q==",
                "holder": {
                    "billingAddress": {
                        "city": "Rio de Janeiro",
                        "complement": "",
                        "country": "BRA",
                        "district": "Barra da Tijuca",
                        "state": "RJ",
                        "street": "Avenida Lúcio Costa",
                        "streetNumber": "3150",
                        "zipCode": "22630-010"
                    },
                    "birthdate": "1982-07-08",
                    "fullname": "DMITRY FEDYUK",
                    "phone": {
                        "areaCode": "55",
                        "countryCode": "21",
                        "number": "31398000"
                    },
                    "taxDocument": {
                        "number": "11438374798",
                        "type": "CPF"
                    }
                },
                "store": true
            },
            "method": "CREDIT_CARD"
        }
    ],
    "number": "31398000",
    "ownId": "admin@mage2.pro-969371",
    "shippingAddress": {
        "city": "Rio de Janeiro",
        "complement": "",
        "country": "BRA",
        "district": "Barra da Tijuca",
        "state": "RJ",
        "street": "Avenida Lúcio Costa",
        "streetNumber": "3150",
        "zipCode": "22630-010"
    },
    "taxDocument": {
        "number": "11438374798",
        "type": "CPF"
    }
}

Response:

Headers

Date: Sun, 16 Jul 2017 08:46:50 GMT
Server: Apache
Status: 500 Internal Server Error
X-newrelic-app-data: <a value here>
Content-type: text/plain; charset=UTF-8
Content-length: 49
X-content-type-options: nosniff
Vary: Accept-Encoding,Origin
Connection: close

Body

{"ERROR": "Ops... We were not waiting for it"}

Note that the response does not conform to the official error format specification:
https://dev.moip.com.br/v2.0/reference#section--error-states-

See also:

I have got a response from Moip suppport:

O método “customers” não possui suporte ainda ao hash do cartão de credito, sendo necessário você enviar os dados sem criptografia, seguem parametros que devem ser utilizados no lugar do parâmetro “hash”:
“expirationMonth”,“expirationYear”,“number”,“cvc”.

It can be translated as:

The customers API request does not yet support the credit card hash, it is necessary to send the bank card data without encryption: “ExpirationMonth”, “expirationYear”, “number”, “cvc”.