moip notifications examples
Cria as notificações necessários para o funcionamento
https://dev.moip.com.br/v2.0/reference#eventos
Gateway.client.notifications.create({
events: [ "ORDER.*" ],
target: "https://api.teller.media/gateway/moip/notifications/orders",
media: "WEBHOOK"
})
Gateway.client.notifications.create({
events: [ "PAYMENT.*"],
target: "https://api.teller.media/gateway/moip/notifications/payments",
media: "WEBHOOK"
})
Gateway.client.notifications.create({
events: [ "REFUND.*" ],
target: "https://api.teller.media/gateway/moip/notifications/refunds",
media: "WEBHOOK"
})
Gateway.client.notifications.create({
events: [ "ENTRY.*" ],
target: "https://api.teller.media/gateway/moip/notifications/entries",
media: "WEBHOOK"
})
Gateway.client.notifications.create({
events: [ "TRANSFER.*" ],
target: "https://api.teller.media/gateway/moip/notifications/transfers",
media: "WEBHOOK"
})
Gateway.client.notifications.create({
events: [ "ESCROW.*" ],
target: "https://api.teller.media/gateway/moip/notifications/escrows",
media: "WEBHOOK"
})
{
"_index": "notifications",
"_type": "notification",
"_id": "3a8038a713ac47708a285e18d55aeb56",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:52.224+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "PAYMENT.WAITING",
"resource": {
"payment": {
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"gross": 240,
"liquid": 240,
"refunds": 0,
"total": 240
},
"createdAt": "2018-01-17T00:03:52.118-02",
"delayCapture": false,
"events": [
{
"createdAt": "2018-01-17T00:03:52.120-02",
"type": "PAYMENT.CREATED"
}
],
"fees": [
{
"amount": 0,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"holder": {
"birthDate": "1990-01-01",
"birthdate": "1990-01-01",
"fullname": "Example User",
"taxDocument": {
"number": "12345678910",
"type": "CPF"
}
},
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"id": "PAY-2WDSSWMDRLZB",
"installmentCount": 1,
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 0,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"status": "WAITING",
"updatedAt": "2018-01-17T00:03:52.118-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd93392b246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154632224
]
}
}
{
"_index": "notifications",
"_type": "notification",
"_id": "a3f02a27b8c143a4817d6ab4950c3897",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:52.657+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "PAYMENT.IN_ANALYSIS",
"resource": {
"payment": {
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"gross": 240,
"liquid": 240,
"refunds": 0,
"total": 240
},
"createdAt": "2018-01-17T00:03:52.118-02",
"delayCapture": false,
"events": [
{
"createdAt": "2018-01-17T00:03:52.600-02",
"type": "PAYMENT.IN_ANALYSIS"
},
{
"createdAt": "2018-01-17T00:03:52.120-02",
"type": "PAYMENT.CREATED"
}
],
"fees": [
{
"amount": 0,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"holder": {
"birthDate": "1990-01-01",
"birthdate": "1990-01-01",
"fullname": "Example User",
"taxDocument": {
"number": "12345678910",
"type": "CPF"
}
},
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"id": "PAY-2WDSSWMDRLZB",
"installmentCount": 1,
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 0,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"status": "IN_ANALYSIS",
"updatedAt": "2018-01-17T00:03:52.600-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd960abd246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154632657
]
}
}
{
"_index": "notifications",
"_type": "notification",
"_id": "f3038363ba854793a2dd616f49ec43be",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:52.993+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "PAYMENT.AUTHORIZED",
"resource": {
"payment": {
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB"
}
},
"amount": {
"currency": "BRL",
"fees": 82,
"gross": 240,
"liquid": 158,
"refunds": 0,
"total": 240
},
"createdAt": "2018-01-17T00:03:52.000-02",
"delayCapture": false,
"events": [
{
"createdAt": "2018-01-17T00:03:52.894-02",
"type": "PAYMENT.AUTHORIZED"
},
{
"createdAt": "2018-01-17T00:03:52.000-02",
"type": "PAYMENT.CREATED"
},
{
"createdAt": "2018-01-17T00:03:52.000-02",
"type": "PAYMENT.IN_ANALYSIS"
}
],
"fees": [
{
"amount": 82,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"holder": {
"birthDate": "1990-01-01",
"birthdate": "1990-01-01",
"fullname": "Example User",
"taxDocument": {
"number": "12345678910",
"type": "CPF"
}
},
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"id": "PAY-2WDSSWMDRLZB",
"installmentCount": 1,
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 82,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"status": "AUTHORIZED",
"updatedAt": "2018-01-17T00:03:52.894-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd980b82246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154632993
]
}
}
{
"_index": "notifications",
"_type": "notification",
"_id": "9a900996c04d4f278cc89035c214527e",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:52.289+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "ORDER.WAITING",
"resource": {
"order": {
"_links": {
"checkout": {
"payBoleto": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=boleto"
},
"payCheckout": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP"
},
"payCreditCard": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=credit-card"
},
"payOnlineBankDebitItau": {
"redirectHref": "https://checkout-sandbox.moip.com.br/debit/itau/ORD-DADGXS7N7YAP"
}
},
"self": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"liquid": 0,
"otherReceivers": 0,
"paid": 0,
"refunds": 0,
"subtotals": {
"addition": 0,
"discount": 0,
"items": 240,
"shipping": 0
},
"total": 240
},
"createdAt": "2018-01-17T00:03:46.000-02",
"customer": {
"_links": {
"hostedAccount": {
"redirectHref": "https://hostedaccount-sandbox.moip.com.br?token=481b8e27-80ce-46e1-8780-c1b63942fd0e&id=CUS-HZ8Q0RIVZOVY&mpa=MPA-215E40E8C955"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/customers/CUS-HZ8Q0RIVZOVY"
}
},
"createdAt": "2018-01-12T13:05:24.000-02",
"email": "josedasilva4@email.com",
"fullname": "Jose Silva 4",
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"fundingInstruments": [
{
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
}
],
"id": "CUS-HZ8Q0RIVZOVY",
"ownId": "5a540be07a6748264f00bd61",
"updatedAt": "2018-01-17T00:03:46.000-02"
},
"entries": [],
"escrows": [],
"events": [
{
"createdAt": "2018-01-17T00:03:46.000-02",
"description": "",
"type": "ORDER.CREATED"
}
],
"id": "ORD-DADGXS7N7YAP",
"items": [
{
"detail": "Non similique odio sequi quia aperiam dolorem. Similique aut illum optio. Enim omnis voluptatem voluptate veniam. Dolor deleniti architecto qui sunt aut sit. Sed aut est.",
"price": 240,
"product": "Time To Murder And Create",
"quantity": 1
}
],
"ownId": "5a5ea56b7a6748624de94a1c",
"payments": [
{
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"gross": 240,
"liquid": 240,
"refunds": 0,
"total": 240
},
"createdAt": "2018-01-17T00:03:52.118-02",
"delayCapture": false,
"events": [
{
"createdAt": "2018-01-17T00:03:52.120-02",
"type": "PAYMENT.CREATED"
}
],
"fees": [
{
"amount": 0,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"holder": {
"birthDate": "1990-01-01",
"birthdate": "1990-01-01",
"fullname": "Example User",
"taxDocument": {
"number": "12345678910",
"type": "CPF"
}
},
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"id": "PAY-2WDSSWMDRLZB",
"installmentCount": 1,
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 0,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"status": "WAITING",
"updatedAt": "2018-01-17T00:03:52.118-02"
}
],
"platform": "V2",
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 0,
"refunds": 0,
"total": 0
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"refunds": [],
"status": "WAITING",
"updatedAt": "2018-01-17T00:03:52.120-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd93a967246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154632289
]
}
}
{
"_index": "notifications",
"_type": "notification",
"_id": "a79706be08af46ea9866d5e35a45e151",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:53.087+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "ORDER.PAID",
"resource": {
"order": {
"_links": {
"checkout": {
"payBoleto": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=boleto"
},
"payCheckout": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP"
},
"payCreditCard": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=credit-card"
},
"payOnlineBankDebitItau": {
"redirectHref": "https://checkout-sandbox.moip.com.br/debit/itau/ORD-DADGXS7N7YAP"
}
},
"self": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP"
}
},
"amount": {
"currency": "BRL",
"fees": 82,
"liquid": 158,
"otherReceivers": 0,
"paid": 240,
"refunds": 0,
"subtotals": {
"addition": 0,
"discount": 0,
"items": 240,
"shipping": 0
},
"total": 240
},
"createdAt": "2018-01-17T00:03:46.000-02",
"customer": {
"_links": {
"hostedAccount": {
"redirectHref": "https://hostedaccount-sandbox.moip.com.br?token=481b8e27-80ce-46e1-8780-c1b63942fd0e&id=CUS-HZ8Q0RIVZOVY&mpa=MPA-215E40E8C955"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/customers/CUS-HZ8Q0RIVZOVY"
}
},
"createdAt": "2018-01-12T13:05:24.000-02",
"email": "josedasilva4@email.com",
"fullname": "Jose Silva 4",
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"fundingInstruments": [
{
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
}
],
"id": "CUS-HZ8Q0RIVZOVY",
"ownId": "5a540be07a6748264f00bd61",
"updatedAt": "2018-01-17T00:03:46.000-02"
},
"entries": [
{
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"payment": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB",
"title": "PAY-2WDSSWMDRLZB"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/entries/ENT-MOD44R561WXW"
}
},
"amount": {
"currency": "BRL",
"fee": 82,
"liquid": 158,
"total": 240
},
"createdAt": "2018-01-16T22:03:53.000-02",
"description": "Cartao de credito - Pedido PAY-2WDSSWMDRLZB",
"event": "PAY-2WDSSWMDRLZB",
"id": "ENT-MOD44R561WXW",
"occurrence": {
"in": "1",
"to": "1"
},
"operation": "CREDIT",
"scheduledFor": "2018-01-30T22:03:52.000-02",
"status": "SCHEDULED",
"updatedAt": "2018-01-16T22:03:53.000-02"
}
],
"escrows": [],
"events": [
{
"createdAt": "2018-01-17T00:03:52.894-02",
"description": "",
"type": "ORDER.PAID"
},
{
"createdAt": "2018-01-17T00:03:46.000-02",
"description": "",
"type": "ORDER.CREATED"
}
],
"id": "ORD-DADGXS7N7YAP",
"items": [
{
"detail": "Non similique odio sequi quia aperiam dolorem. Similique aut illum optio. Enim omnis voluptatem voluptate veniam. Dolor deleniti architecto qui sunt aut sit. Sed aut est.",
"price": 240,
"product": "Time To Murder And Create",
"quantity": 1
}
],
"ownId": "5a5ea56b7a6748624de94a1c",
"payments": [
{
"_links": {
"order": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP",
"title": "ORD-DADGXS7N7YAP"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/payments/PAY-2WDSSWMDRLZB"
}
},
"amount": {
"currency": "BRL",
"fees": 82,
"gross": 240,
"liquid": 158,
"refunds": 0,
"total": 240
},
"createdAt": "2018-01-17T00:03:52.000-02",
"delayCapture": false,
"events": [
{
"createdAt": "2018-01-17T00:03:52.894-02",
"type": "PAYMENT.AUTHORIZED"
},
{
"createdAt": "2018-01-17T00:03:52.000-02",
"type": "PAYMENT.CREATED"
},
{
"createdAt": "2018-01-17T00:03:52.000-02",
"type": "PAYMENT.IN_ANALYSIS"
}
],
"fees": [
{
"amount": 82,
"type": "TRANSACTION"
}
],
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"holder": {
"birthDate": "1990-01-01",
"birthdate": "1990-01-01",
"fullname": "Example User",
"taxDocument": {
"number": "12345678910",
"type": "CPF"
}
},
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"id": "PAY-2WDSSWMDRLZB",
"installmentCount": 1,
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 82,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"status": "AUTHORIZED",
"updatedAt": "2018-01-17T00:03:52.894-02"
}
],
"platform": "V2",
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 82,
"refunds": 0,
"total": 240
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"refunds": [],
"status": "PAID",
"updatedAt": "2018-01-17T00:03:52.894-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd98abd8246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154633087
]
}
}
{
"_index": "notifications",
"_type": "notification",
"_id": "7dc44d535a784a8f84c8c35b53532b68",
"_version": 1,
"_score": 2,
"_source": {
"created_at": "2018-01-17T02:03:46.359+00:00",
"body_hash": {
"date": "",
"env": "",
"event": "ORDER.CREATED",
"resource": {
"order": {
"_links": {
"checkout": {
"payBoleto": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=boleto"
},
"payCheckout": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP"
},
"payCreditCard": {
"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=29f86f58-ccdb-4fef-8ff2-16a4f263f5ab&id=ORD-DADGXS7N7YAP&payment-method=credit-card"
},
"payOnlineBankDebitItau": {
"redirectHref": "https://checkout-sandbox.moip.com.br/debit/itau/ORD-DADGXS7N7YAP"
}
},
"self": {
"href": "https://sandbox.moip.com.br/v2/orders/ORD-DADGXS7N7YAP"
}
},
"amount": {
"currency": "BRL",
"fees": 0,
"liquid": 0,
"otherReceivers": 0,
"paid": 0,
"refunds": 0,
"subtotals": {
"addition": 0,
"discount": 0,
"items": 240,
"shipping": 0
},
"total": 240
},
"createdAt": "2018-01-17T00:03:46.124-02",
"customer": {
"_links": {
"hostedAccount": {
"redirectHref": "https://hostedaccount-sandbox.moip.com.br?token=481b8e27-80ce-46e1-8780-c1b63942fd0e&id=CUS-HZ8Q0RIVZOVY&mpa=MPA-215E40E8C955"
},
"self": {
"href": "https://sandbox.moip.com.br/v2/customers/CUS-HZ8Q0RIVZOVY"
}
},
"createdAt": "2018-01-12T13:05:24.000-02",
"email": "josedasilva4@email.com",
"fullname": "Jose Silva 4",
"fundingInstrument": {
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
},
"fundingInstruments": [
{
"creditCard": {
"brand": "VISA",
"first6": "407302",
"id": "CRC-FUDI95ZHCK1L",
"last4": "0002",
"store": true
},
"method": "CREDIT_CARD"
}
],
"id": "CUS-HZ8Q0RIVZOVY",
"ownId": "5a540be07a6748264f00bd61",
"updatedAt": "2018-01-17T00:03:46.128-02"
},
"entries": [],
"escrows": [],
"events": [
{
"createdAt": "2018-01-17T00:03:46.124-02",
"description": "",
"type": "ORDER.CREATED"
}
],
"id": "ORD-DADGXS7N7YAP",
"items": [
{
"detail": "Non similique odio sequi quia aperiam dolorem. Similique aut illum optio. Enim omnis voluptatem voluptate veniam. Dolor deleniti architecto qui sunt aut sit. Sed aut est.",
"price": 240,
"product": "Time To Murder And Create",
"quantity": 1
}
],
"ownId": "5a5ea56b7a6748624de94a1c",
"payments": [],
"platform": "V2",
"receivers": [
{
"amount": {
"currency": "BRL",
"fees": 0,
"refunds": 0,
"total": 0
},
"feePayor": true,
"moipAccount": {
"fullname": "Teller Audios LTDA.",
"id": "MPA-215E40E8C955",
"login": "allan@tocalivros.in"
},
"type": "PRIMARY"
}
],
"refunds": [],
"status": "CREATED",
"updatedAt": "2018-01-17T00:03:46.124-02"
}
}
},
"headers": {
"HTTP_VERSION": "HTTP/1.0",
"HTTP_HOST": "api.teller.media",
"HTTP_X_REAL_IP": "172.69.62.62",
"HTTP_X_FORWARDED_FOR": "54.165.108.234, 172.69.62.62",
"HTTP_X_CLIENT_VERIFY": "SUCCESS",
"HTTP_CONNECTION": "close",
"HTTP_ACCEPT_ENCODING": "gzip",
"HTTP_CF_IPCOUNTRY": "US",
"HTTP_CF_RAY": "3de5bd6e8805246e-IAD",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_CF_VISITOR": "{\"scheme\":\"https\"}",
"HTTP_AUTHORIZATION": "1c5082d8da2846be81a00305febfa264",
"HTTP_USER_AGENT": "Go-http-client/2.0",
"HTTP_CF_CONNECTING_IP": "54.165.108.234"
}
},
"fields": {
"created_at": [
1516154626359
]
}
}