0% found this document useful (0 votes)
56 views7 pages

Sandbox Documentation Guideline - Retail VA - Create VA

The document provides guidelines for testing the Mandiri API sandbox including: 1. A test case to create a virtual account with expected success response code and message. 2. Guidelines for sandbox testing documentation including capturing the full request and response, using landscape format with 4 columns, and including important request and response details. 3. Important details to include in the request documentation such as the full endpoint, headers, and complete body. 4. Important details to include in the response documentation such as the complete body response.

Uploaded by

muhammadshatala9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views7 pages

Sandbox Documentation Guideline - Retail VA - Create VA

The document provides guidelines for testing the Mandiri API sandbox including: 1. A test case to create a virtual account with expected success response code and message. 2. Guidelines for sandbox testing documentation including capturing the full request and response, using landscape format with 4 columns, and including important request and response details. 3. Important details to include in the request documentation such as the full endpoint, headers, and complete body. 4. Important details to include in the response documentation such as the complete body response.

Uploaded by

muhammadshatala9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Test Case Document

Mandiri API
Sandbox 1.0 Doc v1.0
Guideline on the Expected Sandbox Activity
Sandbox 1.0 Doc v1.0 Retail Virtual Account – Create VA

No Service Scenario Expected Result Request Response Result Notes


Header {
X-PARTNER-ID : SANDBOX "responseCode": "2002700",
X-EXTERNAL-ID : 202701 "responseMessage": "Successful",
"virtualAccountData": {
Body "partnerServiceId": " 89661",
{ "customerNo": "8966112900000391",
"partnerServiceId": "89661", "virtualAccountNo": "
"customerNo": "8966112900000391", 8966112900000391",
"virtualAccountNo": "8966112900000391", "virtualAccountName": "Jokul Doe",
"virtualAccountName": "Jokul Doe", "virtualAccountEmail": "[email protected]",
"virtualAccountEmail": "[email protected]", "virtualAccountPhone": "6281828384858",
"virtualAccountPhone": "6281828384858", "trxId": "abcd12346",
"trxId": "abcd12346", "totalAmount": {
"responseCode":
"totalAmount": { "value": "75000.00",
CreateV Success - "2002700",
1 "value": "75000.00", "currency": "IDR"
A Create VA "responseMessage":
"currency": "IDR" },
"Success"
}, "billDetails": [
"billDetails": [ {
{ "billCode": "01",
"billAmount": { "billAmount": {
"value": "75000.00", "value": "75000.00",
"currency": "IDR" "currency": "IDR"
} }
} }
], ],
"expiredDate": "2022-14-12T23:59:59+07:00" "expiredDate": "2022-14-
} 12T23:59:59+07:00"
}
}

Notes :
1. Make sure perform all the test case
2. Sandbox testing will be considered as passed if all the test case passed
3. Make sure your test documentation is following the provided documentation guideline
Guideline on the Expected Sandbox Documentation
1 Open the postman console then click the restore down icon

2 - Set the postman console window as big as half of your screen


- Do the screen capture within this desired postman console window
size

3 - The expected documentation should be in landscape format and contain


4 columns : No, Test Case, Request and Response
- Put test case set being reported & your company name on top of the
document
- Place the screen capture of Request and Response on the documentation
for each of prepared test case
- Make sure the screen capture contain all of the important parts as
explained on the next page
- For non postman tools, make sure all of the expected parts are reported
and easy to be read (no need to zoom in)
Request Part
1 2 Important Part on Request Documentation
3 1. Make sure the screen capture contain full path of the endpoint
being tested
2. Make sure the screen capture contain the HTTP response
3. Make sure the screen capture contain the complete header
request. If the complete request header can’t be captured within
1 shot, please do another shot and override the incomplete part.
4. Make sure the screen capture contain the complete body
request. If the complete body request can’t be captured within 1
shot, please do another shot and override the incomplete part.

Postman console
Response Part
Important Part on Response Documentation
1 1. Make sure the screen capture contain the complete body
response. If the complete body response can’t be captured
within 1 shot, please do another shot and override the
incomplete part.
Postman console
Sandbox 1.0 Doc v1.0 Retail Virtual Account – Create VA

No Service Scenario Expected Result Request Response Result Notes

Header {
X-PARTNER-ID : SANDBOX "responseCode": "2002700",
X-EXTERNAL-ID : 202701 "responseMessage": "Successful",
"virtualAccountData": {
Body "partnerServiceId": " 89661",
{ "customerNo": "8966112900000391",
"partnerServiceId": "89661", "virtualAccountNo": " 8966112900000391",
"customerNo": "8966112900000391", "virtualAccountName": "Jokul Doe",
"virtualAccountNo": "8966112900000391", "virtualAccountEmail": "[email protected]",
"virtualAccountName": "Jokul Doe", "virtualAccountPhone": "6281828384858",
"virtualAccountEmail": "[email protected]", "trxId": "abcd12346",
"virtualAccountPhone": "6281828384858", "totalAmount": {
"trxId": "abcd12346", "value": "75000.00",
Success - Create "responseCode": "2002700", "totalAmount": { "currency": "IDR"
1 CreateVA
VA "responseMessage": "Success" "value": "75000.00", },
"currency": "IDR" "billDetails": [
}, {
"billDetails": [ "billCode": "01",
{ "billAmount": {
"billAmount": { "value": "75000.00",
"value": "75000.00", "currency": "IDR"
"currency": "IDR" }
} }
} ],
], "expiredDate": "2022-14-12T23:59:59+07:00"
"expiredDate": "2022-14-12T23:59:59+07:00" }
} }

Header {
X-PARTNER-ID : SANDBOX "responseCode": "4042712",
X-EXTERNAL-ID : 502701 "responseMessage": "Invalid bill/virtual account
{Duplicate TrxId/Virtual Account}",
Body "virtualAccountData": {
{ "partnerServiceId": " 89661",
"partnerServiceId": " 89661", "customerNo": "8966112900000391",
"customerNo": "8966112900000391", "virtualAccountNo": " 8966112900000391",
"virtualAccountNo": " 8966112900000391", "virtualAccountName": "Jokul Doe",
"virtualAccountName": "Jokul Doe", "virtualAccountEmail": "[email protected]",
"virtualAccountEmail": "[email protected]", "virtualAccountPhone": "6281828384858",
{ "virtualAccountPhone": "6281828384858", "trxId": "abcd12346",
"responseCode": "4042712", "trxId": "abcd12346", "totalAmount": {
Failed - Duplicate "responseMessage": "Invalid "totalAmount": { "value": "75000.00",
2 CreateVA "value": "75000.00", "currency": "IDR"
VA No/Trx Id bill/virtual account {Duplicate
TrxId/Virtual Account}" "currency": "IDR" },
} }, "billDetails": [
"billDetails": [ {
{ "billCode": "01",
"billAmount": { "billAmount": {
"value": "75000.00", "value": "75000.00",
"currency": "IDR" "currency": "IDR"
} }
} }
], ],
"expiredDate": "2022-14-12T23:59:59+07:00" "expiredDate": "2022-14-12T23:59:59+07:00"
} }
}

Header {
X-PARTNER-ID : SANDBOX "responseCode": "4002701",
X-EXTERNAL-ID : 402701 "responseMessage": "Invalid Field Format
{virtualAccountNo}",
Body "virtualAccountData": {
{ "partnerServiceId": " 89661",
"partnerServiceId": " 89661", "customerNo": "896611290000039",
"customerNo": "896611290000039", "virtualAccountNo": " 896611290000039",
"virtualAccountNo": " 896611290000039", "virtualAccountName": "Jokul Doe",
"virtualAccountName": "Jokul Doe", "virtualAccountEmail": "[email protected]",
"virtualAccountEmail": "[email protected]", "virtualAccountPhone": "",
"virtualAccountPhone": "6281828384858", "trxId": "abcd12346",
"trxId": "abcd12346", "totalAmount": {
"responseCode": "4002701", "totalAmount": { "value": "75000.00",
Failed - Invalid "value": "75000.00", "currency": "IDR"
"responseMessage": "Invalid
3 CreateVA format VA less "currency": "IDR" },
Field Format
then 16 char }, "billDetails": [
{virtualAccountNo}"
"billDetails": [ {
{ "billCode": null,
"billAmount": { "billName": null,
"value": "75000.00", "billShortName": null,
"currency": "IDR" "billAmount": {
} "value": "75000.00",
} "currency": "IDR"
], }
"expiredDate": "2022-14-12T23:59:59+07:00" }
} ],
"expiredDate": "2022-14-12T23:59:59+07:00"
}
}
Header {
X-PARTNER-ID : SANDBOX "responseCode": "4002701",
X-EXTERNAL-ID : 402703 "responseMessage": "Invalid Field Format
{partnerServiceId}",
Body "virtualAccountData": {
{ "partnerServiceId": " 89661",
"partnerServiceId": " 89661", "customerNo": "8966212900000392",
"customerNo": "8966212900000392", "virtualAccountNo": " 8966212900000392",
"virtualAccountNo": " 8966212900000392", "virtualAccountName": "Jokul Doe",
"virtualAccountName": "Jokul Doe", "virtualAccountEmail": "[email protected]",
"virtualAccountEmail": "[email protected]", "virtualAccountPhone": "6281828384858",
"virtualAccountPhone": "6281828384858", "trxId": "abcd12346",
{ "responseCode": "4002701", "trxId": "abcd12346", "totalAmount": {
Failed - Invalid
4 CreateVA "responseMessage": "Invalid "totalAmount": { "value": "75000.00",
partnerServiceId
Field Format {partnerServiceId}"} "value": "75000.00", "currency": "IDR"
"currency": "IDR" },
}, "billDetails": [
"billDetails": [ {
{ "billAmount": {
"billAmount": { "value": "75000.00",
"value": "75000.00", "currency": "IDR"
"currency": "IDR" }
} }
} ],
], "expiredDate": "2022-14-12T23:59:59+07:00"
"expiredDate": "2022-14-12T23:59:59+07:00" }
} }
Sandbox 1.0 Doc v1.0 Retail Virtual Account – Create VA

Header {
X-PARTNER-ID : SANDBOX "responseCode": "4002702",
X-EXTERNAL-ID : 502704 "responseMessage": "Invalid Mandatory Field
{customerNo}",
Body "virtualAccountData": {
{ "partnerServiceId": " 89661",
"partnerServiceId": " 89661", "customerNo": "",
"customerNo": "", "virtualAccountNo": " 8966112900000392",
"virtualAccountNo": " 8966112900000392", "virtualAccountName": "Jokul Doe",
"virtualAccountName": "Jokul Doe", "virtualAccountEmail": "[email protected]",
"virtualAccountEmail": "[email protected]", "virtualAccountPhone": 6281828384858"",
"virtualAccountPhone": "6281828384858", "trxId": "abcd12346",
{ "trxId": "abcd12346", "totalAmount": {
"responseCode": "4002702", "totalAmount": { "value": "75000.00",
Failed - Mandatory
5 CreateVA "responseMessage": "Invalid "value": "75000.00", "currency": "IDR"
field kosong
Mandatory Field {customerNo}" "currency": "IDR" },
} }, "billDetails": [
"billDetails": [ {
{ "billAmount": {
"billAmount": { "value": "75000.00",
"value": "75000.00", "currency": "IDR"
"currency": "IDR" }
} }
} ],
], "expiredDate": "2022-14-12T23:59:59+07:00"
"expiredDate": "2022-14-12T23:59:59+07:00" }
} }

Header {
X-PARTNER-ID : SANDBOX "responseCode": "5000000",
X-EXTERNAL-ID : 500202 "responseMessage": "Internal Server Error",
"virtualAccountData": {
Body "partnerServiceId": " 89661",
{ "customerNo": "8966112900000392",
"partnerServiceId": " 89661", "virtualAccountNo": " 8966112900000392",
"customerNo": "8966112900000392", "virtualAccountName": "Jokul Doe",
"virtualAccountNo": " 8966112900000392", "virtualAccountEmail": "[email protected]",
"virtualAccountName": "Jokul Doe", "virtualAccountPhone": "6281828384858",
"virtualAccountEmail": "[email protected]", "trxId": "abcd12346",
"virtualAccountPhone": "6281828384858", "totalAmount": {
{ "trxId": "abcd12346", "value": "75000.00",
"responseCode": "5000000", "totalAmount": { "currency": "IDR"
Failed - Internal "value": "75000.00", },
6 CreateVA "responseMessage": "Internal
server error "currency": "IDR" "billDetails": [
Server Error"
} }, {
"billDetails": [ "billCode": null,
{ "billName": null,
"billAmount": { "billShortName": null,
"value": "75000.00", "billAmount": {
"currency": "IDR" "value": "75000.00",
} "currency": "IDR"
} }
], }
"expiredDate": "2022-14-12T23:59:59+07:00" ],
} "expiredDate": "2022-14-12T23:59:59+07:00"
}
}
Header {
X-PARTNER-ID : SANDBOX "Exception": "API Gateway encountered an
X-EXTERNAL-ID : 502703 error. Error Message: Downtime exception: Read
timed out. Request Details: Service -
Body{ RetailVirtualAccountOpenAPI, Operation -
"partnerServiceId": " 89661", /createRetailVA, Invocation Time:11:15:48 AM,
{
"customerNo": "8966112900000392", Date:Dec 23, 2022, Client IP - 10.243.131.36, User
"Exception": "API Gateway
"virtualAccountNo": " 8966112900000392", - Default and
encountered an error. Error
"virtualAccountName": "Jokul Doe", Application:uat.oke_RVA_1668415512880"
Message: Downtime exception:
"virtualAccountEmail": "[email protected]", }
Read timed out. Request Details:
"virtualAccountPhone": "6281828384858",
Service -
"trxId": "abcd12346",
RetailVirtualAccountOpenAPI,
"totalAmount": {
7 CreateVA Failed - time out Operation - /createRetailVA,
"value": "75000.00",
Invocation Time:11:15:48 AM,
"currency": "IDR"
Date:Dec 23, 2022, Client IP -
},
10.243.131.36, User - Default
"billDetails": [
and
{
Application:uat.oke_RVA_16684
"billAmount": {
15512880"
"value": "75000.00",
}
"currency": "IDR"
}
}
],
"expiredDate": "2022-14-12T23:59:59+07:00"
}

You might also like