1. Cashout
Sipay API Documentation
EN
  • EN
  • TR
  • Overview
    • Getting Started
    • Test Cards
    • IP Restriction
  • Authentication
    • Token Generation
      POST
  • Installments & Commission
    • Installment Details
      POST
    • Commission
      POST
    • Merchant Installments
      POST
  • HASH
    • Hash Creation
    • Hash Validation
  • Non-3DS Payment
    • Non-3DS Payment Flow
    • Non-3DS Card Payment
      POST
    • Non-3DS Recurring Payment
      POST
    • Non-3DS Insurance Payment
      POST
    • Non-3DS Pre-Authorization Payment
      POST
    • Confirm Payment
      POST
  • 3D Secure Payment
    • 3D Secure Payment Flow
    • 3D Secure Card Payment
      POST
    • 3D Secure Recurring Payment
      POST
    • 3D Secure Pre-Authorization Payment
      POST
    • Complete Payment
      POST
    • Confirm Payment
      POST
    • 3D Secure Agriculture Payment
      POST
  • Non-3DS and 3DS Payment with Sipay
    • Purchase Link Example
    • Non-3DS and 3D Secure Payment with Sipay
  • DPL
    • DPL
    • Status Codes
    • Options for Creating a DPL
    • Create DPL
    • List Payment Links
    • Payment Link Details
    • Update DPL
    • Remove DPL
  • Check Status
    • Check Status
  • Payment with Saved Card
    • Card Registration
    • 3D Secure Pay by Card Token
    • Non-3DS Pay by Card Token
    • Retrieving Saved Card
    • Edit Saved Card
    • Delete Saved Card
  • Recurring
    • Recurring Query Search
    • Recurring Plan Process
    • Recurring Plan Update
  • Refund
    • Refund
  • Cashout
    • Cashout to Bank
      POST
  • Webhook
    • Webhook
  • Status Codes
    • Status Codes
  • Plugin
    • Magento v1
    • Magento v2
    • Opencart
    • Presta
    • Woocommerce
    • Shopify
  • Settings
    • DPL Settings
    • Settings Update
  1. Cashout

Cashout to Bank

Testing
Testing Env
https://provisioning.sipay.com.tr
Testing Env
https://provisioning.sipay.com.tr
POST
/ccpayment/api/cashout/tobank
This API is used to cash out funds from a Sipay account to a bank account. Funds can also be transferred to customers’ bank accounts.
The API supports single or multiple withdrawal transactions based on the provided bank account details.
Data values can be an array. In case of multiple unsuccessful cash outs, the unsuccessful reasons will be in it.
Send the 64-character hexadecimal Hash v2 signature in the request hash_key field. Use your merchant app_secret as the HMAC-SHA256 key. Join the request values with | in this order: sum_of_amount_column|first_row_iban|first_row_amount|first_row_currency|first_row_gsm. Sign the values exactly as sent. Keep an empty position for a signed field that may be empty. The pipe character is reserved for separating signed values. Sipay sums all row amounts. Format that sum with exactly two decimal places. Sign the first row values as sent, including the leading + in its GSM number when present.
Sample hash keys can be found in the request form panel on the side, corresponding to the selected programming language.
An example of the hash algorithm is included in the request.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
#!/usr/bin/env bash
set -euo pipefail

# Example values. Load your merchant app_secret on your server.
# Format the sum of all row amounts with two decimal places. Use the first row values as sent.
parts=(
  "100.00" # sum_of_amount_column
  "TR000000000000000000000000" # first_row_iban
  "100.00" # first_row_amount
  "TRY" # first_row_currency
  "+905550000000" # first_row_gsm
)
app_secret="example_app_secret"

message=$(IFS='|'; printf '%s' "${parts[*]}")
printf '%s' "$message" | openssl dgst -sha256 -hmac "$app_secret" -r | awk '{print $1}'
Response Response Example
{
  "app_id": "xxx",
  "app_secret": "xxx",
  "merchant_key": "xxx",
  "pf_id": 39048,
  "name": "John Doe",
  "vkn": 7483494730,
  "tckn": 83593451321,
  "city": "Istanbul",
  "address": "Sokak ABC, Istanbul, Turkey",
  "iso_country_code": 742,
  "post_code": 48400,
  "site_url": "https://site.com",
  "hash_key": "xx:xx=="
}
Previous
Refund
Next
Webhook
Built with