const options = {
  method: 'POST',
  headers: {
    accept: 'application/json',
    publicAccessToken: 'Bearer {{publicAccessToken}}',
    'content-type': 'application/json'
  },
  body: JSON.stringify({
    referenceId: 'test-disbursement-1',
    description: 'test-disbursement-1',
    amount: 10000,
    disbursementMethod: {
      type: 'bank_transfer',
      bankShortCode: 'MANDIRI',
      bankAccountNo: '12345678',
      bankAccountHolderName: 'PROD ONLY'
    }
  })
};
fetch('https://sandbox.onebrick.io/v2/payments/gs/disbursements', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));