Saltar al contenido principal
POST
Create a subscription item
v2 · Base URL https://api.fintoc.com/v2

Autorizaciones

Authorization
string
header
requerido

Parámetros de ruta

subscription_id
string
requerido

The id of the subscription to add the item to.

Cuerpo

application/json
price_data
object
requerido

Definition of the price the item bills for. Fintoc creates a new price for the item.

quantity
integer
requerido

Number of units of the price the item bills for. Must be greater than zero.

Ejemplo:

2

Respuesta

Subscription item created. Fintoc bills it starting from the subscription's next invoice.

id
string
requerido

Unique identifier of the subscription item.

Ejemplo:

"si_2c4mDfkPLLrLTCJ3wPCEHGYpkVf"

object
any
requerido

Type of the object. Always subscription_item.

price
object
requerido

Price the item bills for on every billing cycle.

quantity
integer
requerido

Number of units of the price the item bills for.

Ejemplo:

1