curl --location --request POST 'https://api.paybox.money/init_payment.php' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw \
'{
"pg_order_id": "3552",
"pg_merchant_id": 542088,
"pg_amount": 200.00,
"pg_description": "Заказ №052641",
"pg_auto_clearing": 1,
"pg_salt": "default",
"pg_receipt": {
"receipt_format": "ru_1_05",
"customer": {
"email": "customer@mail.ru"
},
"positions": [
{
"price": 50.00,
"name": "Товар №1",
"quantity": 2.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
},
{
"price": 100.00,
"name": "Товар №2",
"quantity": 1.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
]
},
"pg_sig": "{{Ваша подпись запроса}}"
}'
<?xmlversion="1.0"encoding="utf-8"?>
<response>
<pg_status>ok</pg_status>
<pg_payment_id>771889578</pg_payment_id>
<pg_redirect_url>https://paybox.money/pay.html?customer=8f613c0d0e874e40247c7b4d20d7b10e</pg_redirect_url>
<pg_redirect_url_type>needdata</pg_redirect_url_type>
<pg_salt>v0MKA0IJS8GhHwfr</pg_salt>
<pg_sig>{{Ваша подпись запроса}}</pg_sig>
</response>
curl--location--requestPOST'https://api.paybox.money/do_capture.php' \
--header'Content-Type: application/json' \
--data-raw \
'{
"pg_merchant_id": 542088,
"pg_payment_id": 764197452,
"pg_clearing_amount": 100,
"pg_salt": "default",
"pg_receipt": {
"receipt_format": "ru_1_05",
"customer": {
"email": "customer@mail.ru"
},
"positions": [
{
"price": 50.00,
"name": "Товар№1",
"quantity": 2.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
]
},
"pg_sig": "{{Ваша подпись запроса}}"
}'
curl --location --request POST 'https://api.paybox.money/v5/receipts' \
--header'Accept: application/json' \
--header'X-JWS-Signature:{{Ваш JWS-токен}}' \
--header'Content-Type: application/json' \
--data-raw \
'{
"receipt_format": "ru_1_05",
"merchant_id": 542088,
"payment_id": 764239789,
"operation_type": "sell",
"customer": {
"email": "customer@mail.ru"
},
"positions": [
{
"price": 50.00,
"name": "Товар№1",
"quantity": 2.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
},
{
"price": 100.00,
"name": "Товра№2",
"quantity": 1.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
],
"settlements": [
{
"type": "cashless",
"sum": 200.00
}
]
}'
{
"data": {
"merchant_id": "542088",
"receipt_id": "bb938d6c-6c1c-44a0-aa54-32c3e14fddb7",
"operation_type": "sell",
"receipt_format": "ru_1_05",
"status": "registered",
"fiscal_document_number": 10605,
"fiscal_storage_number": "9999078900006286",
"fiscal_attribute": 923085333,
"registered_at": "29.03.202317:37:00",
"created_at": "29.03.202320:39:16",
"fiscal_provider_id": "5e402526-0c20-41c3-b30a-b52e7f903922",
"positions": [
{
"name": "Товар №1",
"quantity": 2,
"price": 50,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods",
"sum": 100
},
{
"name": "Товар №2",
"quantity": 1,
"price": 100,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods",
"sum": 100
}
],
"total": 200,
"settlements": [
{
"type": "cashless",
"sum": 200
}
],
"company": {
"inn": "5544332219",
"email": "customer@mail.ru",
"tax_system": "osn",
"payment_address": "shop.ru"
},
"receipt_method": "separately",
"error": null,
"link": "https://consumer.1-ofd-test.ru/v1?fn=9999078900006286&fp=923085333&i=10605&t=20230329T173700&s=7&n=2",
"payment_id": "764239789"
}
}
curl --location --request POST 'https://api.paybox.money/v5/receipts' \
--header'Accept: application/json' \
--header'X-JWS-Signature:{{Ваш JWS-токен}}' \
--header'Content-Type: application/json' \
--data-raw \
'{
"receipt_format": "ru_1_05",
"merchant_id": 542088,
"payment_id": 754810596,
"offset": true,
"operation_type": "sell",
"customer": {
"email": "customer@mail.ru"
},
"positions": [
{
"price": 200.00,
"name": "Товар№1",
"quantity": 1.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
],
"settlements": [
{
"type": "prepayment",
"sum": 200.00
}
]
}'
{
"data": {
"merchant_id": "542088",
"receipt_id": "bb938d6c-6c1c-44a0-aa54-32c3e14fddb7",
"operation_type": "sell",
"receipt_format": "ru_1_05",
"status": "registered",
"fiscal_document_number": 10605,
"fiscal_storage_number": "9999078900006286",
"fiscal_attribute": 923085333,
"registered_at": "29.03.202317:37:00",
"created_at": "29.03.202320:39:16",
"fiscal_provider_id": "5e402526-0c20-41c3-b30a-b52e7f903922",
"positions": [
{
"name": "Товар №1",
"quantity": 1,
"price": 200,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods",
"sum": 200
}
],
"total": 200,
"settlements": [
{
"type": "prepayment",
"sum": 200
}
],
"company": {
"inn": "5544332219",
"email": "customer@mail.ru",
"tax_system": "osn",
"payment_address": "shop.ru"
},
"receipt_method": "separately",
"error": null,
"link": "https://consumer.1-ofd-test.ru/v1?fn=9999078900006286&fp=923085333&i=10605&t=20230329T173700&s=7&n=2",
"payment_id": "754810596"
}
}
curl --location --request POST 'https://api.paybox.money/revoke.php' \
--header 'Content-Type: application/json' \
--data-raw \
'{
"pg_merchant_id": 542088,
"pg_payment_id": 764197452,
"pg_refund_amount": 100,
"pg_salt": "default",
"pg_receipt": {
"receipt_format": "ru_1_05",
"customer": {
"email": "vinni@mail.ru"
},
"positions": [
{
"price": 100.00,
"name": "Товар №1",
"quantity": 1.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
]
},
"pg_sig": "{{Ваша подпись запроса}}"
}'
curl --location --request POST 'https://api.paybox.money/v5/receipts' \
--header 'Accept: application/json' \
--header 'X-JWS-Signature:{{Ваш JWS-токен}}' \
--header 'Content-Type: application/json' \
--data-raw \
'{
"receipt_format": "ru_1_05",
"merchant_id": 542088,
"refund_id": 764266262,
"operation_type": "sell_refund",
"customer": {
"email": "customer@mail.ru"
},
"positions": [
{
"price": 50.00,
"name": "Товар №1",
"quantity": 2.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
},
{
"price": 100.00,
"name": "Товар №2",
"quantity": 1.00,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods"
}
],
"settlements": [
{
"type": "cashless",
"sum": 200.00
}
]
}'
{
"data": {
"merchant_id": "542088",
"receipt_id": "bb938d6c-6c1c-44a0-aa54-32c3e14fddb7",
"operation_type": "sell_refund",
"receipt_format": "ru_1_05",
"status": "registered",
"fiscal_document_number": 10605,
"fiscal_storage_number": "9999078900006286",
"fiscal_attribute": 923085333,
"registered_at": "29.03.202317:37:00",
"created_at": "29.03.202320:39:16",
"fiscal_provider_id": "5e402526-0c20-41c3-b30a-b52e7f903922",
"positions": [
{
"name": "Товар №1",
"quantity": 2,
"price": 50,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods",
"sum": 100
},
{
"name": "Товар №2",
"quantity": 1,
"price": 100,
"vat_code": "vat_20",
"payment_method": "full_payment",
"payment_object": "goods",
"sum": 100
}
],
"total": 200,
"settlements": [
{
"type": "cashless",
"sum": 200
}
],
"company": {
"inn": "5544332219",
"email": "customer@mail.ru",
"tax_system": "osn",
"payment_address": "shop.ru"
},
"receipt_method": "separately",
"error": null,
"link": "https://consumer.1-ofd-test.ru/v1?fn=9999078900006286&fp=923085333&i=10605&t=20230329T173700&s=7&n=2",
"refund_id": "764266262"
}
}