curl --request POST \
--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"
}
}
curl --request POST \
--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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the wallet to create or modify an auto topup for
Auto topup created successfully
The response is of type object
.