SNAP Direct Debit

API Services

Header Request

Header parameters for transaction request.

Header Response

Header parameters for transaction response.

Content-type: application/json  
X-TIMESTAMP: 2020-12-17T10:55:00+07:00  
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5  
ORIGIN: www.hostname.com  
X-PARTNER-ID: 82150  
X-EXTERNAL-ID: 41807553358950093184162180797837
CHANNEL-ID: 88001  

Body

Direct Debit Payment

POST /{version}/debit/payment-host-to-host

This API service is used for payment using direct debit.

Service Code: 54

Notes: - *is required

- Current version: v1.0

URL Path

Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/payment-host-to-host

Request Body

Please take note of request parameters there are specific parameters exclusively utilized for particular payment channels, such as for payment channels Dana Subs, LinkAja, and BRI Direct Debit.

Response Parameters Direct Debit Payment

{
    "partnerReferenceNo":"2020102900000000000008",
    "merchantId":"99999",
    "amount":{
        "value":"100.00",
        "currency":"IDR"
    },
    "validUpTo":"2023-03-31T23:00:00+07:00",
    "additionalInfo":{
        "channelCode":"722",
        "billDate":"2023-03-31T23:00:00+07:00",
        "billDescription":"SNAP Transaction",
        "phoneNo":"081274657847",
    }
}

To use the OVO Tokenized payment channel, users need to initially activate their phone numbers

Direct Debit Payment Status

POST /{version}/debit/status

This API service is used to check the direct debit payment status.

Service Code: 55

Notes: - *is required

- Current version: v1.0

URL Path

Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/status

Request Body

Response Parameters Direct Debit Payment Status

{
    "originalPartnerReferenceNo": "2020102900000000000001",
    "originalReferenceNo": "7139999985808445",
    "serviceCode": "55",
    "merchantId": "99999",
    "additionalInfo":
    {
        "channelCode": "713"
    }
}

Direct Debit Payment Cancel

POST /{version}/debit/cancel

The Direct Debit Payment Cancel API is used when there are cancelation of the payment.

Service Code: 57

Notes: - *is required

- Current version: v1.0

URL Path

Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/cancel

Request Body

Response Parameters Direct Debit Payment Cancel

{ 
   "originalPartnerReferenceNo":"2020102900000000000001", 
   "originalReferenceNo":"1653473625364758", 
   "merchantId":"99999", 
   "reason":"Network timeout", 
   "additionalInfo":{ 
       "channelCode":"302" 
   } 
} 

Payment Notification

Payment notification from Faspay to merchant backend will also be triggered an event of transaction status getting updated, to ensure merchant is securely informed. Please provide the URL and make sure it's already registered on Faspay system.

The detailed API reference can be found here

Integration Requirement

Integration need API & Credential Key.

Response Code

Response status consists of 2 components, the code (response code) and the description (response message).

Response Code List

Last updated