Skip to content

Instantly share code, notes, and snippets.

@phpivanov
Last active November 20, 2018 14:59
Show Gist options
  • Save phpivanov/2c3cf2d1012357e51de8a65c328d24bb to your computer and use it in GitHub Desktop.
Save phpivanov/2c3cf2d1012357e51de8a65c328d24bb to your computer and use it in GitHub Desktop.
Полный JSON отправки заказа в 1С
{
"collection": {
"orders": {
"1": {
"id": "1",
"number": "НФНФ-000002",
"created": "2018-11-19 15:53:09",
"updated": "2018-11-20 16:00:00",
"price": 5000.00,
"discount": 10,
"sum": 4500.00,
"products": [
{
"id": "1",
"size": {
"id": "1",
"type_id": "1"
},
"quantity": 2,
"price": 2500.00,
"discount": 0,
"sum": 5000.00
}
],
"delivery": [
{
"id": "1",
"title": "СДЭК",
"address": "109012, Москва, Красная пл.",
"price": 300.00
}
],
"client": [
{
"id": "1",
"name": "Владимир",
"phone": "9261172709",
"email": "[email protected]"
}
],
"payments": [
{
"id": "1",
"title": "Наличные",
"amount": 2500.00,
"total_sum": 4800.00
},
{
"id": "2",
"title": "Сертификат",
"amount": 1500.00,
"total_sum": 4800.00,
"certificate": {
"id": "1",
"code": "539",
"deposit": "1000",
"expiry": "2019-05-20 16:00:00"
}
},
{
"id": "3",
"title": "Банковский перевод",
"amount": 800.00,
"total_sum": 4800.00,
"wallet_id": "1"
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment