curl --request POST \
--url https://api.revolv3.com/api/Subscriptions/pan-lookup \
--header 'Content-Type: application/json-patch+json' \
--data '{
"paymentAccountNumber": "4111111111111111"
}'
[
{
"subscriptionId": 1,
"customerId": 3,
"merchantSubscriptionRefId": null,
"networkTransactionId": null,
"billingIntervalType": "Days",
"billingIntervalCount": 1,
"subscriptionStatusType": "current",
"subscriptionCancelType": null,
"initialBillDate": "08-Sep-25",
"nextBillDate": "09-Sep-25",
"taxAddress": {
"addressId": 0,
"addressLine1": "101 Update Street",
"addressLine2": null,
"city": "Irvine",
"state": "CA",
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": "US"
},
"paymentMethodIds": [
1
],
"cancelledAt": null,
"billingPlans": [
{
"subscriptionBillingPlanId": 1,
"subscriptionId": 0,
"name": "Billing Plan 1",
"value": 10.99,
"startDate": "08-Sep-25",
"cyclesRemaining": -1,
"cycleCount": 0,
"valueType": "Standard"
},
{
"subscriptionBillingPlanId": 2,
"subscriptionId": 0,
"name": "Billing Plan 2",
"value": 14.99,
"startDate": "08-Sep-25",
"cyclesRemaining": 12,
"cycleCount": 0,
"valueType": "Standard"
}
],
"message": null,
"paymentProcessor": null,
"processorMerchantId": null,
"processorRawResponse": null,
"currency": null
},
{
"subscriptionId": 2,
"customerId": 3,
"merchantSubscriptionRefId": null,
"networkTransactionId": null,
"billingIntervalType": "Months",
"billingIntervalCount": 1,
"subscriptionStatusType": "recycled",
"subscriptionCancelType": null,
"initialBillDate": "08-Sep-25",
"nextBillDate": "09-Sep-25",
"taxAddress": null,
"paymentMethodIds": null,
"cancelledAt": null,
"billingPlans": null,
"message": null,
"paymentProcessor": null,
"processorMerchantId": null,
"processorRawResponse": null,
"currency": null
}
]
Get all subscriptions that has the given payment account number as one of its payment methods.
Upon success, this operation returns a status of 200 (OK) and a list of subscription objects.
If an invalid field or value is submitted, a status of 400 (Bad Request) will be returned.
If the payment account number is not within the payment methods of any subscription, a status code of 404 will be returned.
Name | Description |
---|---|
PaymentAccountNumber | Payment card number |
curl --request POST \
--url https://api.revolv3.com/api/Subscriptions/pan-lookup \
--header 'Content-Type: application/json-patch+json' \
--data '{
"paymentAccountNumber": "4111111111111111"
}'
[
{
"subscriptionId": 1,
"customerId": 3,
"merchantSubscriptionRefId": null,
"networkTransactionId": null,
"billingIntervalType": "Days",
"billingIntervalCount": 1,
"subscriptionStatusType": "current",
"subscriptionCancelType": null,
"initialBillDate": "08-Sep-25",
"nextBillDate": "09-Sep-25",
"taxAddress": {
"addressId": 0,
"addressLine1": "101 Update Street",
"addressLine2": null,
"city": "Irvine",
"state": "CA",
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": "US"
},
"paymentMethodIds": [
1
],
"cancelledAt": null,
"billingPlans": [
{
"subscriptionBillingPlanId": 1,
"subscriptionId": 0,
"name": "Billing Plan 1",
"value": 10.99,
"startDate": "08-Sep-25",
"cyclesRemaining": -1,
"cycleCount": 0,
"valueType": "Standard"
},
{
"subscriptionBillingPlanId": 2,
"subscriptionId": 0,
"name": "Billing Plan 2",
"value": 14.99,
"startDate": "08-Sep-25",
"cyclesRemaining": 12,
"cycleCount": 0,
"valueType": "Standard"
}
],
"message": null,
"paymentProcessor": null,
"processorMerchantId": null,
"processorRawResponse": null,
"currency": null
},
{
"subscriptionId": 2,
"customerId": 3,
"merchantSubscriptionRefId": null,
"networkTransactionId": null,
"billingIntervalType": "Months",
"billingIntervalCount": 1,
"subscriptionStatusType": "recycled",
"subscriptionCancelType": null,
"initialBillDate": "08-Sep-25",
"nextBillDate": "09-Sep-25",
"taxAddress": null,
"paymentMethodIds": null,
"cancelledAt": null,
"billingPlans": null,
"message": null,
"paymentProcessor": null,
"processorMerchantId": null,
"processorRawResponse": null,
"currency": null
}
]
OK
The response is of type object[]
.