Authorize Payment Method
curl --request POST \
  --url https://api.revolv3.com/api/PaymentMethod/authorize \
  --header 'Content-Type: application/json-patch+json' \
  --data '{
  "paymentMethod": {
    "paymentMethodTypes": [
      1
    ],
    "billingAddress": {
      "addressId": null,
      "addressLine1": "100 Main Street",
      "addressLine2": "",
      "city": "Santa Ana",
      "state": "CA",
      "postalCode": "90000",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    },
    "creditCard": {
      "paymentAccountNumber": "4111111111111111",
      "expirationDate": "1025",
      "securityCode": null,
      "networkToken": null,
      "processingMethodType": 5
    },
    "ach": null,
    "googlePay": null,
    "applePay": null,
    "merchantPaymentMethodRefId": null,
    "billingFirstName": "John",
    "billingLastName": "Smith",
    "billingFullName": null
  },
  "paymentMethodId": null,
  "amount": 5,
  "processorType": null
}'
{
  "paymentMethodAuthorizationId": 1,
  "paymentMethod": {
    "paymentMethodId": 1,
    "billingAddressId": 1,
    "billingAddress": {
      "addressId": 1,
      "addressLine1": "123 Main",
      "addressLine2": null,
      "city": "Santa Ana",
      "state": "CA",
      "postalCode": "90000",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    },
    "billingFirstName": "John",
    "billingLastName": "Smith",
    "merchantPaymentMethodRefId": "payment-method-ref-id_hgays-213-4rf4",
    "paymentMethodAchDetails": null,
    "paymentMethodCreditCardDetails": {
      "binNumber": "411111",
      "paymentLast4Digit": "1111",
      "paymentExpirationDate": "1025",
      "accountUpdateMessage": null,
      "accountUpdateDateTime": null
    }
  }
}

Body

Response

OK

The response is of type object.