Skip to main content

Transfer to Bank

Process Flow

open-api-flow-process
Open API Flow Process

API Account Inquiry

  • Service Code: 42

  • URL

    Sandbox
    https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/bank-account-inquiry
    Production
    https://api.cashin.co.id/pg/fo/api/v1.0/emoney/bank-account-inquiry
    Relative path url for signature
    /api/v1.0/emoney/bank-account-inquiry
  • Method: POST

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    2X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    3X-TIMESTAMPString25MandatoryTransaction date format in YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)2024-03-01T14:56:11+07:00
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF0123456789
    2customerNumberString64MandatoryCustomer Number (same as beneficiaryAccountNumber)081234567890
    3beneficiaryAccountNumberNumber36OptionalBeneficiary Account No74744523232
    4beneficiaryBankCodeString50MandatoryBank Code10
    5amountJSON ObjectMandatory
    6amount.valueStringMandatoryAmount Value
    7amount.currencyStringMandatoryAmount Currency
    8additionalInfoJSON Object25Mandatory
    9additionalInfo.channelString25Optional deault(DIRECT_API)Merchant id provide from Cash In
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2004300
    2responseMessageString150MandatoryResponse MessageSuccess
    3partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    4referenceNoString64MandatoryTransaction identifier on Cash In SystemTF1234567890
    5beneficiaryAccountNumberString25MandatoryBeneficiary Account No74744523232
    6beneficiaryAccountNameStringMandatoryBeneficiary Account Name
    7beneficiaryBankCodeStringMandatoryBeneficiary Bank Code
    8beneficiaryBankNameStringMandatoryBeneficiary Bank Name
    9amountJSON ObjectMandatory
    10amount.valueStringMandatoryAmount Value
    11amount.currencyStringMandatoryAmount Currency
  • Response Code:

    CodeDescription
    2004200Success
    2024200Request In Progress
    4004200Bad Request
    4004201Invalid Field Format
    4004202Invalid Mandatory Field
    4014200Unauthorized. (reason)
    5004200Internal Server Error
    Example Request - Account Inquiry
    curl --location 'https://sandbox-api.cashin.co.id/pg-fo/api/v1.0/emoney/bank-account-inquiry' \
    --header 'X-TIMESTAMP: 2024-03-01T14:56:11+07:00' \
    --header 'X-PARTNER-ID: CID1234567890 ' \
    --header 'X-EXTERNAL-ID: 3fa85f64-5717-4562-b3fc-2c963f66afa6' \
    --header 'X-SIGNATURE: 1iND8TUKOnGvH4TIFsQB5cCvtYyQKvJrmdpqjgQaLLLiHXdmWsVX8SAnmdq7dWWeKtfl1SKovegk9nwCmjXFHg==' \
    --header 'Content-Type: application/json' \
    --data '{
    "partnerReferenceNo":"REF0123456789",
    "customerNumber":"081234567890",
    "beneficiaryAccountNumber":"74744523232",
    "beneficiaryBankCode":"10",
    "amount":{
    "value":”10000”,
    "currency":"IDR"
    },
    "additionalInfo":{
    "merchantId":"MCH1234567890"
    }
    }'
    Example Response - Account Inquiry
    {
    "responseCode": "2004200",
    "responseMessage": "Successful",
    "partnerReferenceNo": "REF1234567890",
    "referenceNo": "TF1234567890",
    "beneficiaryAccountNumber": "74744523232",
    "beneficiaryAccountName": "Fulan",
    "beneficiaryBankCode": "10",
    "beneficiaryBankName": "Imaginary Bank",
    "amount": {
    "value": "10000",
    "currency": "IDR"
    }
    }

