[Moip] A response to «POST v2/orders»

The API specification:

{
	"id": "ORD-TKZ1BQOQL69J",
	"ownId": "admin@mage2.pro-7664",
	"status": "CREATED",
	"createdAt": "2017-06-09T04:52:12.590-03",
	"updatedAt": "2017-06-09T04:52:12.590-03",
	"amount": {
		"total": 79157,
		"fees": 0,
		"refunds": 0,
		"liquid": 0,
		"otherReceivers": 0,
		"currency": "BRL",
		"subtotals": {
			"shipping": 5959,
			"addition": 0,
			"discount": 0,
			"items": 73198
		}
	},
	"items": [
		{
			"product": "Alligator Briefcase",
			"price": 20699,
			"detail": "alligator leather briefcaseIt was the she-wolf who had first caught the sound of men's voices and the whining of the sled-dogs; and it was the she-wolf who was first to spring away from the cornered man in his circle of dying flame. The pack had…",
			"quantity": 2
		},
		{
			"product": "New Very Prive-36.5-Almond",
			"price": 15900,
			"detail": "New Very Prive-36.5-Almond",
			"quantity": 1
		},
		{
			"product": "New Very Prive-38-Black",
			"price": 15900,
			"detail": "New Very Prive-38-Black",
			"quantity": 1
		}
	],
	"addresses": [
		{
			"streetNumber": "3150",
			"street": "Avenida Lúcio Costa",
			"city": "Rio de Janeiro",
			"complement": "",
			"district": "Barra da Tijuca",
			"zipCode": "22630-010",
			"state": "RJ",
			"type": "SHIPPING",
			"country": "BRA"
		}
	],
	"customer": {
		"id": "CUS-UKXT2RQ2TULX",
		"ownId": "admin@mage2.pro4304",
		"fullname": "Dmitry Fedyuk",
		"createdAt": "2017-04-25T04:38:31.000-03",
		"birthDate": "1982-07-08",
		"email": "admin@mage2.pro",
		"phone": {
			"countryCode": "55",
			"areaCode": "21",
			"number": "31398000"
		},
		"taxDocument": {
			"type": "CPF",
			"number": "22222222222"
		},
		"addresses": [
			{
				"streetNumber": "3150",
				"street": "Avenida Lúcio Costa",
				"city": "Rio de Janeiro",
				"complement": "",
				"district": "Barra da Tijuca",
				"zipCode": "22630-010",
				"state": "RJ",
				"type": "SHIPPING",
				"country": "BRA"
			}
		],
		"shippingAddress": {
			"zipCode": "22630-010",
			"street": "Avenida Lúcio Costa",
			"streetNumber": "3150",
			"complement": "",
			"city": "Rio de Janeiro",
			"district": "Barra da Tijuca",
			"state": "RJ",
			"country": "BRA"
		},
		"moipAccount": {
			"id": "MPA-PQ0H8UZYNNWY"
		},
		"_links": {
			"self": {
				"href": "https://sandbox.moip.com.br/v2/customers/CUS-UKXT2RQ2TULX"
			},
			"hostedAccount": {
				"redirectHref": "https://hostedaccount-sandbox.moip.com.br?token=f6ea86bc-0d1d-41e5-94d2-804f30e1db5e&id=CUS-UKXT2RQ2TULX&mpa=MPA-B5A5BC7D23A2"
			}
		}
	},
	"payments": [],
	"escrows": [],
	"refunds": [],
	"entries": [],
	"events": [
		{
			"type": "ORDER.CREATED",
			"createdAt": "2017-06-09T04:52:12.590-03",
			"description": ""
		}
	],
	"receivers": [
		{
			"moipAccount": {
				"id": "MPA-B5A5BC7D23A2",
				"login": "dfediuk@gmail.com",
				"fullname": "Mage2.PRO"
			},
			"type": "PRIMARY",
			"amount": {
				"total": 79157,
				"fees": 0,
				"refunds": 0
			},
			"feePayor": true
		}
	],
	"checkoutPreferences": {
		"installments": [],
		"redirectUrls": {
			"urlFailure": "https://mage2.pro/sandbox/dfe-moip/customerReturn",
			"urlSuccess": "https://mage2.pro/sandbox/dfe-moip/customerReturn"
		}
	},
	"_links": {
		"self": {
			"href": "https://sandbox.moip.com.br/v2/orders/ORD-TKZ1BQOQL69J"
		},
		"checkout": {
			"payCheckout": {
				"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=34b9b590-d7ad-4769-b0bf-56f2f83325a8&id=ORD-TKZ1BQOQL69J"
			},
			"payCreditCard": {
				"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=34b9b590-d7ad-4769-b0bf-56f2f83325a8&id=ORD-TKZ1BQOQL69J&payment-method=credit-card"
			},
			"payBoleto": {
				"redirectHref": "https://checkout-new-sandbox.moip.com.br?token=34b9b590-d7ad-4769-b0bf-56f2f83325a8&id=ORD-TKZ1BQOQL69J&payment-method=boleto"
			},
			"payOnlineBankDebitItau": {
				"redirectHref": "https://checkout-sandbox.moip.com.br/debit/itau/ORD-TKZ1BQOQL69J"
			}
		}
	}
}

See also: