Changes for page card-transaction

Last modified by David Persson on 2024/02/21 07:48
From version 50.2
edited by David Persson
on 2020/04/14 11:27
To version 50.3
edited by David Persson
on 2020/04/14 11:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -701,6 +701,31 @@
701 701  The problem object contain more detailed info on what the error is. The "type" property can be used to programmatically interpret the error as it contains a code definition of the problem.
702 702  Other properties can be useful for logging and subsequent troubleshooting. Some problems are extended with additional parameters so it may be a good idea to log response body as raw data to include these.
703 703  
704 +(% class="box infomessage" %)
705 +(((
706 +Note, each problem typecode is preceded by "ledger.card-transaction." in this API, e.g. the error "validation-error" in the table below will appear as typecode "ledger.card-transaction.valitaion-error".
707 +)))
708 +
709 +=== Example ===
710 +
711 +{{code language="http" title="**Response**"}}
712 +HTTP/1.1 400 Error
713 +Content-Type: application/problem+json
714 +
715 +{
716 + "Type" : "ledger.card-transaction.validation-error",
717 + "Title" : "A validation error occurred",
718 + "Status" : 400,
719 + "Instance" : "215d4206-ca35-4f43-85ad-169c8f6d4ec1",
720 + "Detail" : "A validation error occurred. Please fix the problems mentioned in the 'problems' property below.",
721 + "Problems" : [
722 + {
723 + "amount" : "Expected value between [0,01]-[79228162514264337593543950335] actual [0]"
724 + }
725 + ]
726 +}
727 +{{/code}}
728 +
704 704  (% class="table-bordered table-striped" %)
705 705  |=(% style="width: 537px;" %)Problem type (code)|=(% style="width: 172px;" %)Httpstatus|=(% style="width: 796px;" %)Description
706 706  |(% style="width:537px" %)validation-error|(% style="width:172px" %)400|(% style="width:796px" %)occurs if any of the inputvalidation fails