/billing/v1/payment-profiles/{paymentProfileId}/attach-payment-methodThis endpoint adds the payment method
This action is not enabled by default. You must request additional permissions to perform this action.
paymentMethodIdstringrequired
{
"paymentMethodId": "string"
}add a Payment Method
{
"data": {
"id": "string",
"paymentProfileId": "string",
"network": "string",
"type": "card",
"cardDetails": {
"type": "unknown",
"last4": "string",
"expMonth": 123.0,
"expYear": 123.0
},
"createdAt": "2023-06-07T17:32:28Z",
"lastUpdatedAt": "2023-06-07T17:32:28Z"
}
}/billing/v1/payment-profilesThis endpoint retrieves a list of payment profiles
limitstringThe maximum number of payment profiles to return (default 20, maximum 100)
startingAfterstringThe ID of the last payment profile in the previous page of results. Results will start after this payment profile
driverIdstringThe ID of the driver to filter payment profiles by
A list of payment profiles
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"network": "string",
"driver": "string"
}
]
}
}/billing/v1/payment-profilesThis endpoint creates a new payment profile
This action is not enabled by default. You must request additional permissions to perform this action.
driverstringrequired
The ID or reference of the driver associated with the payment profile.
networkstringThe network associated with the payment profile.
{
"driver": "string",
"network": "string"
}OK
{
"data": {
"id": "string",
"network": "string",
"driver": "string"
}
}/billing/v1/payment-profiles/{paymentProfileId}/subscribeThis endpoint allows a user to subscribe a payment profile to a product offering by creating a new subscription with the payment provider
This action is not enabled by default. You must request additional permissions to perform this action.
priceIdstringrequired
The ID of the price associated with the subscription.
{
"priceId": "string"
}The subscription was successfully created
{
"data": {
"id": "string",
"paymentProfileId": "string",
"network": "string",
"billingThreshold": {
"amount": 123.0,
"currency": "string"
},
"billingStatus": "CANCELED",
"currentPeriodEnd": "2023-06-07T17:32:28Z",
"currentPeriodStart": "2023-06-07T17:32:28Z",
"priceId": "string",
"createdAt": "2023-06-07T17:32:28Z",
"lastUpdatedAt": "2023-06-07T17:32:28Z"
}
}Was this page helpful?