API - UpdatePaymentMethod

Overview

Endpoint URL https://www.yournetosite.com.au/do/WS/NetoAPI
Method POST
XML Headers
NETOAPI_ACTION UpdatePaymentMethod
NETOAPI_USERNAME Your Neto Username (generate this in your Neto control panel)
NETOAPI_KEY Your Neto API Secure Key (generate this in your Neto control panel)
JSON Headers
NETOAPI_ACTION UpdatePaymentMethod
NETOAPI_USERNAME Your Neto Username (generate this in your Neto control panel)
NETOAPI_KEY Your Neto API Secure Key (generate this in your Neto control panel)
Accept application/json
Description Updates payment method.
XSD Schema UpdatePaymentMethod XSD   |   UpdatePaymentMethod Response XSD

UpdatePaymentMethod Post

XML POST

<?xml version="1.0" encoding="utf-8"?>
<UpdatePaymentMethod>
  <PaymentMethod>
    <id>(Integer)</id>
    <acc_code>(String)</acc_code>
  </PaymentMethod>
</UpdatePaymentMethod>

JSON POST

{
  "PaymentMethod": [ {
    "id":[
      "Integer"
      /*, ...*/
    ],
    "acc_code":[
      "String"
      /*, ...*/
    ]
  } ]
}

<PaymentMethod>

Element Name Required Field Type / Options
id Optional
Supports Multiple Elements
Integer(25)
acc_code Optional
Supports Multiple Elements
String(25)

UpdatePaymentMethod Responses

XML Response

<?xml version="1.0" encoding="utf-8"?>
<UpdatePaymentMethod>
  <Messages>
    <Error>
      <Message>(String)</Message>
      <SeverityCode>(String)</SeverityCode>
      <Description>(String)</Description>
    </Error>
    <Warning>
      <Message>(String)</Message>
      <SeverityCode>(String)</SeverityCode>
    </Warning>
    <Success>
      <Message>(String)</Message>
      <SeverityCode>(String)</SeverityCode>
    </Success>
  </Messages>
</UpdatePaymentMethod>

JSON Response

{
  "Messages": {
    "Error": [ {
      "Message":"String",
      "SeverityCode":"String",
      "Description":"String"
    } ],
    "Warning": [ {
      "Message":"String",
      "SeverityCode":"String"
    } ],
    "Success": [ {
      "Message":"String",
      "SeverityCode":"String"
    } ]
  } 
}

<Messages>

Element Name Field Type
Error ErrorType
Warning WarningType
Success SuccessType

<Error>

Element Name Field Type
Message String
SeverityCode String
Description String

<Warning>

Element Name Field Type
Message String
SeverityCode String

<Success>

Element Name Field Type
Message String
SeverityCode String