> For the complete documentation index, see [llms.txt](https://pivot-payment.gitbook.io/pivot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pivot-payment.gitbook.io/pivot-docs/api-references/api-lists/payout-local/test-scenarios.md).

# Test Scenarios

<table><thead><tr><th width="126">Scenario</th><th width="174">Data</th><th>Expected Results</th></tr></thead><tbody><tr><td>Success</td><td>999966660001</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "00",
    "message": "Success",
    "data": {
        "created": "2024-07-30T04:35:03Z",
        "merchantId": "922e39ab-7565-49f6-b84f-fb56122821ae",
        "payoutResults": {
            "totalFailedAmount": 0,
            "totalFailedCount": 0,
            "totalPendingAmount": 0,
            "totalPendingCount": 0,
            "totalSuccessAmount": 20000,
            "totalSuccessCount": 1
        },
        "payouts": [
            {
                "amount": {
                    "currency": "IDR",
                    "value": "10000"
                },
                "channelCode": "BRI",
                "channelInformation": {
                    "accountName": "Reforza Pivot",
                    "accountNumber": "999966660001"
                },
                "created": "2024-07-30T04:35:03Z",
                "description": "Testing Success",
                "inquiryId": "",
                "reason": "",
                "referenceId": "2024052400083464",
                "status": "SUCCESS",
                "updated": "2024-07-30T04:35:04Z"
            }
        ],
        "status": "DONE",
        "updated": "2024-07-30T04:35:04Z",
        "uuid": "98d3deee-f6fa-48b8-906a-0b99279d4687"
    },
    "pagination": {
        "page": 1,
        "perPage": 1,
        "totalItems": 1,
        "totalPages": 1
    }
}
</code></pre></td></tr><tr><td>Inactive Account</td><td>999966660002</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "00",
    "message": "Success",
    "data": {
        "created": "2024-07-30T04:10:54Z",
        "merchantId": "922e39ab-7565-49f6-b84f-fb56122821ae",
        "payoutResults": {
            "totalFailedAmount": 20000,
            "totalFailedCount": 1,
            "totalPendingAmount": 0,
            "totalPendingCount": 0,
            "totalSuccessAmount": 0,
            "totalSuccessCount": 0
        },
        "payouts": [
            {
                "amount": {
                    "currency": "IDR",
                    "value": "10000"
                },
                "channelCode": "BRI",
                "channelInformation": {
                    "accountName": "Reforza Pivot",
                    "accountNumber": "999966660002"
                },
                "created": "2024-07-30T04:10:54Z",
                "description": "Testing Inactive Account",
                "inquiryId": "",
                "reason": "Inactive account",
                "referenceId": "2024052400083458",
                "status": "FAILED",
                "updated": "2024-07-30T04:10:54Z"
            }
        ],
        "status": "DONE",
        "updated": "2024-07-30T04:10:54Z",
        "uuid": "6619572d-650e-49e7-9ce3-bd955a2257b2"
    },
    "pagination": {
        "page": 1,
        "perPage": 1,
        "totalItems": 1,
        "totalPages": 1
    }
}
</code></pre></td></tr><tr><td>Invalid Account</td><td>999966660003</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "00",
    "message": "Success",
    "data": {
        "created": "2024-07-30T04:15:03Z",
        "merchantId": "922e39ab-7565-49f6-b84f-fb56122821ae",
        "payoutResults": {
            "totalFailedAmount": 25000,
            "totalFailedCount": 1,
            "totalPendingAmount": 0,
            "totalPendingCount": 0,
            "totalSuccessAmount": 0,
            "totalSuccessCount": 0
        },
        "payouts": [
            {
                "amount": {
                    "currency": "IDR",
                    "value": "15000"
                },
                "channelCode": "BRI",
                "channelInformation": {
                    "accountName": "Reforza Pivot",
                    "accountNumber": "999966660003"
                },
                "created": "2024-07-30T04:15:03Z",
                "description": "Testing Invalid Account",
                "inquiryId": "",
                "reason": "Invalid account",
                "referenceId": "2024052400083459",
                "status": "FAILED",
                "updated": "2024-07-30T04:15:03Z"
            }
        ],
        "status": "DONE",
        "updated": "2024-07-30T04:15:03Z",
        "uuid": "7a296b29-3b82-4745-8de3-8efa3606ae5e"
    },
    "pagination": {
        "page": 1,
        "perPage": 1,
        "totalItems": 1,
        "totalPages": 1
    }
}
</code></pre></td></tr><tr><td>Dormant Account</td><td>999966660006</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "00",
    "message": "Success",
    "data": {
        "created": "2024-07-30T04:20:35Z",
        "merchantId": "922e39ab-7565-49f6-b84f-fb56122821ae",
        "payoutResults": {
            "totalFailedAmount": 20000,
            "totalFailedCount": 1,
            "totalPendingAmount": 0,
            "totalPendingCount": 0,
            "totalSuccessAmount": 0,
            "totalSuccessCount": 0
        },
        "payouts": [
            {
                "amount": {
                    "currency": "IDR",
                    "value": "10000"
                },
                "channelCode": "BRI",
                "channelInformation": {
                    "accountName": "Reforza Pivot",
                    "accountNumber": "999966660006"
                },
                "created": "2024-07-30T04:20:35Z",
                "description": "Testing Dormant Account",
                "inquiryId": "",
                "reason": "Dormant account",
                "referenceId": "2024052400083461",
                "status": "FAILED",
                "updated": "2024-07-30T04:20:35Z"
            }
        ],
        "status": "DONE",
        "updated": "2024-07-30T04:20:35Z",
        "uuid": "9b108a66-f88b-4fa6-adb0-4a8830d2ff81"
    },
    "pagination": {
        "page": 1,
        "perPage": 1,
        "totalItems": 1,
        "totalPages": 1
    }
}            
</code></pre></td></tr><tr><td>Insufficient Balance</td><td>999966660007</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "00",
    "message": "Success",
    "data": {
        "created": "2024-07-30T04:21:55Z",
        "merchantId": "922e39ab-7565-49f6-b84f-fb56122821ae",
        "payoutResults": {
            "totalFailedAmount": 0,
            "totalFailedCount": 0,
            "totalPendingAmount": 20000,
            "totalPendingCount": 1,
            "totalSuccessAmount": 0,
            "totalSuccessCount": 0
        },
        "payouts": [
            {
                "amount": {
                    "currency": "IDR",
                    "value": "10000"
                },
                "channelCode": "BRI",
                "channelInformation": {
                    "accountName": "Reforza Pivot",
                    "accountNumber": "999966660007"
                },
                "created": "2024-07-30T04:21:55Z",
                "description": "Testing Insufficient Balance",
                "inquiryId": "",
                "reason": "",
                "referenceId": "2024052400083462",
                "status": "APPROVED",
                "updated": "2024-07-30T04:21:56Z"
            }
        ],
        "status": "PENDING",
        "updated": "2024-07-30T04:21:56Z",
        "uuid": "eab4c929-fbbc-4dbb-a12d-251b86885b60"
    },
    "pagination": {
        "page": 1,
        "perPage": 1,
        "totalItems": 1,
        "totalPages": 1
    }
}
</code></pre></td></tr><tr><td>Timeout</td><td>999966660008</td><td><p></p><pre class="language-json"><code class="lang-json">{
    "code": "service_unavailable",
    "message": "Gateway / Partner service is unavailable",
    "error": {
        "type": "GATEWAY_ERROR",
        "details": [
            {
                "field": "",
                "message": "Please hit periodically"
            }
        ],
        "trace_id": "fa6bf3d419b9ae2ff2a71cac548eb7ac"
    }
}
</code></pre></td></tr></tbody></table>
