A «POST /v2/customers/<customer ID>/fundinginstruments» 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/CUS-UKXT2RQ2TULX/fundinginstruments HTTP/1.1
Accept-encoding: gzip, deflate
Authorization: <...>
Connection: close
Content-Length: 1179
Content-Type: application/json
Host: sandbox.moip.com.br
User-Agent: Mage2.PRO

Body:

{
    "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"
}

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: