Skip to content

Instantly share code, notes, and snippets.

@ThiagoBarradas
Created May 27, 2020 06:24
Show Gist options
  • Save ThiagoBarradas/90c6e69123430deb59f3535f98bf27f8 to your computer and use it in GitHub Desktop.
Save ThiagoBarradas/90c6e69123430deb59f3535f98bf27f8 to your computer and use it in GitHub Desktop.
Create Order Json Response - Mundipagg
{
"id": "or_loevBbzSrxCdqvRq",
"code": "ROJ4A1ET5Y",
"amount": 2990,
"currency": "BRL",
"closed": true,
"items": [
{
"id": "oi_K4g89nMs52Fa23aO",
"type": "product",
"description": "Bola do Kiko",
"amount": 2990,
"quantity": 1,
"status": "active",
"created_at": "2020-05-27T06:20:12Z",
"updated_at": "2020-05-27T06:20:12Z"
}
],
"customer": {
"id": "cus_8Z1EVRaHjmu1YEgR",
"name": "Thiago Barradas",
"email": "thiagobarradas@live.com",
"created_at": "2020-05-27T06:20:12Z",
"updated_at": "2020-05-27T06:20:12Z",
},
"status": "paid",
"created_at": "2020-05-27T06:20:12Z",
"updated_at": "2020-05-27T06:20:13Z",
"closed_at": "2020-05-27T06:20:12Z",
"charges": [
{
"id": "ch_2zP9QwphyaCxKMkl",
"code": "ROJ4A1ET5Y",
"amount": 2990,
"paid_amount": 2990,
"status": "paid",
"currency": "BRL",
"payment_method": "credit_card",
"paid_at": "2020-05-27T06:20:12Z",
"created_at": "2020-05-27T06:20:12Z",
"updated_at": "2020-05-27T06:20:12Z",
"last_transaction": {
"operation_key": "3221680299948",
"id": "tran_DNl0R3nFJQSjvpK7",
"transaction_type": "credit_card",
"gateway_id": "962e2925-302d-407e-ae2e-d040c2c58a98",
"amount": 2990,
"status": "captured",
"installments": 3,
"statement_descriptor": "LOJA DO BARRADAS",
"acquirer_name": "simulator",
"acquirer_tid": "40960885417164",
"acquirer_nsu": "66709",
"acquirer_auth_code": "881",
"acquirer_message": "Transação capturada com sucesso",
"acquirer_return_code": "00",
"operation_type": "auth_and_capture",
"card": {
"id": "card_EvVdO7ltVF5kdj0Z",
"first_six_digits": "400000",
"last_four_digits": "0010",
"brand": "Visa",
"holder_name": "THIAGO BARRADAS",
"exp_month": 1,
"exp_year": 2024,
"status": "active",
"type": "credit",
"created_at": "2020-05-27T06:20:12Z",
"updated_at": "2020-05-27T06:20:12Z",
"billing_address": {
"street": "Rua dos Bobos",
"number": "0",
"complement": "Casa sem teto",
"zip_code": "20000000",
"neighborhood": "Bairro Bonito",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment