Skip to main content

Transfer to E-Wallet

Process Flow

process-flow-sequence-diagram
Process Flow Sequence Diagram

Account Inquiry

  • Service Code: 37

  • URL

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

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-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
    2X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    3X-EXTERNAL-IDString36MandatoryUnique Identifier request must be unique each request3fa85f64-5717-4562-b3fc-2c963f66afa6
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    2amountJSON ObjectMandatory
    3amount.valueString19MandatoryTransaction amount, must be ended with .0010000.00
    4amount.currencyString3MandatoryCurrency based on ISOIDR
    5customerNumberString32MandatoryCustomer account number, in format 628xxx6281234567890
    6additionalInfoJSON Object
    7additionalInfo.channelStringMandatory
    E-Wallet Provider.
    Available provider are:
    • TOP_UP_E_WALLET_DANA
    • TRANSFER _E_WALLET_OVO
    • TRANSFER_E_WALLET_GOPAY
    • TRANSFER_E_WALLET_SHOPEEPAY
    TOP_UP_E_WALLET_DANA
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2003700
    2responseMessageString150MandatoryResponse MessageSuccessful
    3partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    4amountJSON ObjectMandatory
    5amount.valueString19MandatoryTransaction amount, must be ended with .0010000.00
    6amount.currencyString3MandatoryCurrency based on ISOIDR
    7customerNameString255MandatoryCustomer account nameJohn
    8customerNumberString32MandatoryCustomer account number, in format 628xxx6281234567890
  • Response Code:

    CodeDescription
    2003700Successful
    4003701Invalid field format
    4003702Invalid mandatory field
    4013700Unauthorized [reason]
    5003700Internal server error
    Example Request - Account Inquiry
    curl --location 'https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/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 'CHANNEL-ID: 9552' \
    --header 'Content-Type: application/json' \
    --data '{
    "partnerReferenceNo":" REF1234567890",
    "amount":{
    "value":"10000.00",
    "currency":"IDR"
    },
    "customerNumber":"6281234567890",
    "additionalInfo":{
    "channel":"TOP_UP_E_WALLET_DANA"
    }
    }'
    Example Response - Account Inquiry
    {
    "responseCode": "2003700",
    "responseMessage": " Successful ",
    "partnerReferenceNo": "REF1234567890",
    "amount": {
    "value": 10000.00,
    "currency": "IDR"
    },
    "customerName": "John",
    "customerNumber": "6281234567890"
    }

Create Transfer

  • Service Code: 38

  • URL

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

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-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
    2X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    3X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    2amountJSON ObjectMandatory
    3amount.valueString19MandatoryTransaction amount, must be ended with .0010000.00
    4amount.currencyString3MandatoryCurrency based on ISOIDR
    5customerNumberString32MandatoryCustomer account number, in format 628xxx6281234567890
    6additionalInfoJSON Object
    7additionalInfo.channelStringMandatory
    E-Wallet Provider.
    Available provider are:
    • TOP_UP_E_WALLET_DANA
    • TRANSFER _E_WALLET_OVO
    • TRANSFER_E_WALLET_GOPAY
    • TRANSFER_E_WALLET_SHOPEEPAY
    TOP_UP_E_WALLET_DANA
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2003800
    2responseMessageString150MandatoryResponse MessageSuccessful
    3partnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    4amountJSON ObjectMandatory
    5amount.valueString19MandatoryTransaction amount, must be ended with .0010000.00
    6amount.currencyString3MandatoryCurrency based on ISOIDR
    7customerNumberString32MandatoryCustomer account number, in format 628xxx6281234567890
  • Response Code:

    CodeDescription
    2003800Successful
    2003800Invalid field format
    4003802Invalid mandatory field
    4013800Unauthorized [reason]
    5003800Internal server error
    Example Request - Create Transfer
    curl --location 'https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/topup' \
    --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: 9552' \
    --header 'Content-Type: application/json' \
    --data '{"partnerReferenceNo":" REF1234567890","amount":{"value":"10000.00","currency":"IDR"},"customerNumber":"6281234567890","additionalInfo":{"channel":"TOP_UP_E_WALLET_DANA"}}'
    Example Response - Create Transfer
    {
    "responseCode": "2003800",
    "responseMessage": " Successful ",
    "partnerReferenceNo": "REF1234567890",
    "amount": {
    "value": 10000.00,
    "currency": "IDR"
    },
    "customerName": "Fulan",
    "customerNumber": "6281234567890"
    }

Get Transfer Status

  • Service Code: 39

  • URL

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

  • Content Type: application/json

  • Request Header:

    NoNameTypeLengthRequiredDescriptionExample
    1X-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
    2X-PARTNER-IDString36MandatoryIdentifier id client generated by Cash InCID12345678910
    3X-EXTERNAL-IDString36Mandatory

    Unique Identifier request must be unique each request

    Numeric string

    31758165311269888980939441231201
    4X-SIGNATUREStringVariableMandatorySignature generated using Asymmetric Asymmetric SNAP Method
    5CHANNEL-IDString5MandatoryDigits9501
  • Request Body:

    NoNameTypeLengthRequiredDescriptionExample
    1originalPartnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    2serviceCodeString2MandatoryTransaction type indicator is based on the service code38
  • Response Body:

    NoNameTypeLengthRequiredDescriptionExample
    1responseCodeString7MandatoryResponse Code2003900
    2responseMessageString150MandatoryResponse MessageSuccessful
    3originalPartnerReferenceNoString64MandatoryTransaction identifier on Merchant SystemREF1234567890
    4originalReferenceNoString64MandatoryTransaction identifier on Cash In SystemTF1234567890
    5serviceCodeString2MandatoryTransaction type indicator is based on the service code38
    6amountJSON ObjectMandatory
    7amount.valueString19MandatoryTransaction amount, must be ended with .0010000.00
    8amount.currencyString3MandatoryCurrency based on ISOIDR
    9latestTransactionStatusString2MandatoryStatus of the latest transaction00
    10latestTransactionDescString50MandatoryDescription of transaction statusSuccess
  • Response Code:

    CodeDescription
    2003900Successful
    2003900Invalid field format
    4003902Invalid mandatory field
    4013900Unauthorized [reason]
    5003900Internal server error
    Example Request - Get Transfer Status
    curl --location 'https://sandbox-api.cashin.co.id/pg/fo/api/v1.0/emoney/topup-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: 9552' \
    --header 'Content-Type: application/json' \
    --data '{"originalPartnerReferenceNo":" REF1234567890","serviceCode":"38"}'
    Example Response - Get Transfer Status
    {
    "responseCode": "2003900",
    "responseMessage": "Successful",
    "originalPartnerReferenceNo": "REF1234567890",
    "originalReferenceNo": " TF1234567890",
    "serviceCode": "38",
    "amount": {
    "value":10000.00,
    "currency": "IDR"
    },
    "latestTransactionStatus": "00",
    "latestTransactionDesc": "Success"
    }