POST api/Subscription/Purchase_v1_5

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
request
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "sequenceId": 1,
  "activeUserId": "sample string 2",
  "userId": "sample string 3",
  "facilityId": 4,
  "MAC": "sample string 5",
  "IP": "sample string 6",
  "emailAddress": "sample string 7",
  "forceNewPurchase": true,
  "price": 1.0,
  "details": [
    {
      "productId": 1
    },
    {
      "productId": 1
    },
    {
      "productId": 1
    }
  ],
  "paymentInformation": {
    "amount": 1.1,
    "name": "sample string 2",
    "card_number": "sample string 3",
    "expiration_code": "sample string 4",
    "currency": "sample string 5",
    "security_code": "sample string 6",
    "address": {
      "address1": "sample string 1",
      "address2": "sample string 2",
      "city": "sample string 3",
      "zip": "sample string 4",
      "country_code": "sample string 5",
      "phone_number": "sample string 6",
      "phone_type": "sample string 7"
    },
    "reference": {
      "ref": "sample string 1",
      "customer_ref": "sample string 2",
      "reference_3": "sample string 3",
      "previous_authorization_no": "sample string 4",
      "transaction_tag": "sample string 5"
    },
    "specific_fields": [
      {
        "key": "sample string 1",
        "value": "sample string 2"
      },
      {
        "key": "sample string 1",
        "value": "sample string 2"
      },
      {
        "key": "sample string 1",
        "value": "sample string 2"
      }
    ]
  },
  "originatorName": "sample string 9",
  "forceNewPin": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseRequest'.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "sequenceId": 1,
  "details": [
    {
      "billingId": 1,
      "productId": 2,
      "i_account": 3,
      "success": true,
      "comments": "sample string 5",
      "error": {
        "code": 1,
        "params": [
          "sample string 1",
          "sample string 2",
          "sample string 3"
        ]
      }
    },
    {
      "billingId": 1,
      "productId": 2,
      "i_account": 3,
      "success": true,
      "comments": "sample string 5",
      "error": {
        "code": 1,
        "params": [
          "sample string 1",
          "sample string 2",
          "sample string 3"
        ]
      }
    },
    {
      "billingId": 1,
      "productId": 2,
      "i_account": 3,
      "success": true,
      "comments": "sample string 5",
      "error": {
        "code": 1,
        "params": [
          "sample string 1",
          "sample string 2",
          "sample string 3"
        ]
      }
    }
  ],
  "paymentResponse": {
    "success": true,
    "code": 2,
    "processor_message": "sample string 3",
    "message": "sample string 4",
    "amount": 5.1,
    "currency": "sample string 6",
    "request_reference": {
      "ref": "sample string 1",
      "customer_ref": "sample string 2",
      "reference_3": "sample string 3",
      "previous_authorization_no": "sample string 4",
      "transaction_tag": "sample string 5"
    },
    "response_reference": {
      "sequence_no": "sample string 1",
      "retrieval_ref_no": "sample string 2",
      "transaction_tag": "sample string 3",
      "authorization_num": "sample string 4"
    },
    "card_type": "sample string 7",
    "card_number_masked": "sample string 8"
  },
  "success": true,
  "comments": "sample string 3",
  "error": {
    "code": 1,
    "params": [
      "sample string 1",
      "sample string 2",
      "sample string 3"
    ]
  }
}