Payment Card

NetSuite exposes the payment card record to REST web services.

Payment card is a card-based funding source such that is used to authorize and settle electronic payments through a card network.

In NetSuite, a payment card is a tokenized payment instrument saved to a customer through a payment gateway. Payment cards can be used to authorize, capture, charge, and refund transactions such as sales orders, cash sales, invoices, and customer deposits after configuring a merchant account and a payment processing profile. Supported card brands depend on the selected gateway. For more information, see Payment Instruments.

The payment card record isn't a subrecord and doesn't have any subrecords of its own.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for payment card is paymentcard.

Prerequisites

Code Samples

The code samples in this section show common use cases for payment card.

Creating a Payment Card

               
POST https://123456.suitetalk.api.netsuite.com/services/rest//record/v1/paymentCard
{
    "cardNumber": "4111111111111111",
    "entity": {
        "id": "28"
    },
    "expirationDate": "2029-10",
    "isDefault": false,
    "nameOnCard": "John Smith",
    "preserveOnFile": true
} 

            

Updating a Payment Card

              PATCH https://123456.suitetalk.api.netsuite.com/services/rest//record/v1/paymentCard/<id>
{
   "memo": "Updated MEMO"
} 

            

Related Topics

General Notices