Top up subscriber

POST p8auth/subscribers/{id}/top-ups

Example Request

POST /api/v1/p8auth/subscribers/1/top-ups HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json

{
  "amount": 10485760,
  "period": 1
}

Response Structure

  • success: bool
  • messages: string

Example Response

{
  "success": true,
  "messages": "Top up applied."
}