API Transfer

  • Service Code: 43

  • URL

    Sandbox
    https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/transfer-bank
    Production
    https://api.cashin.co.id/pg/fo/api/v1.0/emoney/transfer-bank
    Relative path url for signature
    /api/v1.0/emoney/transfer-bank
  • Method: POST

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    2X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    3X-TIMESTAMPString25MandatoryTransaction date format in YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)2024-03-01T14:56:11+07:00
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    2customerNumberString64MandatoryCustomer Number (same as beneficiaryAccountNumber)74744523232
    3beneficiaryAccountNumberNumber36OptionalBeneficiary Account No74744523232
    4beneficiaryBankCodeString50MandatoryBank Code10
    5amountJSON ObjectMandatory
    6amount.valueStringMandatoryAmount Value
    7amount.currencyStringMandatoryAmount Currency
    8additionalInfoJSON Object25Mandatory
    9additionalInfo.methodString25MandatoryDIRECT
    10additionalInfo.beneficaryAccountNameString100MandatoryCustomer Account Name
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2004300
    2responseMessageString150MandatoryResponse MessageSuccess
    3partnerReferenceNoString64MandatoryTransaction identifier on Merchant System123
    4referenceNoString64MandatoryTransaction identifier on Cash In SystemTF123
    5transactionDateString25MandatoryTransaction Date. ISODateTime with standar ISO-86012024-03-01T14:56:11+07:00
  • Response Code:

    CodeDescription
    2004300Success
    2024300Request In Progress
    4004300Bad Request
    4004301Invalid Field Format
    4004302Invalid Mandatory Field
    4014300Unauthorized. (reason)
    5004300Internal Server Error
    Example Request - API Transfer
    curl --location 'https://sandbox-api.cashin.co.id/pg-fo/api/v1.0/emoney/transfer-bank' \
    --header 'X-TIMESTAMP: 2024-03-01T14:56:11+07:00' \
    --header 'X-PARTNER-ID: CID1234567890 ' \
    --header 'X-EXTERNAL-ID: 3fa85f64-5717-4562-b3fc-2c963f66afa6' \
    --header 'X-SIGNATURE: 1iND8TUKOnGvH4TIFsQB5cCvtYyQKvJrmdpqjgQaLLLiHXdmWsVX8SAnmdq7dWWeKtfl1SKovegk9nwCmjXFHg==' \
    --header 'CHANNEL-ID: 95051' \
    --header 'Content-Type: application/json' \
    --data '{
    "partnerReferenceNo":"REF1234567890",
    "customerNumber":"74744523232",
    "beneficiaryAccountNumber":"74744523232",
    "beneficiaryBankCode":"10",
    "amount":{
    "value":"10000",
    "currency":"IDR"
    },
    "additionalInfo":{
    "method":"DIRECT",
    "beneficaryAccountName":"Fulan"
    }
    }'
    Example Response - API Transfer
    {
    "responseCode": "2004300",
    "responseMessage": "Successful",
    "partnerReferenceNo": "REF1234567890",
    "referenceNo": "TF1234567890",
    "transactionDate": "2024-03-01T14:56:11+07:00"
    }

