curl --request PUT \
--url https://api.turos.app/v1/billing/payment-methods/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isPrimary": true
}
'{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Billing
Update payment method
Set a saved payment method as primary and/or change its auto-top-up fallback priority.
PUT
/
v1
/
billing
/
payment-methods
/
{id}
curl --request PUT \
--url https://api.turos.app/v1/billing/payment-methods/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isPrimary": true
}
'{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Authorizations
Body
application/json
Response
Successful response
The response is of type object.