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)
{
"id": "PAY-9R8XPLW1OJGK",
"status": "IN_ANALYSIS",
"delayCapture": true,
"amount": {
"total": 79157,
"fees": 0,
"refunds": 0,
"liquid": 79157,
"currency": "BRL"
},
"installmentCount": 1,
"statementDescriptor": "MAGE2.PRO",
"fundingInstrument": {
"creditCard": {
"id": "CRC-3ITCTVLSEQKP",
"brand": "VISA",
"first6": "401200",
"last4": "1112",
"store": true,
"holder": {
"birthdate": "1982-07-08",
"birthDate": "1982-07-08",
"taxDocument": {
"type": "CPF",
"number": "22222222222"
},
"billingAddress": {
"street": "Avenida Lúcio Costa",
"streetNumber": "3150",
"complement": "",
"district": "Barra da Tijuca",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BRA",
"zipCode": "22630-010"
},
"fullname": "DMITRY FEDYUK"
}
},
"method": "CREDIT_CARD"
},
"fees": [
{
"type": "TRANSACTION",
"amount": 0
}
],
"events": [
{
"type": "PAYMENT.IN_ANALYSIS",
"createdAt": "2017-06-09T19:28:49.986-03"
},
{
"type": "PAYMENT.CREATED",
"createdAt": "2017-06-09T19:28:49.637-03"
}
],
"receivers": [
{
"moipAccount": {
"id": "MPA-B5A5BC7D23A2",
"login": "dfediuk@gmail.com",
"fullname": "Mage2.PRO"
},
"type": "PRIMARY",
"amount": {
"total": 79157,
"refunds": 0
}
}
],
"_links": {
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-9R8XPLW1OJGK"
},
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-H8OLVKQDIIOK",
"title": "ORD-H8OLVKQDIIOK"
}
},
"createdAt": "2017-06-09T19:28:49.636-03",
"updatedAt": "2017-06-09T19:28:49.986-03"
}