[Moip] A response to «POST v2/orders/<order ID>/payments» for an online banking payment

The API specification:

{
    "_links": {
        "order": {
            "href": "https://sandbox.moip.com.br/v2/orders/ORD-XK7P6PBWUN56",
            "title": "ORD-XK7P6PBWUN56"
        },
        "payOnlineBankDebitBB": {
            "redirectHref": "https://webapps-sandbox.moip.com.br/sandbox/ProcessarDebito.do?externalId=PAY-9O6MQQQAOHL3"
        },
        "self": {
            "href": "https://sandbox.moip.com.br/v2/payments/PAY-9O6MQQQAOHL3"
        }
    },
    "amount": {
        "currency": "BRL",
        "fees": 0,
        "liquid": 79157,
        "refunds": 0,
        "total": 79157
    },
    "createdAt": "2017-07-21T11:55:32.406-03",
    "delayCapture": false,
    "events": [
        {
            "createdAt": "2017-07-21T11:55:32.409-03",
            "type": "PAYMENT.CREATED"
        },
        {
            "createdAt": "2017-07-21T11:55:32.409-03",
            "type": "PAYMENT.WAITING"
        }
    ],
    "fees": [
        {
            "amount": 0,
            "type": "TRANSACTION"
        }
    ],
    "fundingInstrument": {
        "method": "ONLINE_BANK_DEBIT",
        "onlineBankDebit": {
            "bankName": "BANCO DO BRASIL S.A.",
            "bankNumber": "001",
            "expirationDate": "2017-07-28"
        }
    },
    "id": "PAY-9O6MQQQAOHL3",
    "installmentCount": 1,
    "receivers": [
        {
            "amount": {
                "refunds": 0,
                "total": 79157
            },
            "moipAccount": {
                "fullname": "Mage2.PRO",
                "id": "MPA-B5A5BC7D23A2",
                "login": "dfediuk@gmail.com"
            },
            "type": "PRIMARY"
        }
    ],
    "status": "WAITING",
    "updatedAt": "2017-07-21T11:55:32.406-03"
}

See also: