Skip to main content
POST
/
cards
/
update-phone
cURL
curl --request POST \
  --url https://access.utgl.io/v1/cards/update-phone \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cardAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phoneNumber": {
    "countryCode": "+852",
    "mobileNumber": 12345678
  }
}
'
{
  "cardAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phoneNumber": "+85212345678"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
cardAccountId
string<uuid>
required

Card account ID of the card to update phone number

cardId
string<uuid>
required

Card ID of the card to update phone number

phoneNumber
object
required

New phone number for the card

Response

200 - application/json

OK

cardAccountId
string<uuid>

Card account ID of the card to update phone number

cardId
string<uuid>

Card ID of the card to update phone number

phoneNumber
string

New phone number for the card

Example:

"+85212345678"