HomeGuidesAPI ReferenceChangelog
Log In

Sale Reusing the PaymentMethod

For One Time Payments, to reuse a PaymentMehtodId or PaymentMethodAuthorizationId, replace the PaymentMethod object with the Id

FirstName and LastName are still required

https://api.revolv3.com/api/Payments/sale/{paymentMethodId}
{
    "NetworkProcessing": {
        "processingType": "initialInstallment", //initialRecurring, initialInstallment , installment, recurring
        "originalNetworkTransactionId": null
    },
    "CustomerId": null, //optional add a customer ID - otherwise no customer is created
    "Invoice": {
        "MerchantInvoiceRefId": "ABC309500654810",
        "Amount": {
            "value": 1.03
        }
    }
}
{
    "customerId": null,
    "invoiceId": 186011,
    "merchantInvoiceRefId": "ABC309500654810",
    "merchantPaymentMethodRefId": null,
    "networkTransactionId": "583676276256324",
    "invoiceStatus": "Paid",
    "invoiceAttemptStatus": "Success",
    "message": "Approved",
    "amount": {
        "currency": "USD",
        "value": 1.03
    },
    "paymentMethodId": 6061,
    "paymentMethodTypeId": 1
}

To Re-use a PaymentMethod for a Subscription, the Subscription API calls has an object ExistingPaymentMethod. A Sample call with a Paymentmethod below. You can also replace PaymentMethodId with PaymentMethodAuthorizationId

https://api.revolv3.com/api/Subscriptions

{
    "ExistingPaymentMethod": {
        "PaymentMethodId" : "4932",
        "OriginalNetworkTransactionId" : null
    },
    "MerchantSubscriptionRefId": "1234-5678-9101",
    "BillingFrequencyType": "daily", //Daily, Weekly, Biweekly, Monthly, Bimonthly, Quarterly, Semiannually, Yearly
    "SubscriptionStatusType": "current", //Current, Recycle, Cancelled, PendingCancellation
    "SubscriptionCancelType": "immediate", //Immediate, EndOfCycle
    "StartDate": "2024-04-26T00:00:00",
    "TrialDuration": 0,
    "TrialDurationType": "daily", //Daily, Weekly, Biweekly, Monthly, Bimonthly, Quarterly, Semiannually, Yearly
    "Customer": {
        "FirstName": "John",
        "LastName": "Doe"
    },
    "SubscriptionBillingPlans": [
        {
            "Name": "Test mcafee",
            "Value": 0.19,
            "CycleCount": 2,
            "ValueType": "Standard", //Standard, Discount, DiscountPercentage, FinalDiscount, PriceOverride
            "TaxCode": null,
            "StartCycleDelay": 0
        }
    ],
    "RecycleImmediatePayment": false
}/