/billing/v1/payment-profiles/{paymentProfileId}/attach-payment-method
This endpoint adds the payment method
This action is not enabled by default. You must request additional permissions to perform this action.
paymentMethodId
string
required
{
"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-profiles
This endpoint retrieves a list of payment profiles
limit
string
The maximum number of payment profiles to return (default 20, maximum 100)
startingAfter
string
The ID of the last payment profile in the previous page of results. Results will start after this payment profile
driverId
string
The 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-profiles
This endpoint creates a new payment profile
This action is not enabled by default. You must request additional permissions to perform this action.
driver
string
required
The ID or reference of the driver associated with the payment profile.
network
string
The network associated with the payment profile.
{
"driver": "string",
"network": "string"
}
OK
{
"data": {
"id": "string",
"network": "string",
"driver": "string"
}
}
/billing/v1/payment-profiles/{paymentProfileId}/subscribe
This 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.
priceId
string
required
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?