Update Payment Credential

The Update Payment Credential endpoint enables you to update an existing Payment Credential for an alias.

You can get a update a payment credential by making a PUT request to the Update Payment Credential endpoint, where paymentCredentialId is the credential identifier you want to update the credentials for. For example:

{{base-url}}/ads/api/v1/paymentCredentials/{paymentCredentialId}

The body of the request will depend on whether you're updating a CARD type payment credential or a BANK type payment credential. The below request is an example for updating a CARD payment type:

{
    "paymentType": "CARD",
    "cardInfo": {
        "nameOnCard": "Alex Miller",
        "issuerName": "Bank A",
        "cardType": "Visa Platinum",
        "expirationDate": "2030-01",
        "externalId": "63421837-d597-4f0f-89e4-930c1a7b9e85",
        "currencyCode": "USD",
        "preferredFor": [ { "type": "RECEIVE" } ],
        "billingAddress": {
            "country": "USA",
            "addressLine1": "1000 Market Street",
            "addressLine2": "Suite 101",
            "buildingNumber": "56",
            "city": "San Francisco",
            "minorSubdivisionCode": "CA",
            "streetName": "12",
            "postalCode": "94105",
            "state": "CA"
        }
    }
}

If successful, a 204 response is returned.


📘

More Information