POST api/Subscription/Recharge

Recharges products for the specified customer

Request Information

Parameters

NameDescriptionAdditional information
request
The request.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "sequenceId": 123456,
  "activeUserId": "134122345",
  "userId": "4122345",
  "facilityId": 281,
  "MAC": "10-5A-1A-FF-AA",
  "IP": "235.123.231.89",
  "emailAddress": "john@doe.com",
  "forceNewPurchase": false,
  "price": 10.99,
  "details": [
    {
      "productId": 19213
    },
    {
      "productId": 19210
    }
  ],
  "paymentInformation": {
    "amount": 10.99,
    "name": "Humberto Moreno",
    "card_number": "4444333322221111",
    "expiration_code": "1221",
    "currency": "USD",
    "security_code": "123",
    "address": {
      "address1": "101 ELM ST",
      "address2": "APT 8-P",
      "city": "Miami",
      "zip": "33012",
      "country_code": "USA",
      "phone_number": "305-123-4567",
      "phone_type": "HOME"
    },
    "reference": {
      "ref": "876654",
      "customer_ref": "EMC123",
      "reference_3": "ABC671",
      "previous_authorization_no": "13141",
      "transaction_tag": "13141"
    },
    "specific_fields": [
      {
        "key": "add1",
        "value": "val1"
      },
      {
        "key": "add2",
        "value": "val2"
      }
    ]
  },
  "originatorName": "ICS_Api"
}

Response Information

Response body formats

application/json, text/json

Sample:
{
  "sequenceId": 1224545,
  "details": [
    {
      "billingId": 32487263,
      "productId": 19213,
      "success": true,
      "comments": "Success!",
      "error": {
        "code": 0,
        "params": []
      }
    },
    {
      "billingId": 32487263,
      "productId": 19213,
      "success": true,
      "comments": "Success!",
      "error": {
        "code": 0,
        "params": []
      }
    }
  ],
  "paymentResponse": {
    "success": true,
    "code": 0,
    "processor_message": "Success!",
    "message": "Your payment was successful!",
    "amount": 10.99,
    "currency": "USD",
    "request_reference": {
      "ref": "876654",
      "customer_ref": "EMC123",
      "reference_3": "ABC671",
      "previous_authorization_no": "13141",
      "transaction_tag": "13141"
    },
    "response_reference": {
      "sequence_no": "1234567890",
      "retrieval_ref_no": "ref9090178",
      "transaction_tag": "9875165",
      "authorization_num": "9686564"
    },
    "card_type": "VISA",
    "card_number_masked": "############1111"
  },
  "success": true,
  "comments": "Success!",
  "error": {
    "code": 0,
    "params": []
  }
}