The API specification:
- dev.moip.com.br/v2.0/reference#criar-pagamento (in Portuguese)
- dev.moip.com.br/page/api-reference#section-create-a-payment-post- (in English, incomplete and with mistakes)
{
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-CLCGP3C1Y3Z7",
"title": "ORD-CLCGP3C1Y3Z7"
},
"payBoleto": {
"redirectHref": "https://checkout-sandbox.moip.com.br/boleto/PAY-FZA12UVQM5RY"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-FZA12UVQM5RY"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"liquid": 79157,
"refunds": 0,
"total": 79157
},
"createdAt": "2017-07-24T04:54:39.112-03",
"delayCapture": false,
"events": [
{
"createdAt": "2017-07-24T04:54:39.115-03",
"type": "PAYMENT.CREATED"
},
{
"createdAt": "2017-07-24T04:54:39.115-03",
"type": "PAYMENT.WAITING"
}
],
"fees": [
{
"amount": 0,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"boleto": {
"expirationDate": "2017-07-31",
"instructionLines": {
"first": "First line",
"second": "Second line",
"third": "Third line"
},
"lineCode": "23793.39126 60000.118970 96001.747904 1 72370000079157",
"logoUri": "https://avatars3.githubusercontent.com/u/23271789?v=4&s=200"
},
"method": "BOLETO"
},
"id": "PAY-FZA12UVQM5RY",
"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-24T04:54:39.112-03"
}