API Status Transfer

  • Service Code: 01

  • URL

    Sandbox
    https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/transfer-bank-status
    Production
    https://api.cashin.co.id/pg/fo/api/v1.0/emoney/transfer-bank-status
    Relative path url for signature
    /api/v1.0/emoney/transfer-bank-status
  • Method: POST

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    2X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    3X-TIMESTAMPString25MandatoryTransaction date format in YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)2024-03-01T14:56:11+07:00
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1originalPartnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    2serviceCodeString2MandatoryService code of get status transfer01
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2000100
    2responseMessageString150MandatoryResponse MessageSuccessful
    3originalPartnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    4originalReferenceNoString64MandatoryTransaction identifier on Cash In SystemTF1234567890
    5serviceCodeString2MandatoryService code of get status transfer01
    6transactionDateString25MandatoryTransaction Date. ISODateTime with standar ISO-86012024-03-01T14:56:11+07:00
    7beneficiaryAccountNoString30MandatoryBank Account Number37502323223
    8beneficiaryBankCodeString4MandatoryBank Code451
    9latestTransactionStatusString3Mandatory00 - Success
    01 - Initiated
    02 - Paying
    03 - Pending
    04 - Refunded
    05 - Canceled
    06 - Failed
    07 - Not found
    00
    10transactionStatusDescString50MandatoryDescription of latestTransactionStatusSuccess
  • Response Code:

    CodeDescription
    2000100Success
    2020100Request In Progress
    4000100Bad Request
    4000101Invalid Field Format
    4000102Invalid Mandatory Field
    4010100Unauthorized. (reason)
    5000100Internal Server Error
    Example Request - API Status Transfer
    curl --location 'https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/transfer-bank-status' \
    --header 'X-TIMESTAMP: 2024-03-01T14:56:11+07:00' \
    --header 'X-PARTNER-ID: CID1234567890' \
    --header 'X-EXTERNAL-ID: 3fa85f64-5717-4562-b3fc-2c963f66afa6' \
    --header 'X-SIGNATURE: 1iND8TUKOnGvH4TIFsQB5cCvtYyQKvJrmdpqjgQaLLLiHXdmWsVX8SAnmdq7dWWeKtfl1SKovegk9nwCmjXFHg==' \
    --header 'CHANNEL-ID: 9051' \
    --header 'Content-Type: application/json' \
    --data '{"originalPartnerReferenceNo":"REF1234567890","serviceCode":"01"}'
    Example Response - API Status Transfer
    {
    "responseCode": "2004300",
    "responseMessage": "Successful",
    "partnerReferenceNo": "REF1234567890",
    "referenceNo": "TF1234567890",
    "transactionDate": "2024-03-01T14:56:11+07:00"
    }

API Transfer Notify

  • Service Code: 43

  • URL

    Sandbox
    {MERCHANT_URL_SANDBOX}/v1.0/emoney/transfer/notify
    Production
    {MERCHANT_URL_PROD}/v1.0/emoney/transfer/notify
    Relative path url for signature
    https://test.id/api/v1.0/emoney/transfer-bank/notify
  • Method: POST

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    2X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    3X-TIMESTAMPString25MandatoryTransaction date format in YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)2024-03-01T14:56:11+07:00
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1originalPartnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemTRX0001
    2originaReferenceNoString64MandatoryTransaction identifier on Cash In SystemTRF0123213213
    3latestTransactionStatusNumber2Mandatory00 - Success
    03 - Pending
    06 - Failed
    00
    4transactionStatusDescString50MandatoryDesc of StatusSuccess
    5amountJSON ObjectMandatory
    6amount.valueStringMandatoryAmount Value1000.00
    7amount.currencyStringMandatoryAmount CurrencyIDR
    8feeAmountJSON ObjectMandatory
    9feeAmount.valueStringMandatoryFeeAmount Value100.00
    10feeAmount.currencyStringMandatoryFee Amount CurrencyIDR
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2004300
    2responseMessageString150MandatoryResponse MessageSuccessful
  • Response Code:

    CodeDescription
    2004300Success
    2024300Request In Progress
    4004300Bad Request
    4004301Invalid Field Format
    4004302Invalid Mandatory Field
    4014300Unauthorized. (reason)
    5004300Internal Server Error
    Example Request - API Transfer Notify
    curl --location --request POST 'https://test.id/ v1.0/emoney/transfer /notify ' \
    --header 'X-TIMESTAMP: 2025-04-11T10:42:53.352+07:00' \
    --header 'X-PARTNER-ID: CID173701069947375062' \
    --header 'X-EXTERNAL-ID: 123' \
    --header 'X-SIGNATURE: 2LxrHCEHWj/j7rE2ZNMEs7sq7Nsd0KPkH8J6ZucPTlM=' \
    --header 'Content-Type: application/json' \
    --data-raw '{
    "originalPartnerReferenceNo": "TRX01",
    "originalReferenceNo": "TRF00023232323232",
    "latestTransactionStatus": "00",
    "transactionStatusDesc": "success"
    "amount": {
    "value": "1000.00",
    "currency": "IDR"
    },
    "feeAmount": {
    "value": "100.00",
    "currency": "IDR"
    }
    }
    '
    Example Response - API Transfer Notify
    {
    "responseCode": "2004300",
    "responseMessage": "Successful",
    }