Sipay API Documentation
    EN
    • EN
    • TR
    • Status Codes
    • 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
      • 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
    • Webhook
      • Webhook
    • Status Codes
      • Status Codes
    • Plugin
      • Magento v1
      • Magento v2
      • Opencart
      • Presta
      • Woocommerce
      • Shopify
    • Settings
      • DPL Settings
      • Settings Update

    Status Codes

    Server Status Codes#

    The API returns HTTP 200 for every outcome it produces. Read status_code in the response body to determine whether the request succeeded or failed (see section 4.0). All other HTTP status codes in this table are returned by the platform before the API runs.
    HTTP Status CodeDescription
    200OK. The API processed the request. Read status_code in the response body to determine the outcome.
    401Authentication failure. If the client omits the Accept: application/json header, the platform returns an HTML page. If the client sends the header, failed authentication returns HTTP 200 with status_code 101 or 1.
    404Resource Not Found. The requested path does not exist.
    405Method Not Allowed. The requested HTTP method is unsupported for the path. For example, GET /api/dpl/remove.
    429Too Many Requests. The platform limits the number of requests per minute.
    500Internal Server Error.
    503Service Unavailable.

    Application Status Codes#

    status_codeDescription
    1Authentication failed. The token has an invalid signature or has expired. The response body follows the same format as code 101, with code 1 and the message Unauthenticated (with no trailing period).
    100Successful. The API completed the requested operation.
    101Authentication failed. The client did not send a token or sent a value that is not a token. The response body also includes success, statuscode, and message with the corresponding values.
    1001Validation Error. status_description contains the first error. For request body or query validation, data.errors lists every invalid field and its messages. This code also applies when the merchant lacks DPL permission or is not allowed to use the requested link type, pre-auth, recurring payments, installment count, payment option, or currency.
    1022Not Found. The link does not exist, was removed, or belongs to another merchant. The details, update, and remove endpoints return the same code in all three cases. This code also applies when the merchant’s DPL settings do not exist.
    3047DPL Error. The amount is below the merchant’s minimum or above its maximum, the installment limit in an update exceeds the maximum supported by the merchant’s virtual POS, or the API could not save the link.
    422Failed. The API could not save the DPL settings.
    503Merchant inactive or restricted. An inactive merchant receives this code on every endpoint. A restricted merchant receives it on the create, update, and settings update endpoints.
    Next
    Getting Started
    Built with