---
title: "POST /agents/{id}/prepaid_topup_balance"
method: POST
path: "/agents/{id}/prepaid_topup_balance"
tags: ["agents"]
---

# POST /agents/{id}/prepaid_topup_balance

`POST /agents/{id}/prepaid_topup_balance`

## Request

- Base URL: `http://api.gostarmartbus.com/api`
- URL: `http://api.gostarmartbus.com/api/agents/{id}/prepaid_topup_balance`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gostarmartbus/apis/api-title/docs/agents/:id/prepaid_topup_balance/post.ts> (a function with typed inputs; its response is checked against the schema)

Top-up prepaid balance by agent by card or PayPal

## Path parameters

- `id` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `payment_method_nonce` string, required: Payment token from Braintree form
  - `fullname` string, required
  - `phone` string, required
  - `email` string, required
  - `ic_number` string, required
  - `amount` number, float, required

## Response `201`

Top-up prepaid balance by agent by card or PayPal

---

[API](https://skmtc.dev/gostarmartbus/apis/api-title.md) - [All operations](https://skmtc.dev/gostarmartbus/apis/api-title/llms.txt) - [OpenAPI document](https://skmtc.dev/gostarmartbus/apis/api-title/revisions/809a5ebae979?raw)
