POST
/
v0
/
subscriptions
/
{subscriptionIdOrNumber}
/
charge
curl --request POST \
  --url https://api.fungies.io/v0/subscriptions/{subscriptionIdOrNumber}/charge \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{
  "description": "<string>",
  "items": [
    {
      "value": 123,
      "quantity": 1,
      "name": "<string>"
    }
  ]
}'
{
  "status": "<string>",
  "data": {
    "payment": {
      "object": "payment",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "one_time",
      "number": "<string>",
      "status": "PENDING",
      "value": 0,
      "tax": 0,
      "fee": 0,
      "currency": null,
      "currencyDecimals": null,
      "createdAt": 4503599627370495,
      "userId": null,
      "user": null,
      "orderId": null,
      "orderNumber": null,
      "order": null,
      "subscriptionId": null,
      "subscription": null
    }
  }
}

Authorizations

x-fngs-public-key
string
header
required
x-fngs-secret-key
string
header
required

Path Parameters

subscriptionIdOrNumber
string
required

POST /v0/subscriptions/:subscriptionIdOrNumber/charge Parameter

Body

application/json
POST /v0/subscriptions/:subscriptionIdOrNumber/charge Request body
items
object[]
required
description
string

Response

200
application/json
POST /v0/subscriptions/:subscriptionIdOrNumber/charge Positive response
status
string
required
Allowed value: "success"
data
object
required