REST Example: Processing a Credit with Level II Data {#l23-l2-processing-credit-ex-rest-ctv}
============================================================================================

Request

```
{
  "paymentInformation": {
    "card": {
      "number": "4111111111111111",
      "expirationMonth": "03",
      "expirationYear": "2031"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "7.77",
      "currency": "USD",
      "invoiceDetails": {
        "purchaseOrderNumber": "L2PurchaseOrderNo",
        "purchaseOrderDate": "2024-11-15",
        "taxable": true
      }
    },
    "lineItems": [
      {
        "unitPrice": "7.00",
        "taxAmount": ".77"
      }
    ]
  },
  "billTo": {
    "firstName": "John",
    "lastName": "Deo",
    "address1": "900 Metro Center Blvd",
    "locality": "Foster City",
    "administrativeArea": "CA",
    "postalCode": "48104-2201",
    "country": "US",
    "email": "",
    "phoneNumber": "9321499232"
  }
}
```

{#l23-l2-processing-credit-ex-rest-ctv_codeblock_wmc_gfn_vwb}  
Response to a Successful Request

```
{
  "_links": {
    "void": {
      "method": "POST",
      "href": "/pts/v2/credits/7320289208766957204951/voids"
    },
    "self": {
      "method": "GET",
      "href": "/pts/v2/credits/7320289208766957204951"
    }
  },
  "clientReferenceInformation": {
    "code": "1732028921016"
  },
  "creditAmountDetails": {
    "currency": "USD",
    "creditAmount": "200.00"
  },
  "id": "7320289208766957204951",
  "orderInformation": {
    "amountDetails": {
      "currency": "USD"
    }
  },
  "paymentAccountInformation": {
    "card": {
      "type": "001"
    }
  },
  "paymentInformation": {
    "tokenizedCard": {
      "type": "001"
    },
    "card": {
      "type": "001"
    }
  },
  "processorInformation": {
    "approvalCode": "888888",
    "responseCode": "100"
  },
  "reconciliationId": "69002042N33YJ7AN",
  "status": "PENDING",
  "submitTimeUtc": "2024-11-19T15:08:41Z"
}
```

{#l23-l2-processing-credit-ex-rest-ctv_codeblock_ymc_gfn_vwb}
