Mina produkter
Hjälp
Centsoft1
CONTRIBUTOR **

API response improvement when getting a range of suppliers

av Centsoft1
Status: Prioriteras inte

according to your API specification when getting information about supplier we should get a following information:

 "supplierPaymentMethodDetails": [
      {
        "paymentMethodDetailDescription": "string",
        "paymentMethodDetailValue": "string"
      }
    ],

in case plusgiro or bankgiro do not have a value, response is different

 "supplierPaymentMethodDetails": [
      {
        "paymentMethodDetailDescription": "Bankgironummer"
      },
{
"paymentMethodDetailDescription": "Plusgironummer"
}
],

As an API consumer want to receive actual value of the paymentMethodDetailValue even if is null or "" so we know what to present to user in our interface and can be sure that presented value is the same as in source system.

For example:

 "supplierPaymentMethodDetails": [
      {
        "paymentMethodDetailDescription": "Bankgironummer",
        "paymentMethodDetailValue": null
      },
 { "paymentMethodDetailDescription": "Plusgironummer",
"paymentMethodDetailValue": null
} ],
1 Kommentar
av Christian Sandell
Status changed to: Status: Prioriteras inte

Please direct this request to the Developer Community

Få uppdateringar på det här inlägget i din inkorg

Klicka på de tre prickarna till höger i inlägget/artikeln och välj Prenumerera.

Läs mer om prenumeration här