Modify payment info for the user
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
paymentRequest
-
browserInfo object
Additional properties are allowed.
-
cardInfo object
Additional properties are allowed.
-
modifyPaymentMethod boolean
-
nonInteractive boolean
-
redirectUrl object
Additional properties are allowed.
PATCH /api-v1/billing/payment-info
curl \
-X PATCH http://10.10.10.132/api-v1/billing/payment-info \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"browserInfo":{"browserAcceptHeader":"string","browserColorDepth":"string","browserJavaEnabled":"string","browserLanguage":"string","browserScreenHeight":"string","browserScreenWidth":"string","browserTimeZone":"string","browserUserAgent":"string"},"cardInfo":{"cardNumber":42,"cardholderName":"string","cvv":"string","expiryMonth":42,"expiryYear":42},"modifyPaymentMethod":true,"nonInteractive":true,"redirectUrl":{"acceptUrl":"string","declineUrl":"string","exceptionUrl":"string"}}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"browserInfo": {
"browserAcceptHeader": "string",
"browserColorDepth": "string",
"browserJavaEnabled": "string",
"browserLanguage": "string",
"browserScreenHeight": "string",
"browserScreenWidth": "string",
"browserTimeZone": "string",
"browserUserAgent": "string"
},
"cardInfo": {
"cardNumber": 42,
"cardholderName": "string",
"cvv": "string",
"expiryMonth": 42,
"expiryYear": 42
},
"modifyPaymentMethod": true,
"nonInteractive": true,
"redirectUrl": {
"acceptUrl": "string",
"declineUrl": "string",
"exceptionUrl": "string"
}
}
Response examples (200)
{}