PATCH
/
wallets
/
{id}
/
autoTopupConfig
Updates an auto topup configuration for a wallet
curl --request PATCH \
  --url https://api.paygentic.io/v0/wallets/{id}/autoTopupConfig \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "<string>",
  "threshold": "<string>",
  "paymentMethod": "<string>",
  "limit": {
    "amount": 123,
    "period": "<string>"
  }
}'
{
  "amount": "<string>",
  "object": "autoTopupConfig",
  "threshold": "<string>",
  "paymentMethod": "<string>",
  "limit": {
    "amount": 123,
    "period": "day"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "topupIds": [
    "<string>"
  ],
  "deactivation": {
    "reason": "<string>",
    "at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the wallet to update an auto topup for

Body

application/json

Response

201
application/json

Auto topup created successfully

The response is of type object.