Payment-Options

Get the shopper payment option

Get a payment option by the ID specified in the URI path parameter.

get/v1/shoppers/me/payment-options/{paymentOptionId}

Request

  • Base URL
    https://api.digitalriver.com
  • URL
    https://api.digitalriver.com/v1/shoppers/me/payment-options/{paymentOptionId}
  • Auth
    none declared

Path parameters

paymentOptionIdstring required

Payment Option ID.

Query parameters

tokenstring

Provide the authorized token for a shopper.

expandstring

Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.

fieldsstring

Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.

Response

Successful response.

OR
OR
OR

Example response

{
  "paymentOption": {
    "sourceId": "a231f38d-3a07-4a13-96ed-89693ba7d56c",
    "sourceClientSecret": "a231f38d-3a07-4a13-96ed-89693ba7d56c_f6d8c951-59c9-4ef3-ac45-9f33c77d2f46",
    "uri": "https://api.digitalriver.com/v1/shoppers/me/payment-options/740865108",
    "id": 740865108,
    "nickName": "Default",
    "isDefault": "true",
    "type": "CreditCardMethod",
    "creditCard": {
      "expirationMonth": "1",
      "expirationYear": "2030",
      "brand": "Visa",
      "lastFourDigits": "1234"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.