Sale With Payment Method Id
curl --request POST \
  --url https://api.revolv3.com/api/Payments/sale/{paymentMethodId} \
  --header 'Content-Type: application/json-patch+json' \
  --data '{
  "customerId": 1,
  "includeRawProcessorResponse": false,
  "invoice": {
    "merchantInvoiceRefId": "123456789",
    "orderProcessingChannel": null,
    "amount": {
      "currency": 1,
      "value": 30.99
    }
  },
  "dynamicDescriptor": null
}'
{
  "customerId": 1,
  "invoiceId": 1,
  "merchantInvoiceRefId": "1234-5678-9101",
  "merchantPaymentMethodRefId": null,
  "networkTransactionId": "c413cacb-a64c-43d1-9a39-476f07be2db6",
  "invoiceStatus": "Paid",
  "invoiceAttemptStatus": "Success",
  "message": "Approved",
  "amount": {
    "currency": "USD",
    "value": 30.99
  },
  "paymentMethodId": 1,
  "paymentMethodTypeId": 0,
  "paymentProcessor": null,
  "processorMerchantId": null,
  "rawResponse": "Processor raw response (without parsing on revolv3 side)"
}

Path Parameters

paymentMethodId
integer
required

Body

Response

OK

The response is of type object.