Пример запроса

POST /card/1-1/operations/payout HTTP/1.1
W1-Signature: czK2kHwRyLIIgP5dpfzrJxCYixCm0appKfRbWfyPGcX0c8vYOkSL+++XwdRyQ0KkIwa8Em7v0LqavXEY5/EugvfBxPRCVvbx1rd9y8Vj6NlB4RsCxVAN8d9LE67Ie1DM+veXsgxOPqsUTsAaGKX9yemB/IXatBvyNC30ui4vWg/C8G1xUQWJ5OdlXHZYdHgSHftFcNuoUASLXL7ZKGLr4WgH1Df8hZKzhHCQJObK6a2vZEQ6dkE1JNoYaZCJFVExsngDEQVbJOEmatPdt6s8GbQHkzbeYnhHtdcmUS348cZOeIy/G3GlODmhzYIepg214bywhjJm9i4Sm0qYZvzMqQ==
Content-Type: application/json
Host: payment.flexo.systems
Content-Length: 608

{
  "notification" : {
    "url" : "http://127.0.0.1:8080/test/callback/default/",
    "version" : 1
  },
  "externalId" : "ext#20",
  "amount" : {
    "amount" : 10.55,
    "currency" : "USD"
  },
  "receiver" : {
    "paymentMethod" : {
      "entity" : {
        "pan" : "4111111111111111",
        "expMonth" : 5,
        "expYear" : 2030
      },
      "type" : "NO_CVV_CARD"
    },
    "name" : "IVAN",
    "surname" : "IVANOV",
    "info" : {
      "ip" : "127.0.0.1"
    }
  },
  "merchantParameters" : {
    "param1" : "anything you want for callback",
    "param2" : null,
    "param3" : null
  }
}

Пример запроса с токеном

Для выплат можно использовать

  • PAYOUT_TOKEN, он приходит в callback к любой покупке.

  • RECURRING_TOKEN, его нужно "заказать" при покупке. Использование рекурентых платежей регулируется настройками.

POST /card/1-1/operations/payout HTTP/1.1
W1-Signature: G6sVYjrQ2oyTflCt5bt3EfIO+i8CLex9/J6D+YjU+iaSM28KiE9rcjo6vm2B2K1sVRIRNxNYNLCzGkNn9Ccb68L4namTGF84Ic/qbe3lGsaQ3EAjCyimX+GKdSVgGWW98x2FWCECx4p09KkkV6XAd72PyOfZzsJB1mNO9eXV/lgmLce+t6DKzlUYRSmHOmSbOW0zTBsI7ClqCpkx8Y5gyFALK/QY7BIgJzVA7LvFiVoluQTlR6c4W+MeMUXGGGx+i1StLpOEjl2/lDuLH/dztX+uRkQNPKHppb2PuHFGEqVdgVFQHTCPgJAKHCdk2rYHvW5NJDUCAIg5Y+G3Qv8fcA==
Content-Type: application/json
Host: payment.flexo.systems
Content-Length: 575

{
  "notification" : {
    "url" : "http://127.0.0.1:8080/test/callback/default/",
    "version" : 1
  },
  "externalId" : "ext#30",
  "amount" : {
    "amount" : 10.55,
    "currency" : "USD"
  },
  "receiver" : {
    "paymentMethod" : {
      "entity" : {
        "id" : "payoutToken-411111-something-1111"
      },
      "type" : "PAYOUT_TOKEN"
    },
    "name" : "IVAN",
    "surname" : "IVANOV",
    "info" : {
      "ip" : "127.0.0.1"
    }
  },
  "merchantParameters" : {
    "param1" : "anything you want for callback",
    "param2" : null,
    "param3" : null
  }
}

Пример ответа

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 166

{
  "operationId" : "1-1-a-17",
  "status" : "SUCCEEDED",
  "type" : "PAYOUT",
  "externalId" : "ext#20",
  "params" : { },
  "actions" : {
    "required" : [ ]
  }
}