Skip to content

Update a Personal Payment Source.

Request

APIs to Read, Update and Delete Personal Payment Source

Security
Bearer
Path
userIdstring, (uuid)required

Identifier for User Profile

Example:4974a66b-7493-4f41-908c-58ba81093947
paymentSourceIdstring, (uuid)required

Identifier for personal paymentSource.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/json
paymentSourceInfoobject(PaymentSourceUpdateDetails)required
filterobject(UsagePaymentFilter)
curl -i -X PATCH \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/payment/users/4974a66b-7493-4f41-908c-58ba81093947/payment-sources/4974a66b-7493-4f41-908c-58ba81093947 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "paymentSourceInfo": {
      "paymentType": "CARD",
      "card": {
        "address": {
          "addressLines": [
            "Golden Gate Bridge"
          ],
          "administrativeArea": "CA",
          "administrativeAreaName": "California",
          "description": "San Francisco Home",
          "isDefault": true,
          "languageCode": "en",
          "locality": "San Francisco",
          "locationCode": "LAX",
          "organization": "Spotnana",
          "postalCode": "94130",
          "continentCode": "AF",
          "recipients": [
            "string"
          ],
          "regionCode": "US",
          "regionName": "America",
          "revision": 1,
          "sortingCode": "Jamaica",
          "sublocality": "string",
          "timezone": "America/Los_Angeles",
          "coordinates": {
            "latitude": 77.1025,
            "longitude": 28.7041
          }
        },
        "label": "Label amex",
        "ownershipLabel": "CORPORATE"
      }
    },
    "filter": {
      "type": "PERSONAL",
      "travelTypes": [
        "AIR"
      ],
      "managedTravelerAccess": {
        "enabled": false,
        "visibility": {
          "showToTravelers": false
        }
      }
    }
  }'

Responses

OK

Response
No content