Примеры http-нотификаций#
Подсказка
sandbox: https://api-sand.podeli.ru ip нотификации 84.201.173.172
Авторизация для вебхуков не предусмотрена.
Внимание
Обращаем ваше внимание, что нотификации содержат параметр statusDateTime. Просим вас обрабатывать их на своей стороне в правильном порядке
1. APPROVED#
Заявка на оплату через «Подели» одобрена.
Нотификация на статус APPROVED
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "APPROVED",
"statusName": "Заявка одобрена",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [],
"refund": []
}
2. COMPLETED#
Первый платеж по заказу оплачен.
Нотификация на статус COMPLETED
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "COMPLETED",
"statusName": "Заказ оплачен",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [
{
"paymentNumber": "1",
"paymentDate": "2023-01-01T18:59",
"paymentAmount": 4000.00,
"statusName": "Платеж совершен успешно"
},
{
"paymentNumber": "2",
"paymentDate": "2023-01-15T15:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
},
{
"paymentNumber": "3",
"paymentDate": "2023-01-29T15:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
},
{
"paymentNumber": "4",
"paymentDate": "2023-02-12T15:00:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
}],
"refund": []
}
3. CANCELLED#
Заказ отменен по сроку жизни.
Нотификация на статус CANCELLED
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "CANCELLED",
"statusName": "Отмена заявки",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [],
"refund": []
}
4. REJECTED#
Заявка на оплату через «Подели» отклонена
Нотификация на статус REJECTED
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "REJECTED",
"statusName": "Отказ по заявке",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [],
"refund": []
}
5. WAIT_FOR_COMMIT#
Заявка на оплату через «Подели» одобрена, первый платеж захолдирован. Заказ ожидает подтверждения от Магазина-Партнера.
Нотификация на статус WAIT_FOR_COMMIT
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "WAIT_FOR_COMMIT",
"statusName": "Ожидается подтверждение заказа Магазином-Партнером",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [],
"refund": []
}
6. REFUNDED#
Успешный возврат по заказу
Нотификация на статус REFUNDED
json
{
"order":
{
"id": "order_number",
"amount": 12000.00,
"prepaidAmount": 1000.00,
"amountOrder": 13000.00,
"statusCode": "REFUNDED",
"statusName": "Возврат заказа",
"statusDateTime": "2023-01-01T18:59:29.000000",
"date": "2023-01-01",
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"article": "3ABC14858383D",
"name": "Кроссовки мужские",
"amount": 2500.00,
"quantity": 2,
"itemPrepaidAmount": 200.00
},
{
"id": "a72146ce-af5c-49ab-b431-a5bdcf9a61b5",
"article": "1HBC14858293F",
"name": "Зимняя куртка мужская",
"amount": 3000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
},
{
"id": "1b168268-cd81-46ce-814f-dedecab54941",
"article": "1B9F9F8S92F3D",
"name": "Микроволновка",
"amount": 4000.00,
"quantity": 1,
"itemPrepaidAmount": 300.00
}]
},
"clientInfo":
{
"firstName": "*",
"lastName": "*",
"middleName": "*",
"birthdate": "0001-01-01",
"phone": "*",
"email": "*"
},
"paymentSchedule": [
{
"paymentNumber": "1",
"paymentDate": "2023-01-01T18:59",
"paymentAmount": 4000.00,
"statusName": "Платеж совершен успешно"
},
{
"paymentNumber": "2",
"paymentDate": "2023-01-15T15:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
},
{
"paymentNumber": "3",
"paymentDate": "2023-01-29T15:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
},
{
"paymentNumber": "4",
"paymentDate": "2023-02-12T15:00:00",
"paymentAmount": 4000.00,
"statusName": "Платеж запланирован"
}],
"refund": [
{
"id": "refund_number",
"status": "Возврат обработан, денежные средства возмещены клиенту",
"refundDate": "2023-01-02T18:00:00.000000",
"totalRefundedAmount": 2500.00,
"refundedPrepaidAmount": 200.00,
"refundedAmountCredit": 2500.00,
"items": [
{
"id": "30b925fb-42ae-469d-960e-7cb093d8867e",
"refundedQuantity": 1,
"refundedAmount": 2500.00,
"refundedPrepaidAmount": 200.00
}]
}]
}