paymentMethods
Overview
The paymentMethods
endpoint returns user payment methods.
POST https://rivian.com/api/gql/orders/graphql
Request Body
{
"operationName": "paymentMethods",
"variables": {},
"query": "query paymentMethods { paymentMethods { id type default card { lastFour brand expiration postalCode } } }"
}
Example Response
{
"data": {
"paymentMethods": [
{
"id": "<payment id>",
"type": "CREDIT_CARD",
"default": true,
"card": {
"lastFour": "<your-cc-last-4>",
"brand": "<your-cc-type>",
"expiration": "MM/YY",
"postalCode": "<your-zipcode>"
}
}
]
}
}