Question
A newly created credit card may not have paymentDueDate
available. What value should be supplied for this field?
Answer
A suitable default could be chosen.
It would also be valid not to respond with the BankingCreditCardAccount structure, in the event that it is a new card without any balance yet due, and hence there is no minimum payment
or payment due amount
. Setting the account type to credit card
does not make the inclusion of the BankingCreditCardAccount mandatory. This structure should be supplied if it can be validly constructed.
See:
Comments
3 comments
Is an empty string a "suitable default", or is the expectation that any "suitable default" would validate as a DateString?
Does this apply? https://cdr-support.zendesk.com/hc/en-us/articles/900002616823-Mandatory-Fields-with-no-value-present
Thanks for the question Justin I've raised a ticket #1413 within the CDR Support Portal.
I will loop back and update this thread when it is answered.
-Jarryd
Hi Justin
An empty string is not itself a valid DateString so it couldn't be used as a default. The "empty string" imparts specific meaning which is defined in the Payload Conventions (and copied below).
Is there a specific API response that is off issue with returning a valid date string?
(Same answer as given on Ticket 1423.
Thanks,
-Jarryd
Please sign in to leave a comment.