Skip to main content
POST
/
webhook-events
/
wallet.created
wallet.created
curl --request POST \
  --url https://us.api.flexprice.io/v1/webhook-events/wallet.created
import requests

url = "https://us.api.flexprice.io/v1/webhook-events/wallet.created"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://us.api.flexprice.io/v1/webhook-events/wallet.created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://us.api.flexprice.io/v1/webhook-events/wallet.created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://us.api.flexprice.io/v1/webhook-events/wallet.created"

req, _ := http.NewRequest("POST", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://us.api.flexprice.io/v1/webhook-events/wallet.created")
.asString();
require 'uri'
require 'net/http'

url = URI("https://us.api.flexprice.io/v1/webhook-events/wallet.created")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
{
  "alert": {
    "alert_settings": {
      "alert_enabled": true,
      "critical": {
        "threshold": 123
      },
      "info": {
        "threshold": 123
      },
      "warning": {
        "threshold": 123
      }
    },
    "alert_type": "<string>",
    "credit_balance": 123,
    "current_balance": 123,
    "state": "<string>"
  },
  "customer": {
    "address_city": "<string>",
    "address_country": "<string>",
    "address_line1": "<string>",
    "address_line2": "<string>",
    "address_postal_code": "<string>",
    "address_state": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "created_by": "<string>",
    "email": "<string>",
    "environment_id": "<string>",
    "external_id": "<string>",
    "id": "<string>",
    "integrations": [
      {
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "entity_id": "<string>",
        "environment_id": "<string>",
        "id": "<string>",
        "metadata": {},
        "provider_entity_id": "<string>",
        "provider_type": "<string>",
        "tenant_id": "<string>",
        "updated_at": "2023-11-07T05:31:56Z",
        "updated_by": "<string>"
      }
    ],
    "metadata": {},
    "name": "<string>",
    "tenant_id": "<string>",
    "timezone": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "updated_by": "<string>"
  },
  "wallet": {
    "alert_settings": {
      "alert_enabled": true,
      "critical": {
        "threshold": 123
      },
      "info": {
        "threshold": 123
      },
      "warning": {
        "threshold": 123
      }
    },
    "auto_topup": {
      "amount": 123,
      "enabled": true,
      "invoicing": true,
      "threshold": 123
    },
    "balance": "<string>",
    "config": {
      "allowed_price_types": []
    },
    "conversion_rate": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "created_by": "<string>",
    "credit_balance": "<string>",
    "credits_available_breakdown": {
      "free": "<string>",
      "purchased": "<string>"
    },
    "currency": "<string>",
    "customer_id": "<string>",
    "description": "<string>",
    "environment_id": "<string>",
    "id": "<string>",
    "metadata": {},
    "name": "<string>",
    "tenant_id": "<string>",
    "topup_conversion_rate": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "updated_by": "<string>"
  }
}

Response

200 - application/json

Webhook payload

alert
object
customer
object

Customer response object containing all customer information

event_type
enum<string>
Available options:
subscription.created,
subscription.draft.created,
subscription.activated,
subscription.updated,
subscription.paused,
subscription.cancelled,
subscription.resumed,
subscription.phase.created,
subscription.phase.updated,
subscription.phase.deleted,
feature.created,
feature.updated,
feature.deleted,
feature.wallet_balance.alert,
entitlement.created,
entitlement.updated,
entitlement.deleted,
wallet.created,
wallet.updated,
wallet.terminated,
wallet.transaction.created,
payment.created,
payment.updated,
payment.failed,
payment.success,
payment.pending,
customer.created,
customer.updated,
customer.deleted,
invoice.update.finalized,
invoice.update.payment,
invoice.update.voided,
invoice.update,
invoice.payment.overdue,
wallet.credit_balance.dropped,
wallet.credit_balance.recovered,
wallet.ongoing_balance.dropped,
wallet.ongoing_balance.recovered,
subscription.renewal.due,
invoice.communication.triggered,
credit_note.created,
credit_note.updated,
checkout.session.initiated,
checkout.session.completed,
checkout.session.failed,
checkout.session.expired
wallet
object